nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #141

Your project has all its Compute Engine resources in the europe-west1 region. You want to set europe-west1 as the default region for gcloud commands. What should you do?

The correct answer is B. Use "gcloud config set compute/region europe-west1" to set the default region for future gcloud. A is not correct because Cloud Shell will not default to the location that it's launched from. B is correct because this will ensure that the relevant region is used when not overwritten by a command parameter. C is not correct because this command should be used to set a zone…

Submitted by marco_it· Mar 30, 2026Setting up a cloud solution environment

Question

Your project has all its Compute Engine resources in the europe-west1 region. You want to set europe-west1 as the default region for gcloud commands. What should you do?

Options

  • AUse Cloud Shell instead of the command line interface of your device. Launch Cloud Shell after
  • BUse "gcloud config set compute/region europe-west1" to set the default region for future gcloud
  • CUse "gcloud config set compute/zone europe-west1" to set the default region for future gcloud
  • DCreate a VPN from on-premises to a subnet in europe-west1, and use that connection when

How the community answered

(61 responses)
  • A
    2% (1)
  • B
    92% (56)
  • C
    5% (3)
  • D
    2% (1)

Explanation

A is not correct because Cloud Shell will not default to the location that it's launched from. B is correct because this will ensure that the relevant region is used when not overwritten by a command parameter. C is not correct because this command should be used to set a zone, not a region. D is not correct because a VPN to a specific subnet does not have any effect on the gcloud https://cloud.google.com/compute/docs/regions-zones/changing-default-zone-region

Topics

#gcloud config#default region#CLI configuration#Compute Engine

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice