Google ACE Setting Up a Cloud Solution Environment Practice Question
A company wants to manage multiple GCP projects with different configurations (e.g., different regions and accounts) on the same workstation. Which gcloud feature should they use to switch between these configurations?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configuration profiles
Configuration profiles allow setting different sets of properties (project, region, account) and switching between them with 'gcloud config configurations activate'.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Environment variables
Why it's wrong here
Cloud SDK environment variables such as CLOUDSDK_CORE_PROJECT, CLOUDSDK_AUTH_ACCESS_TOKEN, and CLOUDSDK_ACTIVE_CONFIG_NAME can influence command behavior, but they are session-scoped and require exporting before each command or shell session, making them unwieldy for frequent project switching. They also don't encapsulate the full set of properties (credentials, region, project) as a single switchable context, so relying on them for multi-project management is error-prone and less elegant than gcloud config configurations.
- ✗
gcloud init each time
Why it's wrong here
Running gcloud init each time re-runs the interactive setup wizard, re-authenticates credentials, and regenerates the active configuration from scratch, which is heavy-handed and disruptive when toggling between projects. It also overwrites the currently active configuration rather than preserving pre-defined named configurations, making it unsuitable for scripting, automation, or rapid context switches between multiple GCP projects.
- ✓
Configuration profiles
Why this is correct
gcloud config configurations (also called profiles) let you create and store named sets of properties including project, account, and region, then switch between them instantly with 'gcloud config configurations activate PROFILE'. Each profile can have its own authenticated credentials because 'gcloud auth login' can be run while a profile is active, so you can maintain distinct identities and project scopes simultaneously — this is the built-in, designed mechanism for multi-project management.
- ✗
Multiple gcloud installations
Why it's wrong here
Installing multiple copies of the Cloud SDK is unnecessary because a single installation already supports unlimited project contexts through the configuration system. Separate installations waste disk space, complicate PATH management, and can cause version drift or conflicting credential stores, while offering no advantage over named configurations for switching projects.
Go deeper
Related to this question
Learn chapter
GCP IAM and Service Accounts
Key term
Region
A region is a distinct geographic location where a cloud provider operates multiple data centers that are connected by low-latency networks and provide cloud services.
Key term
Switch
A switch is a networking device that connects devices on a local area network and uses MAC addresses to forward data only to the intended recipient.
About these practice questions
Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.