GCP ACE · Question 07 · Domain 1.3: Installing and configuring the CLI
You work on two different Google Cloud projects: 'dev-project' and 'prod-project'. You frequently switch between them in your local terminal and need to use different default compute zones and authentication accounts for each.
What is the MOST efficient way to manage this in the Cloud SDK?
You work on two different Google Cloud projects: 'dev-project' and 'prod-project'. You frequently switch between them in your local terminal and need to use different default compute zones and authentication accounts for each.
What is the MOST efficient way to manage this in the Cloud SDK?
Answer options:
Run 'gcloud init' every time you need to switch projects.
Use the '--project', '--zone', and '--account' flags on every single gcloud command you run.
Create two separate gcloud configurations using 'gcloud config configurations create' and switch between them.
Install the Cloud SDK twice in different directories on your workstation.
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Associate Cloud Engineer Practice Exam 7
50 questions · hints · full answers · grading
Expert