Free PCDOE sample questions
Real questions from the Professional Cloud DevOps Engineer practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A development team is starting a new project on Google Cloud and needs to manage their infrastructure as code. The team has extensive experience with Kubernetes YAML but is new to cloud infrastructure provisioning. They want a tool that allows them to define their GCP resources using a Kubernetes-style, declarative syntax and manage them through their GKE cluster. Which IaC tool is the best fit for this team's requirements?
An e-commerce application running on GKE is experiencing intermittent latency spikes during checkout. The system consists of a frontend service, a cart service, and an inventory service. To begin troubleshooting, you need to understand the flow of requests and identify which service call is introducing the most latency. What are the TWO most effective initial steps to take? (Select TWO) sequenceDiagram participant User participant Frontend participant CartSvc as Cart Service participant InvSvc as Inventory Service User->>Frontend: POST /checkout Frontend->>CartSvc: GET /cart/items CartSvc-->>Frontend: Cart Items Frontend->>InvSvc: POST /inventory/reserve InvSvc-->>Frontend: Reservation Confirmed Frontend-->>User: Checkout Complete
Your organization manages dozens of GCP projects using Terraform. Multiple teams are making infrastructure changes concurrently, leading to conflicts and accidental overwrites of the Terraform state file. You need to implement a solution that provides state locking and a consistent, shared backend for all team members. Which Google Cloud service should you configure as the Terraform backend to achieve this?
True or False: An error budget represents the maximum amount of time a service can be unavailable or perform below its SLO before violating its contractual SLA with a customer.
Your company's application generates a large volume of debug-level logs that are useful for real-time troubleshooting but are expensive to retain in Cloud Logging for the mandatory 90-day period. You also need to perform complex analytical queries on all retained logs. What is the most cost-effective approach to meet these requirements?
You are creating a dedicated service account for a Cloud Build pipeline. The pipeline needs to perform the following actions: build a Docker image, push the image to Artifact Registry, and deploy the new image as a service revision to Cloud Run. Following the principle of least privilege, which THREE IAM roles should you grant to this service account? (Select THREE)
The Google Cloud Recommender API suggests changing the machine type for a fleet of critical production VMs from `n2-standard-4` to `e2-medium` to save costs. A direct application of this change previously caused an outage due to unexpected performance degradation. As an SRE, what is the best practice for safely validating and implementing this type of recommendation in the future?
## Case Study A large retail company, `ShopNow`, is modernizing their deployment process for their monolithic e-commerce backend. Currently, deployments are manual, error-prone, and require significant downtime. ### Current Situation - The application is packaged as a Docker container. - Continuous Integration (CI) is handled by a self-hosted Jenkins server which builds the Docker image and pushes it to Artifact Registry. - There are three environments: `dev`, `staging`, and `prod`, each running on a separate GKE cluster. - The infrastructure team manages the GKE clusters using Terraform. ### Requirements 1. **Automated Deployments:** Implement a continuous delivery (CD) system to automate deployments to all three environments. 2. **Progressive Delivery:** For `prod` deployments, the new version must first be rolled out to 10% of traffic. After a 1-hour bake time, it must be manually approved before proceeding to 100%. 3. **Integration:** The new CD system must be triggered by the existing Jenkins CI job upon a successful build. 4. **Auditability:** All deployment actions, including manual approvals, must be logged for audit purposes. ### Goal Select the most effective Google Cloud-native solution that meets all requirements with the least amount of custom scripting and operational overhead. graph TD subgraph On-Prem Jenkins[Jenkins CI Server] end subgraph GCP AR[Artifact Registry] subgraph Dev Env GKE_Dev[GKE Cluster] end subgraph Staging Env GKE_Staging[GKE Cluster] end subgraph Prod Env GKE_Prod[GKE Cluster] end CD[Cloud Deploy] end Jenkins -- Pushes Image --> AR Jenkins -- Triggers --> CD CD -- Deploys to --> GKE_Dev CD -- Promotes to --> GKE_Staging CD -- Promotes to --> GKE_Prod
True or False: Cloud Build requires source code to be stored in Cloud Source Repositories to trigger a build.
10 more free samples are waiting
Create a free account to unlock the whole PCDOE sample bank, or get full access to all 180 practice questions in the simulator.