Medium1 markMultiple Choice
GCP ACE · Question 08 · Domain 1.3: Installing and configuring the CLI
You frequently switch between managing a 'Development' environment and a 'Production' environment. Each environment uses a different GCP project, a different default compute zone, and a different authorized service account.
Which TWO gcloud commands should you use to efficiently manage and switch between these distinct environments without re-authenticating or resetting individual properties each time? (Select TWO)
You frequently switch between managing a 'Development' environment and a 'Production' environment. Each environment uses a different GCP project, a different default compute zone, and a different authorized service account.
Which TWO gcloud commands should you use to efficiently manage and switch between these distinct environments without re-authenticating or resetting individual properties each time? (Select TWO)
Answer options:
A.
gcloud config configurations create
B.
gcloud auth login --update-profile
C.
gcloud config configurations activate
D.
gcloud projects switch
E.
gcloud environments toggle
How to approach this question
Identify the gcloud feature that allows saving multiple sets of configurations (profiles).
Full Answer
The Cloud SDK allows you to create multiple named configurations (profiles) using `gcloud config configurations create`. Each configuration can have its own default project, account, and compute zone. You can easily switch between them using `gcloud config configurations activate [NAME]`.
Common mistakes
Thinking you have to use `gcloud init` every time you switch environments.
Practice the full GCP Associate Cloud Engineer Practice Exam 3
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new project in Google Cloud and need to create a new GCP project and enable th...EasyQ02A new team member has joined your operations team. They need to be able to view all Compute Engin...MediumQ03Your company is migrating to Google Cloud. You currently manage all employee identities in an on-...MediumQ04Your development team is experimenting with new GCP services in a sandbox project. The finance te...MediumQ05Your company wants to perform complex, custom SQL analysis on their Google Cloud billing data to ...Easy
Expert