PROFESSIONAL-CLOUD-DEVELOPER · Question #217
PROFESSIONAL-CLOUD-DEVELOPER Question #217: Real Exam Question with Answer & Explanation
The correct answer is B: 1. Run the following command from a command line: gcloud config set. https://cloud.google.com/blog/topics/developers-practitioners/using-google-cloud-service- account-impersonation-your-terraform-code
Question
You need to deploy resources from your laptop to Google Cloud using Terraform. Resources in your Google Cloud environment must be created using a service account. Your Cloud Identity has the roles/iam.serviceAccountTokenCreator Identity and Access Management (IAM) role and the necessary permissions to deploy the resources using Terraform. You want to set up your development environment to deploy the desired resources following Google-recommended best practices. What should you do?
Options
- A1. Download the service account's key file in JSON format, and store it locally on your laptop.
- B1. Run the following command from a command line: gcloud config set
- C1. Run the following command from a command line: gcloud auth application-default login.
- D1. Store the service account's key file in JSON format in Hashicorp Vault.
Explanation
https://cloud.google.com/blog/topics/developers-practitioners/using-google-cloud-service- account-impersonation-your-terraform-code
Topics
Community Discussion
No community discussion yet for this question.