nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #337

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 correct answer is C. Run gcloud config configurations list followed by gcloud config configurations activate.. 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 confi

Submitted by fatima_kr· Mar 30, 2026Setting up a cloud solution environment

Question

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?

Options

  • ARun gcloud configurations list followed by gcloud configurations activate .
  • BRun gcloud config list followed by gcloud config activate.
  • CRun gcloud config configurations list followed by gcloud config configurations activate.
  • DRe-authenticate with the gcloud auth login command and select the correct configurations on

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    93% (39)

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

Topics

#gcloud configurations#gcloud CLI#project switching

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice