Google Cloud Associate Cloud Engineer — Question 120

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?

Answer options

Correct answer: A

Explanation

The correct answer is A because using the gcloud config subcommand allows you to set the default zone for all subsequent commands, streamlining your workflow. The other options do not provide a method to set the default zone for the gcloud CLI; they pertain to settings specific to the Compute Engine interface or involve creating files that do not impact the CLI behavior.