Topic 1 Question 138
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?
Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
In the Settings page for Compute Engine under Default location, set the zone to europeג€"west1-d.
In the CLI installation directory, create a file called default.conf containing zone=europeג€"west1ג€"d.
Create a Metadata entry on the Compute Engine page with key compute/zone and value europeג€"west1ג€"d.
解説
ユーザの投票
コメント(17)
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-bThe 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.
👍 26ESP_SAP2020/08/21I would go with the answer A
👍 10SSPC2020/08/17- 正解だと思う選択肢: A
https://cloud.google.com/compute/docs/gcloud-compute
gcloud config set compute/zone ZONE
👍 3oracle1112022/02/19
シャッフルモード