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

45 minutes, 1 second remaining!

GCP Professional Cloud Architect Practice Question

Your organization wants to let several GitHub Actions workflows deploy infrastructure to Google Cloud without storing any long-lived service account keys. Each repository must be isolated so that it can only impersonate its own deployment service account, and no repository should be able to elevate privileges outside the projects it manages. What is the most appropriate way to design Workload Identity Federation to satisfy these requirements while following the principle of least privilege and minimizing administrative overhead?

  • Download a JSON key for a single organization-wide service account, store it as an encrypted secret in every GitHub repository, and use it with gcloud auth activate-service-account inside the workflow.

  • Create one Workload Identity pool with a single OIDC provider that trusts all repositories in the GitHub organization and grant that provider the Owner role on the organization so any repository can impersonate any service account.

  • Create one Workload Identity pool without any providers and rely on the GitHub runner's default credentials to obtain user tokens through Application Default Credentials (ADC).

  • Create one Workload Identity pool and configure a separate OIDC provider for each GitHub repository, restrict each provider to its repository using attribute conditions, and bind only the matching provider to a dedicated service account that has the minimal roles needed for its project.

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