D4: Impersonation & Short-Lived Credentials
Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards
Question
What is service account impersonation?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Impersonation & Short-Lived Credentials practice questions and answers
- What is service account impersonation?A principal acts as a service account using short-lived credentials.
- Which role allows impersonation?Service Account Token Creator (roles/iam.serviceAccountTokenCreator).
- How do you impersonate with gcloud for one command?--impersonate-service-account=SA_EMAIL.
- How do you impersonate for all gcloud commands?gcloud config set auth/impersonate_service_account SA_EMAIL.
- Why impersonate instead of using keys?No long-lived keys; access controlled and audited via IAM.
- Which API issues short-lived credentials?IAM Service Account Credentials API.
- Short-lived credential types?OAuth 2.0 access tokens, OpenID Connect ID tokens, self-signed JWTs and blobs.
- Default access token lifetime?1 hour (can be extended up to 12 hours with an org policy).
- How do you print an access token for an SA?gcloud auth print-access-token --impersonate-service-account=SA_EMAIL.
- What is delegation chaining?Impersonating an SA through one or more intermediate SAs.
- How is impersonation audited?Audit logs record both the caller and the impersonated SA.