Medium1 markMultiple Choice

GCP ACE · Question 07 · Domain 1.3: Installing and configuring the CLI

You are working on multiple GCP projects. You want to switch your active gcloud configuration from 'project-a-config' to 'project-b-config'. Which command should you use?

Answer options:

A.

gcloud config set project-b-config

B.

gcloud config configurations activate project-b-config

C.

gcloud switch project-b-config

D.

gcloud config use project-b-config

How to approach this question

Remember the command structure for managing named configurations in gcloud.

Full Answer

B.gcloud config configurations activate project-b-config✓ Correct
gcloud config configurations activate project-b-config
The Cloud SDK allows you to create multiple named configurations (which store properties like default project, account, and zone). To switch between them, you use `gcloud config configurations activate [NAME]`.

Common mistakes

Confusing `gcloud config set project` (which changes the project in the *current* config) with activating a completely different config.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam