Question 850
At Brightmarsh Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a team assumes the highest module version always has compatible behavior with an older root configuration. 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
Semantic versions identify releases but compatibility must still be assessed against module interfaces. That mechanism distinguishes private registry semantic version selection in the Brightmarsh Education Services case. The corresponding appropriate correction is: Use an explicit semver-compatible version range and validate caller inputs. The measurable acceptance test is: A tested release satisfies the constraint and caller validation.
Incorrect Answers
This alternative is valid when terraform initialization caches installed modules and may not replace them without an upgrade. The facts here establish a different controlling reason: Semantic versions identify releases but compatibility must still be assessed against module interfaces.
The offered principle describes: Module outputs and inputs compose independent root-level infrastructure building blocks. The situation in this question instead depends on: Semantic versions identify releases but compatibility must still be assessed against module interfaces. These are different technical conditions.
This alternative is valid when infrastructure-as-code workflows can expose intended creates updates and destroys before execution. The facts here establish a different controlling reason: Semantic versions identify releases but compatibility must still be assessed against module interfaces.