
Answer-first summary for fast verification
Answer: Create two configurations using gcloud configurations create [NAME]. Run gcloud configurations activate [NAME] to switch between accounts when running the commands to start the Compute Engine instances.
Option A allows you to create and activate different configurations for your GCP accounts, making it easy to switch between accounts and run commands without having to re-enter your credentials. The other options are not correct because they either do not specify how to switch between accounts or do not address how to start the Compute Engine instances. Specifically, Options B and D mention using 'gcloud configurations list,' which only lists available configurations and does not start instances. Option C suggests 'gcloud config list,' which also does not help start instances.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have two separate Google Cloud Platform (GCP) accounts. The first account operates in your default region and zone, while the second account operates in a non-default region and zone. Your objective is to launch new Compute Engine instances in both of these GCP accounts using the command line interface (CLI). How would you accomplish this task?
A
Create two configurations using gcloud configurations create [NAME]. Run gcloud configurations activate [NAME] to switch between accounts when running the commands to start the Compute Engine instances.
B
Create two configurations using gcloud configurations create [NAME]. Run gcloud configurations list to start the Compute Engine instances.
C
Activate two configurations using gcloud configurations activate [NAME]. Run gcloud config list to start the Compute Engine instances.
D
Activate two configurations using gcloud configurations activate [NAME]. Run gcloud configurations list to start the Compute Engine instances.
No comments yet.