ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 189 - Associate Cloud Engineer discussion

Report
Export

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
Answers
A.
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
Answers
B.
Use the command gcloud auth activate-service-account and point it to the private key
C.
Place the private key file in the installation directory of the Cloud SDK and rename it to 'credentials ison'
Answers
C.
Place the private key file in the installation directory of the Cloud SDK and rename it to 'credentials ison'
D.
Place the private key file in your home directory and rename it to ''GOOGLE_APPUCATION_CREDENTiALS'.
Answers
D.
Place the private key file in your home directory and rename it to ''GOOGLE_APPUCATION_CREDENTiALS'.
Suggested answer: B

Explanation:

Authorizing with a service account

gcloud auth activate-service-account authorizes access using a service account. As with gcloud init and gcloud auth login, this command saves the service account credentials to the local system on successful completion and sets the specified account as the active account in your Cloud SDK configuration.

https://cloud.google.com/sdk/docs/authorizing#authorizing_with_a_service_account

asked 18/09/2024
Kanik Sachdeva
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first