Courseiva
Setting Up a Cloud Solution EnvironmenthardMultiple ChoiceObjective-mapped

Google ACE Setting Up a Cloud Solution Environment Practice Question

A team is using gcloud configurations to manage multiple projects. They want to create a new configuration for a production project. How can they achieve this?

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

Run 'gcloud config configurations create prod' then 'gcloud config set project prod-project'

Manage configurations with 'gcloud config configurations create' and then set properties. Switching is done 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.

  • Run 'gcloud init' and select 'Create a new configuration'

    Why it's wrong here

    gcloud init is an interactive wizard that sets up default configuration and can create new configurations, but it doesn't support specifying a configuration name as a command-line argument; you would still need to explicitly create and name the configuration using gcloud config configurations create. Furthermore, running gcloud init might reset or alter your current configuration if you're not careful, making it unsuitable for managing multiple named configurations in a scripted or reproducible way.

  • Run 'gcloud config configurations create prod' then 'gcloud config set project prod-project'

    Why this is correct

    The correct method is to first run gcloud config configurations create prod, which generates a new empty named configuration and automatically activates it. With the prod configuration active, gcloud config set project prod-project then sets the project property for that configuration, providing a clean, isolated environment for managing the prod project.

  • Run 'gcloud config set project prod-project' with a flag to create new config

    Why it's wrong here

    There is no flag on gcloud config set project that creates a new configuration; this command only updates properties in the currently active configuration. Passing an imaginary flag like --new-configuration would be rejected because the gcloud CLI does not define such a flag. To create a new configuration, you must explicitly use the gcloud config configurations create subcommand; no single gcloud config set invocation can create a configuration.

  • Edit the gcloud config file manually

    Why it's wrong here

    Manually editing the gcloud configuration files is error-prone because these files are structured and managed by the CLI, and an improper edit can corrupt the configuration or cause surprising behavior in your shell. The gcloud CLI also does not guarantee backward compatibility for the file formats across versions, so hand-editing is fragile. Instead, use the gcloud config set and gcloud config configurations commands to safely modify properties and create configurations.

About these practice questions

This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.