Which of the following is an example of infrastructure as code?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Which of the following is an example of infrastructure as code?

Explanation:
Infrastructure as code means describing the desired state of your infrastructure in text files that you can version, review, and apply with automation tools. Versioned configuration files are a perfect fit because they capture all the settings for resources (like servers, networks, and storage) in a human‑readable, machine‑driven form that can be tracked in source control and applied to recreate environments consistently. Cloned virtual machine images are concrete artifacts, not a description of the infrastructure you want. Change management database records describe human processes around changes, not the infrastructure itself. Dockerfiles define how to build container images, which is related to deployment environments, but the classic infrastructure‑as‑code emphasis is on declaring and provisioning infrastructure resources via configuration files that tools like Terraform use.

Infrastructure as code means describing the desired state of your infrastructure in text files that you can version, review, and apply with automation tools. Versioned configuration files are a perfect fit because they capture all the settings for resources (like servers, networks, and storage) in a human‑readable, machine‑driven form that can be tracked in source control and applied to recreate environments consistently.

Cloned virtual machine images are concrete artifacts, not a description of the infrastructure you want. Change management database records describe human processes around changes, not the infrastructure itself. Dockerfiles define how to build container images, which is related to deployment environments, but the classic infrastructure‑as‑code emphasis is on declaring and provisioning infrastructure resources via configuration files that tools like Terraform use.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy