Most Compute Engine instances run in europe-west1-d. To avoid specifying the zone on each gcloud command, what should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Set europe-west1-d as the default zone with gcloud config..
Why this is the answer
Setting the default zone using gcloud config set compute/zone europe-west1-d is the correct and most efficient way to avoid repeatedly specifying the zone in gcloud commands. This command permanently configures your gcloud CLI to use europe-west1-d for Compute Engine operations unless overridden by a command-line flag. The other options are incorrect: There is no "Compute Engine Settings" in the Google Cloud Console or CLI that allows you to set a project-wide default zone for gcloud commands. Creating a default.conf file in the CLI installation directory is not a standard or supported method for configuring gcloud defaults. Compute Engine metadata entries are used for configuring individual instances, not for setting default gcloud CLI behavior for a user or project.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed