Question 1
At Ashgrove Cloud Operations, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a platform team documents a fleet of servers in a wiki but manually recreates them after outages. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which implementation or operation most directly addresses this case?
Explanation
Correct Answer
Define the intended infrastructure in version-controlled Terraform configuration. This is the supported remedy for desired infrastructure expressed as versioned configuration because human instructions are not an executable machine-readable declaration of desired infrastructure. The Ashgrove Cloud Operations team should confirm the change using the direct evidence: A fresh environment recreated from the reviewed configuration matches its intended architecture.
Incorrect Answers
The alternative focuses on the technical control described by: Imperative scripts encode actions rather than a convergent description of managed objects. The present requirement is governed by: Human instructions are not an executable machine-readable declaration of desired infrastructure. Apply “Define the intended infrastructure in version-controlled Terraform configuration” to address that particular cause.
“Require pull requests and version control for Terraform configuration changes” can be suitable where console-only changes lack a systematic code history and review trail. It does not resolve this question’s narrower failure, which follows: Human instructions are not an executable machine-readable declaration of desired infrastructure. The relevant action is “Define the intended infrastructure in version-controlled Terraform configuration”.
The alternative focuses on the technical control described by: Without an appropriate constraint init can select a provider release incompatible with existing resource declarations. The present requirement is governed by: Human instructions are not an executable machine-readable declaration of desired infrastructure. Apply “Define the intended infrastructure in version-controlled Terraform configuration” to address that particular cause.