20+ practice questions focused on Building and implementing CI/CD pipelines — one of the most tested topics on the Google Professional Cloud DevOps Engineer exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Building and implementing CI/CD pipelines PracticeA large enterprise uses Cloud Build across multiple projects for different microservices. They want to create a centralized CI/CD governance where a single trigger can initiate builds across multiple projects, but each project's artifacts must be stored in a shared Artifact Registry. What is the best way to achieve this?
Explanation: Using a single Cloud Build trigger in the governance project with a service account that has permissions to initiate builds in other projects is the most direct and centralized approach. Option A is incorrect because triggers are per-project and a shared VPC or private pool does not enable cross-project triggers. Option C is incorrect because Cloud Build triggers do not natively emit Pub/Sub messages to trigger builds in other projects; this would require additional custom infrastructure and is not a native feature. Option D is incorrect because using a Cloud Function adds unnecessary complexity and is less direct than the native Cloud Build cross-project service account approach.
A development team wants to automatically run unit tests and static code analysis on every push to a Cloud Source Repository, but only run integration tests on merges to the main branch. Which Cloud Build trigger configuration should they use?
Explanation: Cloud Build triggers allow you to define separate triggers with branch filters to execute different build configurations based on the branch. By creating one trigger with a branch filter of '^main$' for integration tests and another with '^.*$' for unit tests, you ensure unit tests run on every push to any branch, while integration tests run only on merges to main. This approach directly maps the desired behavior without requiring conditional logic or manual intervention.
A team uses Cloud Build with a Kaniko builder to containerize their application. The build fails with the error: 'failed to push to destination: failed to get credentials: failed to get credential from metadata service: failed to fetch metadata...' What is the most likely cause?
Explanation: The error indicates that Kaniko cannot authenticate to push the built image to Container Registry. Kaniko uses the Cloud Build service account's credentials to authenticate with the registry. By default, the Cloud Build service account has the storage.objectViewer role on the Container Registry bucket, which allows pulling images but not pushing. To push, the service account needs the storage.objectAdmin or storage.objectCreator role on the bucket. Option D correctly identifies this missing permission as the most likely cause.
A company uses Spinnaker for continuous delivery across multiple GKE clusters. After a recent infrastructure change, the 'Canary' deployment strategy fails during the 'disable' phase of the old version. The error log shows: 'Unable to disable server group: Not authorized to perform compute.instanceGroups.update.' What is the most likely root cause?
Explanation: The error 'Unable to disable server group: Not authorized to perform compute.instanceGroups.update' directly indicates an IAM permissions issue. In Spinnaker, the service account used to interact with GCP must have the compute.instanceGroups.update permission to manage instance groups during the disable phase of a canary deployment. Option C correctly identifies that the Spinnaker service account lacks this specific permission on the project.
A team uses Cloud Build to deploy a Cloud Run service. The build fails with: 'ERROR: (gcloud.run.services.update) PERMISSION_DENIED: Permission 'run.services.update' denied on resource.' The Cloud Build service account has the Cloud Run Admin role. What is missing?
Explanation: The error occurs because using the gcloud command directly in a Cloud Build step does not automatically handle IAM permissions as the Cloud Run deployer step does. Although the Cloud Build service account has the Cloud Run Admin role, the gcloud command may fail due to missing resource-level permissions or because it uses a different service account context. The Cloud Run deployer step is designed to properly authenticate and apply the necessary permissions for deploying to Cloud Run.
+15 more Building and implementing CI/CD pipelines questions available
Practice all Building and implementing CI/CD pipelines questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Building and implementing CI/CD pipelines. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Building and implementing CI/CD pipelines questions on the PCDOE frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Building and implementing CI/CD pipelines is tested as part of the Google Professional Cloud DevOps Engineer blueprint. Practicing with targeted Building and implementing CI/CD pipelines questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free PCDOE practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Building and implementing CI/CD pipelines is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Building and implementing CI/CD pipelines practice session with instant scoring and detailed explanations.
Start Building and implementing CI/CD pipelines Practice →