Question 620
At Thornvale Health Research, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a module depends_on references an entire unrelated module and many data reads become deferred unnecessarily. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which operational control addresses the risk long term?
Explanation
Correct Answer
Review dependency edges for minimal necessary scope. This control addresses avoid unnecessary depends_on because overly broad depends_on can make plans more conservative and defer otherwise known reads. The original implementation remedy remains: Replace broad explicit dependency with precise resource references where possible.
Incorrect Answers
That review protects the control associated with: A lifecycle replacement trigger can coordinate recreation when another tracked resource changes. It does not directly prevent the stated recurrence, which concerns: Overly broad depends_on can make plans more conservative and defer otherwise known reads. The appropriate guardrail is “Review dependency edges for minimal necessary scope”.
This safeguard is for the dependency described by: Terraform may convert compatible primitive values but a typed module should define the intended representation. The continuing risk here is determined by: Overly broad depends_on can make plans more conservative and defer otherwise known reads. The targeted safeguard is “Review dependency edges for minimal necessary scope”.
That review protects the control associated with: Terraform can plan destruction order from managed dependency relationships. It does not directly prevent the stated recurrence, which concerns: Overly broad depends_on can make plans more conservative and defer otherwise known reads. The appropriate guardrail is “Review dependency edges for minimal necessary scope”.