You must manage multiple GCP projects with minimal steps using the Google Cloud SDK CLI. How should you configure gcloud?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a gcloud configuration for each project you manage and activate the appropriate configuration when working on each project..
Why this is the answer
The correct approach is to create a separate gcloud configuration for each project and activate the relevant configuration when needed. This method, using gcloud config configurations create and gcloud config configurations activate, allows you to quickly switch between distinct project contexts (project ID, account, region, etc.) without re-entering details or risking accidental changes to the wrong project. Incorrect options: Using gcloud init for non-default projects is inefficient as it re-initializes the entire configuration, which is slower and less flexible than activating a pre-defined configuration. Relying solely on the default configuration and activating others is partially correct, but it's best practice to have dedicated configurations for all projects for clarity and consistency, rather than leaving one as an unnamed "default." Running gcloud init to change values when switching projects is cumbersome and error-prone; dedicated configurations are designed to streamline this process.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed