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

1 hour, 51 minutes remaining!

GCP Professional Cloud Architect Practice Question

In a hub-and-spoke landing-zone on Google Cloud, a centralized Cloud Build pipeline in the hub project must run gcloud commands that create BigQuery datasets and modify IAM policies in several spoke projects. The security team prohibits distributing long-lived user credentials or service-account keys, and requires that all actions be least-privilege and fully auditable. Which approach allows the build steps to authenticate to each spoke project while complying with these constraints?

  • Download private keys for the Compute Engine default service account from each spoke project and specify them with the --account flag in successive gcloud commands.

  • Run gcloud auth login with an administrator's user account before the build and cache the resulting credentials in the build workspace for reuse.

  • Grant the Cloud Build service account Service Account Token Creator on dedicated deployment accounts in each spoke project and execute gcloud commands with the --impersonate-service-account flag.

  • Store JSON key files for deployment service accounts in Secret Manager and set GOOGLE_APPLICATION_CREDENTIALS to the extracted key during the build.

GCP Professional Cloud Architect
Managing implementation
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