Diagram
A decision tree that branches on dev environment, Google Cloud, GKE, service account need, and external identity to choose attached service account, Workload Identity Federation, impersonation, user credentials, or keys last.
Choosing a Safer Authentication Method Than Keys
Choosing a safer authentication method means using short-lived, automatically managed credentials instead of creating a service account key whenever possible. Tools that support Application Default Credentials (ADC), including the Google Cloud CLI, Cloud Client Libraries, Terraform, and REST requests, should use an attached identity or federation rather than a downloaded key. Keys are the last resort, used only when no federated or attached option works.
Domain 1 of 7
24 practice questions
Practice this DomainLast updated