Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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