🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 53 minutes remaining!

GCP Professional Cloud Architect Practice Question

Your organization is refactoring its CI pipeline that uses Cloud Build to compile code, build a container image, push it to a private Artifact Registry repository, and then trigger a Cloud Run deployment. The security team has banned the creation of any long-lived service-account keys. You decide to rely on service-account impersonation so that Cloud Build can write to Artifact Registry while following the principle of least privilege. Which IAM configuration best satisfies these requirements?

  • Configure Workload Identity Federation for Cloud Build and map the federation principal to a service account that has roles/artifactregistry.writer.

  • Generate a JSON key for a deployment service account, store the key in Secret Manager, and grant that service account roles/artifactregistry.writer.

  • Grant roles/artifactregistry.writer directly to the Cloud Build service account; no additional bindings are required.

  • Create a dedicated deployment service account, grant the Cloud Build service account the Service Account User role (roles/iam.serviceAccountUser) on it, and grant the deployment account roles/artifactregistry.writer on the target repository.

GCP Professional Cloud Architect
Designing for security and compliance
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot