Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

project configurations

Between B&C ?

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.

Solved Solved
0 1 608
1 ACCEPTED SOLUTION

Hi @fmugambi ,

Welcome to Google Cloud Community!

The best answer is letter C as it directly lists available configurations and then allows you to activate the desired one.

It 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.

I hope the above information is helpful.

View solution in original post

1 REPLY 1

Hi @fmugambi ,

Welcome to Google Cloud Community!

The best answer is letter C as it directly lists available configurations and then allows you to activate the desired one.

It 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.

I hope the above information is helpful.

Top Solution Authors