With the fewest steps possible, what’s the fastest way to switch to the correct configuration?

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 .
B . Run gcloud config list followed by gcloud config activate.
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.

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.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments