Medium1 markMultiple Choice

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

You frequently switch between two different GCP environments: a personal project using your personal Gmail account, and a corporate project using your company email. You want to switch between these environments quickly without having to re-authenticate or manually change the project ID each time.

Which TWO gcloud commands are essential to set up and use this workflow? (Select TWO)

Answer options:

A.

gcloud config configurations create

B.

gcloud auth switch-account

C.

gcloud config configurations activate

D.

gcloud components update

E.

gcloud init --switch

How to approach this question

Identify how gcloud handles multiple distinct environments (configurations).

Full Answer

gcloud config configurations create, gcloud config configurations activate
gcloud supports multiple named configurations. A configuration is a set of properties (like active account, project, region). You use `gcloud config configurations create [NAME]` to make a new one, and `gcloud config configurations activate [NAME]` to switch between them seamlessly.

Common mistakes

Thinking you must run `gcloud auth login` every time you switch accounts.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam