D4: Workload Identity Federation
Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards
Question
What is Workload Identity Federation?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Workload Identity Federation practice questions and answers
- What is Workload Identity Federation?Lets external workloads (AWS, Azure, on-prem, CI/CD) access Google Cloud without SA keys.
- What is a workload identity pool?A container for external identities in a project.
- What is a pool provider?Configuration trusting an external IdP (AWS, Azure, OIDC, SAML).
- How does the token exchange work?External credential → Security Token Service → federated token → (optional) SA impersonation.
- Example use case?GitHub Actions deploying to Google Cloud using OIDC instead of a key.
- In Workload Identity Federation, what is attribute mapping?Maps external token claims to Google attributes like google.subject.
- In Workload Identity Federation, what is an attribute condition?Restricts which external identities can use the pool (e.g. a specific repo).
- How do workloads use federation in client libraries?With a credential configuration file (gcloud iam workload-identity-pools create-cred-config).
- Direct access vs SA impersonation?Grant roles directly to federated principals, or let them impersonate a service account.
- Workload vs workforce federation?Workload: applications. Workforce: human users.
- Why prefer federation over SA keys?No long-lived secrets to leak or rotate.