Question 730
At Westfield Retail Infrastructure, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a remote module references the default branch of a Git repository and production plans change when upstream commits land. 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
An unpinned Git module source can move independently of the caller configuration. That mechanism distinguishes git module source pinned revision in the Westfield Retail Infrastructure case. The corresponding appropriate correction is: Pin the supported Git source to an approved tag or immutable revision using the appropriate ref. The measurable acceptance test is: A clean init resolves the same reviewed source revision across runs.
Incorrect Answers
This alternative is valid when private module source access is a separate authorization from provider installation. The facts here establish a different controlling reason: An unpinned Git module source can move independently of the caller configuration.
The offered principle describes: Modules package related Terraform declarations for controlled reuse. The situation in this question instead depends on: An unpinned Git module source can move independently of the caller configuration. These are different technical conditions.
This alternative is valid when sets do not guarantee meaningful element ordering. The facts here establish a different controlling reason: An unpinned Git module source can move independently of the caller configuration.