Which approach best enforces consistent infrastructure configuration by treating deployments as code committed to version control and reviewed before apply?

Prepare for the HashiCorp Terraform Associate Exam. Utilize flashcards and multiple-choice questions with detailed hints and explanations. Boost your confidence and be ready for success!

Multiple Choice

Which approach best enforces consistent infrastructure configuration by treating deployments as code committed to version control and reviewed before apply?

Explanation:
Treating infrastructure changes as code that lives in version control and is only applied after a review is the hallmark of reliable, reproducible deployments. When a provisioning pipeline pulls configurations that are committed to the version control system and enforces code reviews before applying them, every change is captured in a central, auditable history and vetted by peers. This approach ensures consistency across environments, minimizes human error, and enables safe rollback if something goes wrong. It also supports automation, so deployments are repeatable and scalable rather than ad hoc. The other options miss that combination of automation, version control, and governance. Replacing a compute instance type aims at resource sizing rather than enforcing a consistent, codified deployment process. A ticketing workflow that leads to manual provisioning introduces drift and lacks the automatic checks and balances of a code-based pipeline. A checklist is a manual guide that, while helpful, relies on individual discipline and does not enforce changes through version-controlled, reviewed code or automated apply steps.

Treating infrastructure changes as code that lives in version control and is only applied after a review is the hallmark of reliable, reproducible deployments. When a provisioning pipeline pulls configurations that are committed to the version control system and enforces code reviews before applying them, every change is captured in a central, auditable history and vetted by peers. This approach ensures consistency across environments, minimizes human error, and enables safe rollback if something goes wrong. It also supports automation, so deployments are repeatable and scalable rather than ad hoc.

The other options miss that combination of automation, version control, and governance. Replacing a compute instance type aims at resource sizing rather than enforcing a consistent, codified deployment process. A ticketing workflow that leads to manual provisioning introduces drift and lacks the automatic checks and balances of a code-based pipeline. A checklist is a manual guide that, while helpful, relies on individual discipline and does not enforce changes through version-controlled, reviewed code or automated apply steps.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy