Question 373 of 507
Fundamental cloud conceptsmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that Infrastructure as Code (IaC) defines infrastructure in version-controlled code files, enabling reproducible, automated, and consistent environment provisioning versus error-prone manual console configuration. This is correct because IaC shifts cloud resource management from manual clicks in a web console to machine-readable definition files like YAML or HCL, solving the core problems of human error, configuration drift, and non-reproducible setups. On the Google Cloud Digital Leader exam, this concept tests your understanding of how IaC supports DevOps principles and automated deployment pipelines, often appearing in questions contrasting manual vs. automated provisioning. A common trap is thinking IaC is only about scripting; remember it’s about declarative or imperative code that enforces a desired state and detects drift. Memory tip: think “code, not clicks” to instantly recall that IaC replaces manual console work with version-controlled, repeatable automation.

Cloud Digital Leader Fundamental cloud concepts Practice Question

This GCDL practice question tests your understanding of fundamental cloud concepts. 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.

What is 'infrastructure as code' (IaC), and what problem does it solve compared to manually configuring cloud resources through a web console?

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

IaC defines infrastructure in version-controlled code files, enabling reproducible, automated, and consistent environment provisioning versus error-prone manual console configuration.

Infrastructure as Code (IaC) is the practice of managing and provisioning cloud resources through machine-readable definition files (e.g., YAML, JSON, HCL) rather than through manual processes like clicking in a web console. The core problem it solves is eliminating the error-prone, inconsistent, and non-reproducible nature of manual configuration by enabling version-controlled, automated, and repeatable deployments. Tools like Terraform, AWS CloudFormation, and Azure Resource Manager (ARM) templates are common IaC implementations that enforce desired state configuration and drift detection.

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.

  • IaC is a programming language specifically for writing cloud applications.

    Why it's wrong here

    IaC is not a programming language for applications. It's a practice of defining infrastructure configuration in code files (using tools like Terraform HCL or YAML) for repeatable, automated provisioning.

  • IaC defines infrastructure in version-controlled code files, enabling reproducible, automated, and consistent environment provisioning versus error-prone manual console configuration.

    Why this is correct

    IaC makes infrastructure reproducible (apply the same code to get the same result), version-controlled (track changes like software), automated (CI/CD pipelines), and consistent (no manual variation).

    Related concept

    Read the scenario before looking for a memorised answer.

  • IaC is a tool that automatically discovers and documents existing cloud infrastructure.

    Why it's wrong here

    IaC prescriptively defines what infrastructure should exist. Cloud Asset Inventory or other discovery tools describe what currently exists. They are different capabilities.

  • IaC requires writing custom Python scripts for every cloud resource type.

    Why it's wrong here

    IaC tools like Terraform use declarative configuration languages (HCL) where you describe the desired state, not procedural scripts. No custom Python is required for standard resources.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that IaC is a specific tool or scripting language, rather than a methodology for reproducible infrastructure management, leading candidates to confuse it with automation scripts or discovery tools.

Detailed technical explanation

How to think about this question

Under the hood, IaC tools use a desired-state model where the user declares the target configuration, and the tool computes the difference (diff) between the current state and the desired state, then applies only the necessary changes (idempotent operations). For example, Terraform uses a state file (terraform.tfstate) to track real-world resources and a plan/apply workflow to ensure consistency. A real-world scenario where this matters is in multi-environment deployments (dev, staging, prod), where IaC guarantees that each environment is provisioned identically, preventing configuration drift that often occurs with manual console changes.

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 cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

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 GCDL 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 GCDL 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 GCDL question test?

Fundamental cloud concepts — This question tests Fundamental cloud concepts — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: IaC defines infrastructure in version-controlled code files, enabling reproducible, automated, and consistent environment provisioning versus error-prone manual console configuration. — Infrastructure as Code (IaC) is the practice of managing and provisioning cloud resources through machine-readable definition files (e.g., YAML, JSON, HCL) rather than through manual processes like clicking in a web console. The core problem it solves is eliminating the error-prone, inconsistent, and non-reproducible nature of manual configuration by enabling version-controlled, automated, and repeatable deployments. Tools like Terraform, AWS CloudFormation, and Azure Resource Manager (ARM) templates are common IaC implementations that enforce desired state configuration and drift detection.

What should I do if I get this GCDL 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

Keep practising

More GCDL practice questions

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 GCDL 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 GCDL exam.