4 questions

IaC Concepts & Terraform Purpose

Which statement best describes the core value of Infrastructure as Code (IaC) as practiced with Terraform?

  • a.It replaces the need for any cloud provider accounts
  • b.It defines infrastructure in machine-readable configuration files that can be versioned, reviewed, and reused
  • c.It only works for on-premises virtual machines
  • d.It guarantees infrastructure can never be changed after creation

IaC expresses infrastructure as declarative configuration files that live in version control, enabling code review, repeatability, and collaboration. Terraform still requires provider credentials, works across many cloud and on-prem providers, and infrastructure can absolutely be changed by editing configuration and re-applying.

IaC Concepts & Terraform Purpose

Terraform is described as a provisioning tool that uses a declarative approach. What does declarative mean in this context?

  • a.You write step-by-step imperative scripts describing each API call
  • b.You must run commands in a specific manual order every time
  • c.You describe the desired end state, and Terraform determines the actions needed to reach it
  • d.You can only describe infrastructure that already exists

A declarative tool lets you specify the desired final state of your infrastructure; Terraform compares that to current state and computes the create, update, or destroy actions required. This contrasts with imperative approaches where you script each individual step. Declarative configuration makes Terraform predictable and idempotent.

IaC Concepts & Terraform Purpose

Which of the following is a benefit that Terraform provides as a cloud-agnostic, multi-cloud provisioning tool?

  • a.A single workflow and configuration language can manage resources across many providers
  • b.It removes the need to learn any provider-specific resource attributes
  • c.It can only manage a single provider per organization
  • d.It automatically makes all clouds behave identically

Terraform uses one consistent workflow (write, plan, apply) and one configuration language (HCL) to manage resources across many providers such as AWS, Azure, GCP, and Kubernetes. You still work with provider-specific resource types and attributes, and each cloud keeps its own semantics; Terraform unifies the workflow, not the clouds.

IaC Concepts & Terraform Purpose

How does Terraform's approach differ from configuration management tools like Ansible, Chef, or Puppet in typical usage?

  • a.Terraform can only configure software inside existing servers
  • b.Terraform and configuration management tools are the exact same category
  • c.Configuration management tools provision cloud infrastructure but cannot install software
  • d.Terraform focuses on provisioning and managing infrastructure resources, while configuration management tools focus on configuring software on existing systems

Terraform is primarily a provisioning tool that creates and manages infrastructure resources such as networks, servers, and managed services. Configuration management tools specialize in installing and configuring software on machines that already exist. The two are often complementary rather than interchangeable.

Report