A security policy prohibits developers from creating or downloading private service account keys. An administrator needs to allow a developer's identity to temporarily generate short-lived credentials for a target service account to execute deployment tasks. Which IAM role should be granted to the developer's identity 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
Granting the Service Account Token Creator (roles/iam.serviceAccountTokenCreator) role on the target service account.
Granting the Service Account Token Creator role (roles/iam.serviceAccountTokenCreator) on the target service account enables an authorized principal to generate short-lived OAuth2 tokens and impersonate the service account securely without creating or downloading private keys.
Step-by-Step Solution
Key Concept
Configuring Service Account Impersonation