D1: Service Accounts & Least Privilege
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
Why one service account per service?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Service Accounts & Least Privilege practice questions and answers
- Why one service account per service?Least privilege and clear audit trails.
- Why avoid the default Compute Engine service account?It may have broad Editor permissions.
- How to grant a service account access?IAM roles on the specific resources it needs.
- Which role lets a user deploy with a service account?Service Account User (roles/iam.serviceAccountUser).
- Which role allows impersonation?Service Account Token Creator.
- How to set Cloud Run's identity?--service-account=SA_EMAIL.
- GKE workload identity best practice?Workload Identity Federation for GKE.
- How to find excess permissions?IAM recommender.
- Why prefer predefined over basic roles?Basic roles are too broad.
- Least privilege principle?Grant only what's required, at the narrowest scope.