Courseiva

Google PCA Practice Question: Managing and Provisioning a Solution Infrastructure

An engineer is troubleshooting a Cloud Build trigger that fails with the error 'PERMISSION_DENIED: Cloud Build service account does not have permission to access Artifact Registry'. The build needs to push a Docker image to Artifact Registry. What is the correct IAM role to assign to the Cloud Build service account?

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

roles/artifactregistry.writer

The Cloud Build service account (usually project-number@cloudbuild.gserviceaccount.com) needs the Artifact Registry Writer role to push images. Editor role is too broad; Viewer is read-only; Storage Object Admin is for Cloud Storage, not Artifact Registry.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • roles/artifactregistry.writer

    Why this is correct

    This role allows uploading artifacts to Artifact Registry, which includes pushing Docker images.

  • roles/artifactregistry.viewer

    Why it's wrong here

    Viewer only allows reading, not writing.

  • roles/editor

    Why it's wrong here

    Editor includes many permissions but is too broad and not required; specific roles are preferred.

  • roles/storage.objectAdmin

    Why it's wrong here

    Artifact Registry is not Cloud Storage; this role does not grant Artifact Registry permissions.

About these practice questions

This PCA question is part of Courseiva's 955-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCA 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 PCA exam.