Medium1 markMultiple Choice

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

You frequently switch between managing a 'Development' environment and a 'Production' environment. Each environment uses a different GCP project, a different default compute zone, and a different authorized service account.

Which TWO gcloud commands should you use to efficiently manage and switch between these distinct environments without re-authenticating or resetting individual properties each time? (Select TWO)

Answer options:

A.

gcloud config configurations create

B.

gcloud auth login --update-profile

C.

gcloud config configurations activate

D.

gcloud projects switch

E.

gcloud environments toggle

How to approach this question

Identify the gcloud feature that allows saving multiple sets of configurations (profiles).

Full Answer

The Cloud SDK allows you to create multiple named configurations (profiles) using `gcloud config configurations create`. Each configuration can have its own default project, account, and compute zone. You can easily switch between them using `gcloud config configurations activate [NAME]`.

Common mistakes

Thinking you have to use `gcloud init` every time you switch environments.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam