
Answer-first summary for fast verification
Answer: Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
The correct answer is A: Set the europe-west1-d zone as the default zone using the gcloud config subcommand. By using the gcloud config set compute/zone command, you can specify a default zone, which will save you from having to manually set it for each CLI command. This setting only applies to the active configuration in your gcloud environment and not to the project-wide settings.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have successfully downloaded and installed the Google Cloud SDK, which includes the gcloud command line interface (CLI), and you have authenticated with your Google Account. In your Google Cloud project, most of your Compute Engine instances are located in the europe-west1-d zone. To streamline your workflow and avoid the repetitive task of specifying this zone with each CLI command when managing these instances, what configuration change should you make?
A
Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
B
In the Settings page for Compute Engine under Default location, set the zone to europe-west1-d.
C
In the CLI installation directory, create a file called default.conf containing zone=europe-west1-d.
D
Create a Metadata entry on the Compute Engine page with key compute/zone and value europe-west1-d.
No comments yet.