ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 204 - Associate Cloud Engineer discussion

Report
Export

Your coworker has helped you set up several configurations for gcloud. You've noticed that you're running commands against the wrong project. Being new to the company, you haven't yet memorized any of the projects. With the fewest steps possible, what's the fastest way to switch to the correct configuration?

A.
Run gcloud configurations list followed by gcloud configurations activate .
Answers
A.
Run gcloud configurations list followed by gcloud configurations activate .
B.
Run gcloud config list followed by gcloud config activate.
Answers
B.
Run gcloud config list followed by gcloud config activate.
C.
Run gcloud config configurations list followed by gcloud config configurations activate.
Answers
C.
Run gcloud config configurations list followed by gcloud config configurations activate.
D.
Re-authenticate with the gcloud auth login command and select the correct configurations on login.
Answers
D.
Re-authenticate with the gcloud auth login command and select the correct configurations on login.
Suggested answer: C

Explanation:

as gcloud config configurations list can help check for the existing configurations and activate can help switch to the configuration.

gcloud config configurations list lists existing named configurations

gcloud config configurations activate activates an existing named configuration

Obtains access credentials for your user account via a web-based authorization flow. When this command completes successfully, it sets the active account in the current configuration to the account specified. If no configuration exists, it creates a configuration named default.

asked 18/09/2024
K W
25 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first