Solved

You Received a JSON File That Contained a Private Key

Question 118

Multiple Choice

You 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?


A) Use the command gcloud auth login and point it to the private key. Use the command gcloud auth login and point it to the private key.
B) Use the command gcloud auth activate-service-account and point it to the private key. gcloud auth activate-service-account
C) Place the private key file in the installation directory of the Cloud SDK and rename it to "credentials.json".
D) Place the private key file in your home directory and rename it to "GOOGLE_APPLICATION_CREDENTIALS".

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions