HashiCorp Terraform-Associate-004 Question Answer
What is the primary purpose of Infrastructure as Code (IaC)?
To provision infrastructure cheaply.
To programmatically create and configure resources.
To define a vendor-agnostic API
To define a pipeline to test and deliver software.
Details
Rationale for Correct Answer:The primary purpose of Infrastructure as Code (IaC) is to define, provision, and manage infrastructure using code. Exam
Analysis of Incorrect Options (Distractors):
A. To provision infrastructure cheaply. Incorrect because cost reduction may be a benefit, but it is not the primary goal of IaC.
C. To define a vendor-agnostic API. Incorrect because IaC tools may support multiple providers, but their purpose is not to define APIs.
D. To define a pipeline to test and deliver software. Incorrect because this refers to CI/CD pipelines, not IaC.
Key Concept:IaC enables automation, consistency, and version-controlled infrastructure management through code.
TESTED 11 Aug 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved