LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


You are developing an API in Python that utilizes several Google Cloud Services through Application Default credentials. After successful local testing, your next step is deploying the API on a Compute Engine Instance. What is the Google-recommended method for setting up authentication with minimal changes?

Real Exam



Explanation:

Option A is correct because attaching service accounts to resources like Compute Engine is both convenient and secure, aligning with Google's recommended practices. This approach minimizes changes by leveraging the VM's existing service account with the necessary IAM permissions. Option B is incorrect as it introduces unnecessary complexity by creating a new service account. Options C and D are incorrect due to the security risks associated with storing credentials in configuration files. Service account credentials should be managed securely, not deployed with applications, and user account credentials are unsuitable for application authentication on VM instances.

Powered ByGPT-5