Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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