exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 138 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 138
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ESP_SAP
Highly Voted 4 years ago
Correct Answer is (A): Change your default zone and region in the metadata server Note: This only applies to the default configuration. You can change the default zone and region in your metadata server by making a request to the metadata server. For example: gcloud compute project-info add-metadata \ --metadata google-compute-default-region=europe-west1,google-compute-default-zone=europe-west1-b The gcloud command-line tool only picks up on new default zone and region changes after you rerun the gcloud init command. After updating your default metadata, run gcloud init to reinitialize your default configuration. https://cloud.google.com/compute/docs/gcloud-compute#change_your_default_zone_and_region_in_the_metadata_server
upvoted 29 times
dttncl
2 years, 10 months ago
I agree the answer is A. gcloud config - view and edit Cloud SDK properties zone Default zone to use when working with zonal Compute Engine resources. https://cloud.google.com/sdk/gcloud/reference/config
upvoted 3 times
...
mahesh0049
2 years, 7 months ago
every thing is correct in your explanation but instead of using gcloud compute command they used gcloud config.
upvoted 4 times
You can use the gcloud config set command here, https://cloud.google.com/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client
upvoted 4 times
...
...
xtian2900
3 years, 11 months ago
does your comment imply that the answer is D ? i'm confused
upvoted 3 times
...
Examan1
3 years, 6 months ago
Using gcloud config you can set the zone in your active configuration only. This setting does not apply to other gcloud configurations and does not become the default for the project. Ref: https://cloud.google.com/sdk/gcloud/reference/config/set So I believe correct answer is B as per https://cloud.google.com/compute/docs/regions-zones/changing-default-zone-region#console In the Cloud Console, go to the Settings page. From the Zone drop-down menu, select a default zone.
upvoted 4 times
tavva_prudhvi
3 years, 5 months ago
bro, it mentioned going into the console settings, not the compute engine settings! To change your default region or zone: In the Cloud Console, go to the Settings page. Go to the Settings page From the Region drop-down menu, select a default region. From the Zone drop-down menu, select a default zone.
upvoted 1 times
jcloud965
3 years, 1 month ago
This setting in the Cloud Console won't be taken into account for gcloud on your active config
upvoted 2 times
...
...
...
...
SSPC
Highly Voted 4 years ago
I would go with the answer A
upvoted 11 times
...
blackBeard33
Most Recent 6 months, 4 weeks ago
Selected Answer: A
I would choose A reference : https://cloud.google.com/sdk/gcloud/reference/config/set
upvoted 1 times
...
VijKall
10 months ago
Selected Answer: A
gcloud config set compute/zone europe-west1-b
upvoted 1 times
...
Captain1212
1 year ago
Selected Answer: A
A is the correct answer, just set default in cloud console in the starting by the cloud shell commands
upvoted 1 times
...
tatyavinchu
1 year ago
Correct Answer is A
upvoted 1 times
...
GokulVelusaamy
1 year, 7 months ago
Selected Answer: A
We can set the defailt zone using the below CLI command, gcloud config set compute/zone ZONE Refer : https://cloud.google.com/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client
upvoted 1 times
...
Angel_99
2 years ago
Selected Answer: A
It is clearly mentioned it is to be done via CLI not console
upvoted 1 times
...
AzureDP900
2 years, 2 months ago
A is right
upvoted 1 times
...
Tirthankar17
2 years, 2 months ago
Selected Answer: A
A, it is clearly mentioned it is to be done via CLI not console.
upvoted 1 times
...
pfabio
2 years, 3 months ago
Selected Answer: A
Just run this commando on CLI gcloud config set compute/zone ZONE
upvoted 1 times
...
Rukman
2 years, 5 months ago
Selected Answer: A
Ans: A "You want to avoid having to specify this zone with each CLI command" its about CLI not console!
upvoted 2 times
...
injarapu
2 years, 6 months ago
Selected Answer: B
https://cloud.google.com/compute/docs/regions-zones/changing-default-zone-region#console
upvoted 2 times
...
oracle111
2 years, 6 months ago
Selected Answer: A
https://cloud.google.com/compute/docs/gcloud-compute gcloud config set compute/zone ZONE
upvoted 3 times
...
ElenaL
2 years, 7 months ago
Selected Answer: A
in GCP qwiklabs, this is how they ask you set the zone primarily, so I go with A
upvoted 1 times
...
Raju44
2 years, 8 months ago
Answer A. There is no file like default.config. In my labs i set default values Zone/Region/project etc default values stored in the following location cat ~/.config/gcloud/configurations/config_default. We can also set zone default using " gcloud config set compute/zone <zona_name>"
upvoted 2 times
...
jaffarali
2 years, 8 months ago
A is the right option
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago