Rationale for Correct Answer: Terraform uses a declarative approach: you define the desired end state of infrastructure in configuration files that can be version-controlled and repeatedly applied. Terraform then computes an execution plan to reach that state. This is a key distinction from ad-hoc API calls or hand-written scripts that typically manage infrastructure in a more imperative and less state-aware way.
Analysis of Incorrect Options (Distractors):
B: Incorrect because Terraform is not “merely a wrapper.” It provides a workflow (state, diff/plan, dependency graph, drift detection) that fundamentally changes how infrastructure is managed.
C: Incorrect because Terraform does not replace provider APIs; providers still use the underlying cloud/service APIs.
D: Incorrect because Terraform is primarily declarative, not imperative scripting to force a specific order (ordering is derived from dependencies).
Key Concept: Declarative desired-state configuration, plan/apply workflow, and version-controlled IaC.
[Reference: Terraform Objectives — Understand Terraform’s Purpose and Use Cases; Understand Infrastructure as Code (IaC) Concepts., , , , ]
Submit