Question 120
At Dalesworth Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a maintenance team writes a Terraform constraint that allows any future major provider release and is surprised by a breaking upgrade. 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
Document tested provider ranges and upgrade criteria. This control addresses provider version constraint range semantics because unbounded versions permit major releases that may change provider schemas and behavior. The original implementation remedy remains: Use a bounded version constraint appropriate for the provider compatibility policy.
Incorrect Answers
This safeguard is for the dependency described by: The dependency lock file preserves previously selected versions until an upgrade is explicitly requested. The continuing risk here is determined by: Unbounded versions permit major releases that may change provider schemas and behavior. The targeted safeguard is “Document tested provider ranges and upgrade criteria”.
“Document cross-provider output dependencies in shared root modules” addresses a different recurring failure: Resource references can connect provider-specific objects in one dependency graph. For the condition in this question, maintain “Document tested provider ranges and upgrade criteria” because unbounded versions permit major releases that may change provider schemas and behavior.
This safeguard is for the dependency described by: Adoption into state does not imply the imported object's live settings match desired configuration. The continuing risk here is determined by: Unbounded versions permit major releases that may change provider schemas and behavior. The targeted safeguard is “Document tested provider ranges and upgrade criteria”.