PCDOE Building and implementing CI/CD pipelines Practice Question
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?
⚠ Common exam trap
A common misconception is that any step type can be used interchangeably for Cloud Run deployments. However, the Cloud Run deployer step is required to correctly manage IAM permissions and service account impersonation, while the gcloud command may fail even with correct role assignments.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The build config must use the Cloud Run deployer step instead of the gcloud command.
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.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The build config must use the Cloud Run deployer step instead of the gcloud command.
Why this is correct
Correct: The Cloud Run deployer step is designed to handle permissions correctly and is the recommended method for deploying Cloud Run services from Cloud Build. Using gcloud directly can lead to permission errors despite having the correct roles.
- ✗
The Cloud Build service account should have the Owner role on the project.
Why it's wrong here
Incorrect: The Owner role is overly permissive and not required. The Cloud Run Admin role should be sufficient if used correctly.
- ✗
The Cloud Run service must be deployed in the same region as the build.
Why it's wrong here
Incorrect: Region mismatch does not cause a permission error. Regions are independent of IAM permissions.
- ✗
The Cloud Build service account needs the 'run.services.update' permission or the Cloud Run Admin role.
Why it's wrong here
Incorrect: The Cloud Build service account already has the Cloud Run Admin role, which includes 'run.services.update'. The error persists because the gcloud command does not correctly utilize the service account's permissions.
Go deeper
Related to this question
About these practice questions
Courseiva writes every PCDOE question from scratch — 486 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCDOE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDOE exam.