Google Cloud Professional Cloud Developer — Question 76

Your application requires service accounts to be authenticated to GCP products via credentials stored on its host Compute Engine virtual machine instances. You want to distribute these credentials to the host instances as securely as possible.
What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because using the instance's service account Application Default Credentials allows for secure authentication without the need to handle sensitive files. Options A, C, and D are less secure as they involve additional steps for credential handling, which can increase the risk of exposure.