You have downloaded and installed the gcloud command line interface (CLI) and have authenticated with your Google Account. Most of your Compute Engine instances in your project run in the europe-west1-d zone. You want to avoid having to specify this zone with each CLI command when managing these instances. What should you do?
Suggested Answer: C
Get Premium Associate Cloud Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
PH
Phuong
1 year ago
I thought you had to edit a config file manually, but A sounds right!
BR
Brett
1 year ago
B is wrong, it's not in the Settings page.
IL
Ilene
1 year ago
Wait, is it really that simple?
AL
Alton
1 year ago
Definitely A! Makes life so much easier.
KA
Katlyn
1 year ago
Just use `gcloud config set compute/zone europe-west1-d`.
KI
Kirby
1 year ago
I think D is more about instance metadata, not really about setting a default zone for the CLI. I might be mixing it up with another topic.
IR
Irene
1 year ago
I vaguely recall something about creating a file for defaults, but I can't remember if it was C or D. It seems a bit off to me though.
TH
Therese
1 year ago
I'm not entirely sure, but B sounds familiar too. I feel like I saw something about setting defaults in the Compute Engine settings.
YO
Yolando
1 year ago
I think the right answer is A, setting the default zone with the gcloud config subcommand. I remember practicing that in a lab.
MA
Man
1 year ago
This question seems straightforward, but I want to make sure I understand the requirements correctly before attempting to solve it.
EV
Evangelina
1 year ago
This looks straightforward enough. I'm pretty confident I can work through this and get the right answer. Time to put my C++ skills to the test!
KA
Kaycee
1 year ago
This is a good question that tests our understanding of business technology trends. The description of the shift towards hosted, subscription-based software aligns with the Software as a Service model, so I'll confidently select option D.