
Explanation:
The correct action is to unset the compute/zone property in the gcloud configuration. This ensures that the gcloud compute instances create command will prompt for a zone each time it's executed, as there's no default zone defined. The command gcloud config unset compute/zone correctly removes the zone setting, unlike setting it to an empty string, which does not effectively unset the property. This approach adheres to the syntax gcloud config unset SECTION/PROPERTY, where SECTION is compute and PROPERTY is zone.
Ultimate access to all questions.
No comments yet.
You've created two compute instances in the europe-west2-a zone using the commands gcloud compute instances create instance1 and gcloud compute instances create instance2. However, you now wish to create instances in different zones. Your current gcloud configuration is set to europe-west2-a. To ensure you're prompted for a zone each time you create a new instance, what action should you take?
A
Execute gcloud config set zone ""
B
Run gcloud config unset zone
C
Use gcloud config set compute/zone ""
D
Perform gcloud config unset compute/zone