Question 10
At Ashgrove Health Research, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a developer treats a Terraform HCL resource block as a shell command to run directly on a VM. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
HCL configuration describes objects that provider APIs reconcile rather than an executable shell script. That mechanism distinguishes provider-backed infrastructure resource definition in the Ashgrove Health Research case. The corresponding appropriate correction is: Run Terraform's workflow against the supported provider to manage the declared object. The measurable acceptance test is: Terraform creates the specified resource through its provider without manual CLI creation.
Incorrect Answers
This alternative is valid when imperative scripts encode actions rather than a convergent description of managed objects. The facts here establish a different controlling reason: HCL configuration describes objects that provider APIs reconcile rather than an executable shell script.
The offered principle describes: Documented executable infrastructure definitions reduce reconstruction effort but do not replace backups of state or application data. The situation in this question instead depends on: HCL configuration describes objects that provider APIs reconcile rather than an executable shell script. These are different technical conditions.
This alternative is valid when provider-computed attributes may be unknown until resource creation. The facts here establish a different controlling reason: HCL configuration describes objects that provider APIs reconcile rather than an executable shell script.