In an automation script, you must call multiple Google APIs and enforce least-privilege access. Which credential-handling design is most aligned with least privilege and secure operations?

Answer

Use application default credentials in a managed environment and request only required OAuth scopes/roles

Explanation

Managed identity plus scoped permissions reduces credential exposure and limits capabilities to what the workflow actually needs.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list