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)
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert