Question 17 of 500
Setting up a cloud solution environmentmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct choice is to use Terraform with `google_project`, `google_project_service`, and billing account linkage resources because Terraform’s declarative Infrastructure as Code approach lets you define the entire GCP project—including folder placement, billing account attachment, and API enablement—in version-controlled configuration files, ensuring every deployment is identical and auditable. On the Google Associate Cloud Engineer exam, this scenario tests your understanding of reproducible project provisioning versus manual or scripted methods; a common trap is to select Cloud Shell commands or Deployment Manager, but Terraform is the standard for multi-resource, repeatable setups across environments. Remember that Terraform’s `google_project` resource handles folder and billing linkage natively, while `google_project_service` enables APIs—together they form a complete, automated project bootstrap. A helpful memory tip: think of Terraform as the “blueprint builder” for your GCP foundation, where every project must be “billed, folded, and enabled” in code.

Google ACE Setting up a cloud solution environment Practice Question

This ACE practice question tests your understanding of setting up a cloud solution environment. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A team is creating a new GCP project for a sensitive workload. They need to ensure the project is linked to the correct billing account, placed in the correct folder, and has specific APIs enabled — all reproducibly. They want to automate this via Infrastructure as Code. Which approach is most appropriate?

Question 1mediummultiple choice
Full question →

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

Use Terraform with `google_project`, `google_project_service`, and billing account linkage resources.

Option B is correct because Terraform is an Infrastructure as Code (IaC) tool that allows you to define the entire project setup—including folder placement, billing account linkage, and API enablement—in declarative configuration files. This ensures reproducibility, version control, and automation, which aligns with the requirement for a sensitive workload that must be set up consistently every time.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use a gcloud script with `gcloud projects create`, `gcloud beta billing projects link`, and `gcloud services enable`.

    Why it's wrong here

    Shell scripts are imperative and not idempotent by default; they lack state tracking, drift detection, and are harder to review in code.

  • Use Terraform with `google_project`, `google_project_service`, and billing account linkage resources.

    Why this is correct

    Terraform provides declarative, idempotent, state-tracked project bootstrapping covering folder placement, billing linkage, and API enablement in a single plan/apply.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use Cloud Console to manually create the project, then document the steps in a runbook.

    Why it's wrong here

    Manual console steps are not reproducible as code and introduce human error risk; not suitable for an IaC requirement.

  • Use Cloud Deployment Manager with a Python template to create the project.

    Why it's wrong here

    Cloud Deployment Manager is Google-native IaC and can work, but billing account linkage is not natively supported in DM, making Terraform the more complete solution.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between imperative scripting (gcloud) and declarative IaC (Terraform), where candidates mistakenly choose gcloud because it seems simpler, but fail to recognize that reproducibility and state management are the key requirements for sensitive workloads.

Detailed technical explanation

How to think about this question

Terraform uses a declarative configuration language (HCL) and maintains a state file to track real-world resources, enabling idempotent deployments and drift detection. When creating a project, Terraform can use the `google_project` resource with `org_id` or `folder_id` to place it in the correct hierarchy, and the `google_project_service` resource to enable APIs, all while the billing account is linked via the `google_billing_account_iam_member` or `google_project` `billing_account` attribute. This approach ensures that any changes to the project structure are version-controlled and can be reviewed via pull requests, which is critical for sensitive workloads.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related ACE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free ACE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this ACE question test?

Setting up a cloud solution environment — This question tests Setting up a cloud solution environment — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use Terraform with `google_project`, `google_project_service`, and billing account linkage resources. — Option B is correct because Terraform is an Infrastructure as Code (IaC) tool that allows you to define the entire project setup—including folder placement, billing account linkage, and API enablement—in declarative configuration files. This ensures reproducibility, version control, and automation, which aligns with the requirement for a sensitive workload that must be set up consistently every time.

What should I do if I get this ACE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.