Medium1 markMultiple Choice
GCP ACE · Question 08 · Domain 1.3: Installing and configuring the CLI
You frequently switch between two different GCP environments: a personal project using your personal Gmail account, and a corporate project using your company email. You want to switch between these environments quickly without having to re-authenticate or manually change the project ID each time.
Which TWO gcloud commands are essential to set up and use this workflow? (Select TWO)
You frequently switch between two different GCP environments: a personal project using your personal Gmail account, and a corporate project using your company email. You want to switch between these environments quickly without having to re-authenticate or manually change the project ID each time.
Which TWO gcloud commands are essential to set up and use this workflow? (Select TWO)
Answer options:
A.
gcloud config configurations create
B.
gcloud auth switch-account
C.
gcloud config configurations activate
D.
gcloud components update
E.
gcloud init --switch
How to approach this question
Identify how gcloud handles multiple distinct environments (configurations).
Full Answer
gcloud config configurations create, gcloud config configurations activate
gcloud supports multiple named configurations. A configuration is a set of properties (like active account, project, region). You use `gcloud config configurations create [NAME]` to make a new one, and `gcloud config configurations activate [NAME]` to switch between them seamlessly.
Common mistakes
Thinking you must run `gcloud auth login` every time you switch accounts.
Practice the full GCP Associate Cloud Engineer Practice Exam 4
50 questions · hints · full answers · grading
More questions from this exam
Q01You have recently joined a new team and need to set up a new Google Cloud project for a developme...EasyQ02Your company uses Google Workspace. You need to grant a new developer, Alice, the ability to view...MediumQ03You have created a new GCP project and want to deploy a Compute Engine instance. However, when yo...MediumQ04Your startup has a strict monthly cloud budget of $500. You want to be notified via email when yo...EasyQ05Your finance team wants to analyze Google Cloud costs using standard SQL and build custom dashboa...Medium
Expert