TA-002-P · Question #411
Which are examples of infrastructure as code? (Choose two.)
The correct answer is C. Versioned configuration files D. Docker files. Infrastructure as Code (IaC) refers to machine-readable, version-controlled files that define infrastructure - Dockerfiles and versioned configuration files fit this definition, while VM images and CMDB records do not.
Question
Which are examples of infrastructure as code? (Choose two.)
Options
- ACloned virtual machine images
- BChange management database records
- CVersioned configuration files
- DDocker files
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C94% (30)
Why each option
Infrastructure as Code (IaC) refers to machine-readable, version-controlled files that define infrastructure - Dockerfiles and versioned configuration files fit this definition, while VM images and CMDB records do not.
Cloned VM images are binary artifacts, not code; they cannot be easily versioned, reviewed, or diffed in the way IaC requires.
Change management database records are documentation and audit trails, not executable or declarative code that provisions infrastructure.
Versioned configuration files (such as Terraform .tf files or Ansible playbooks) are the canonical example of IaC - they are human-readable, diff-able, and stored in version control.
A Dockerfile is a declarative, text-based file that defines a container image build process, satisfying the IaC requirement of being version-controlled and reproducible code.
Concept tested: Infrastructure as Code definition and examples
Source: https://developer.hashicorp.com/terraform/intro/infrastructure-as-code
Topics
Community Discussion
No community discussion yet for this question.