Google Cloud Certified - Associate Cloud Engineer Associate-Cloud-Engineer Question # 39 Topic 4 Discussion

Google Cloud Certified - Associate Cloud Engineer Associate-Cloud-Engineer Question # 39 Topic 4 Discussion

Associate-Cloud-Engineer Exam Topic 4 Question 39 Discussion:
Question #: 39
Topic #: 4

You are writing a shell script that includes a few gcloud CLI commands to access some Google Cloud resources. You want to test the script in your local development environment with a service account in the most secure way. What should you do?


A.

Download the service account key file and save it in a secure location. Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the key file.


B.

Enable service account impersonation, and use the gcloud config set auth/impersonate_service_account command to use it by default.


C.

Generate an ID token for the service account. Use the token with the gcloud CLI commands.


D.

Download the service account key file, and use it to generate an access token. Use the token with the gcloud CLI commands.


Get Premium Associate-Cloud-Engineer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.