TA-002-P · Question #97
Which statement describes a goal of infrastructure as code?
The correct answer is D. The programmatic configuration of resources. Infrastructure as Code is defined by the programmatic configuration of resources through machine-readable definition files.
Question
Which statement describes a goal of infrastructure as code?
Options
- AAn abstraction from vendor specific APIs
- BWrite once, run anywhere
- CA pipeline process to test and deliver software
- DThe programmatic configuration of resources
How the community answered
(33 responses)- A6% (2)
- B3% (1)
- D91% (30)
Why each option
Infrastructure as Code is defined by the programmatic configuration of resources through machine-readable definition files.
Abstracting from vendor-specific APIs describes the role of a provider or SDK abstraction layer, which is a mechanism IaC tools use but not the defining goal of IaC itself.
'Write once, run anywhere' is a portability principle associated with Java's JVM model and does not accurately describe the goals of infrastructure as code.
A pipeline process to test and deliver software describes CI/CD practices, which are complementary to IaC workflows but represent a distinct engineering discipline.
The primary goal of IaC is to replace manual, interactive infrastructure provisioning with code that declaratively or imperatively defines the desired state of resources. This enables automation, repeatability, peer review, and version control of infrastructure changes in the same way application source code is managed. Terraform fulfills this goal by allowing operators to define resource configurations in HCL files that the engine then applies against cloud provider APIs.
Concept tested: Core definition and goals of infrastructure as code
Source: https://developer.hashicorp.com/terraform/intro
Topics
Community Discussion
No community discussion yet for this question.