A Cloud Engineer needs to allow a developer to execute gcloud CLI commands by short-lived impersonation of a dedicated deployment service account, without creating or downloading service account keys. Which IAM role should be assigned to the developer on the target service account?
- Service Account Token Creator (roles/iam.serviceAccountTokenCreator)Answer
- BService Account Key Admin (roles/iam.serviceAccountKeyAdmin)
- CEditor (roles/editor)
- DSecurity Admin (roles/iam.securityAdmin)
Answer
The Service Account Token Creator role (roles/iam.serviceAccountTokenCreator) should be assigned to the developer on the target service account.
The Service Account Token Creator role provides the exact permissions required to mint short-lived tokens and impersonate a Google Cloud service account without creating service account keys.
Step-by-Step Solution
Key Concept
Service Account Impersonation Roles
Estimated Time:1m 0s