Flashcardsfor IT Certifications

D4: Using Service Accounts for API Calls

Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards

Question
How does code on Cloud Run authenticate to APIs?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Using Service Accounts for API Calls practice questions and answers
  1. How does code on Cloud Run authenticate to APIs?
    The attached service account via ADC.
  2. How does local code use a service account without a key?
    gcloud auth application-default login --impersonate-service-account=SA.
  3. Why avoid downloaded SA keys?
    Leak risk and rotation burden.
  4. What are OAuth scopes on VMs?
    Legacy limits; use cloud-platform scope with IAM roles.
  5. How to call Google APIs from outside Google Cloud?
    Workload Identity Federation.
  6. How to give the SA permissions?
    Grant IAM roles on target resources.
  7. What identity calls APIs from GKE Pods?
    Workload Identity Federation for GKE.
  8. How to check which identity is used?
    Logs show the principal in audit logs.
  9. Why separate SAs per service?
    Least privilege and auditability.
  10. What is service account impersonation?
    Short-lived credentials for another SA without keys.