Question 170 of 284
Single answerYou received a JSON file that contained a private key of a Service Account in order to get access to several resources in a Google Cloud project. You downloaded and installed the Cloud SDK and want to use this private key for authentication and authorization when performing gcloud commands. What should you do?
AUse the command gcloud auth login and point it to the private key.
✓BUse the command gcloud auth activate-service-account and point it to the private key.
CPlace the private key file in the installation directory of the Cloud SDK and rename it to ג€credentials.jsonג€.
DPlace the private key file in your home directory and rename it to ג€GOOGLE_APPLICATION_CREDENTIALSג€.
✓
Correct Answer: B
Use the command gcloud auth activate-service-account and point it to the private key.
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.