Question 240
A product manager asks whether terraform destroy can remove unrelated resources never tracked in the selected state. Which observation would be the most direct evidence that this requirement has been satisfied?
Explanation
Correct Answer
Terraform destroy operates on managed resources recorded for the current state. Restrict destroy to the selected state's Terraform-managed resource set and inspect the plan.
Incorrect Answers
Validation tests configuration correctness, not the current state of cloud resources. Only tracked resources appear in the destroy plan for that workspace.
Saving HCL text alone does not mutate infrastructure; apply invokes provider operations. Terraform destroy operates on managed resources recorded for the current state.
Initialization can run in automation with explicit backend and plugin selections. Only tracked resources appear in the destroy plan for that workspace.