Question 250
At Highmeadow Retail Infrastructure, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a security reviewer sees terraform plan output and assumes it has already opened the firewall. 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
A plan previews intended actions but does not itself carry out infrastructure mutations. That mechanism distinguishes plan as a proposal not an execution in the Highmeadow Retail Infrastructure case. The corresponding appropriate correction is: Run terraform apply only after the change is approved. The measurable acceptance test is: The firewall rule changes only during the approved apply.
Incorrect Answers
This alternative is valid when apply success does not prove the environment remains aligned after external operations. The facts here establish a different controlling reason: A plan previews intended actions but does not itself carry out infrastructure mutations.
The offered principle describes: prevent_destroy rejects plans that would destroy a configured protected resource. The situation in this question instead depends on: A plan previews intended actions but does not itself carry out infrastructure mutations. These are different technical conditions.
This alternative is valid when removing an address from Terraform management should be distinct from deleting the remote object. The facts here establish a different controlling reason: A plan previews intended actions but does not itself carry out infrastructure mutations.