Professional-Cloud-DevOps-Engineer Exam Questions & Answers
Professional Cloud DevOps Engineer • Google
100% money-back guarantee
Sample Professional-Cloud-DevOps-Engineer Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Your company runs services on Google Cloud. Each team runs their applications in a dedicated project. New teams and projects are created regularly. Your security team requires that all logs are processed by a security information and event management (SIEM) system. The SIEM ingests logs by using Pub/Sub. You must ensure that all existing and future logs are scanned by the SIEM. What should you do?
Comprehensive and Detailed
To ensure all logs (existing and future) are automatically processed by the SIEM system, the best approach is:
Use an organization-level aggregated sink Captures logs from all existing and future projects automatically.
Send logs to a Pub/Sub topic Since the SIEM ingests logs via Pub/Sub, this ensures logs are streamed in real-time.
Set an inclusion filter To capture all logs needed by the security team.
Why not other options?
B (Project-level logging sink) Requires manual setup per project, which doesn't scale for new projects.
C (Log bucket instead of Pub/Sub) SIEM is expecting real-time log ingestion via Pub/Sub, not a storage-based approach.
D (Folder-level logging sink) Only applies to specific folders, not the entire organization.
Official Reference:
Aggregated Sinks for Cloud Logging
Exporting Logs to SIEM via Pub/Sub
You are writing a postmortem for an incident that severely affected users. You want to prevent similar incidents in the future. Which two of the following sections should you include in the postmortem? (Choose two.)
For a postmortem to be truly blameless, it must focus on identifying the contributing causes of the incident without indicting any individual or team for bad or inappropriate behavior.
You use Cloud Build to build and deploy your application. You want to securely incorporate database credentials and other application secrets into the build pipeline. You also want to minimize the development effort. What should you do?
https://cloud.google.com/build/docs/securing-builds/use-encrypted-credentials
You are running an experiment to see whether your users like a new feature of a web application. Shortly after deploying the feature as a canary release, you receive a spike in the number of 500 errors sent to users, and your monitoring reports show increased latency. You want to quickly minimize the negative impact on users. What should you do first?
You are configuring Cloud Logging for a new application that runs on a Compute Engine instance with a public IP address. A user-managed service account is attached to the instance. You confirmed that the necessary agents are running on the instance but you cannot see any log entries from the instance in Cloud Logging. You want to resolve the issue by following Google-recommended practices. What should you do?
The correct answer is A. Add the Logs Writer role to the service account.
To use Cloud Logging, the service account attached to the Compute Engine instance must have the necessary permissions to write log entries. The Logs Writer role (roles/logging.logWriter) provides this permission.You can grant this role to the user-managed service account at the project, folder, or organization level1.
Private Google Access is not required for Cloud Logging, as it allows instances without external IP addresses to access Google APIs and services2.The default Compute Engine service account already has the Logs Writer role, but it is not a recommended practice to use it for user applications3.Exporting the service account key and configuring the agents to use the key is not a secure way of authenticating the service account, as it exposes the key to potential compromise4.
1:Access control with IAM | Cloud Logging | Google Cloud
2: Private Google Access overview | VPC | Google Cloud
3: Service accounts | Compute Engine Documentation | Google Cloud
4: Best practices for securing service accounts | IAM Documentation | Google Cloud
Get access to all 205 verified questions with detailed answers.
Unlock All Professional-Cloud-DevOps-Engineer Questions