Question 790
At Zenithpark Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a parent team wants a different internal child naming convention and attempts to set a child local value directly in the module block. 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
Locals are internal computed values rather than externally assignable module arguments. That mechanism distinguishes parent cannot override child internal local in the Zenithpark Data Platforms case. The corresponding appropriate correction is: Expose a documented input variable in the child for the intended customization. The measurable acceptance test is: A new documented input controls the name without accessing child locals.
Incorrect Answers
“Terraform module variable namespaces are isolated and inputs are passed through the call interface” reflects the mechanism: Terraform module variable namespaces are isolated and inputs are passed through the call interface. The actual reported symptoms are better explained by: Locals are internal computed values rather than externally assignable module arguments.
The offered principle describes: Module interfaces can expose selected data without publishing every internal attribute. The situation in this question instead depends on: Locals are internal computed values rather than externally assignable module arguments. These are different technical conditions.
This alternative is valid when backend initialization can be intentionally skipped for non-stateful checks while providers and modules remain necessary. The facts here establish a different controlling reason: Locals are internal computed values rather than externally assignable module arguments.