Medium1 markMultiple Choice
GCP ACE · Question 07 · Domain 1.3: Installing and configuring the CLI
You are working on multiple GCP projects. You want to switch your active gcloud configuration from 'project-a-config' to 'project-b-config'. Which command should you use?
You are working on multiple GCP projects. You want to switch your active gcloud configuration from 'project-a-config' to 'project-b-config'. Which command should you use?
Answer options:
A.
gcloud config set project-b-config
B.
gcloud config configurations activate project-b-config
C.
gcloud switch project-b-config
D.
gcloud config use project-b-config
How to approach this question
Remember the command structure for managing named configurations in gcloud.
Full Answer
B.gcloud config configurations activate project-b-config✓ Correct
gcloud config configurations activate project-b-config
The Cloud SDK allows you to create multiple named configurations (which store properties like default project, account, and zone). To switch between them, you use `gcloud config configurations activate [NAME]`.
Common mistakes
Confusing `gcloud config set project` (which changes the project in the *current* config) with activating a completely different config.
Practice the full GCP Associate Cloud Engineer Practice Exam 1
50 questions · hints · full answers · grading
More questions from this exam
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert