nerdexam
HashiCorp

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.

Understand infrastructure as code (IaC) concepts

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)
  • A
    6% (2)
  • B
    3% (1)
  • D
    91% (30)

Why each option

Infrastructure as Code is defined by the programmatic configuration of resources through machine-readable definition files.

AAn abstraction from vendor specific APIs

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.

BWrite once, run anywhere

'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.

CA pipeline process to test and deliver software

A pipeline process to test and deliver software describes CI/CD practices, which are complementary to IaC workflows but represent a distinct engineering discipline.

DThe programmatic configuration of resourcesCorrect

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

#Infrastructure as Code#IaC goals#IaC definition#Automation

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice