Medium1 markMultiple Choice

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

You need to set the default compute zone to us-central1-a and the default project to my-project-123 for your current gcloud environment. Which TWO commands should you use? (Select TWO)

Answer options:

A.

gcloud config set compute/zone us-central1-a

B.

gcloud compute zone set us-central1-a

C.

gcloud config set project my-project-123

D.

gcloud project set my-project-123

E.

gcloud set default-project my-project-123

How to approach this question

Identify the `gcloud config set` command structure for modifying local SDK properties.

Full Answer

gcloud config set compute/zone us-central1-a gcloud config set project my-project-123
To modify properties in your active gcloud configuration, you use `gcloud config set [SECTION/PROPERTY] [VALUE]`. The property for the project is `project`, and for the zone it is `compute/zone`.

Common mistakes

Guessing command structures that don't use the `config set` pattern.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam