Question 820
At Alpinegate Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a service module produces an internal IP and another module requires it but root outputs reveal unrelated secrets. 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
Audit module output necessity and security classification. This control addresses module outputs for external consumers because module interfaces can expose selected data without publishing every internal attribute. The original implementation remedy remains: Export only the nonsecret IP and pass it explicitly to the consumer module.
Incorrect Answers
That review protects the control associated with: Module outputs and inputs compose independent root-level infrastructure building blocks. It does not directly prevent the stated recurrence, which concerns: Module interfaces can expose selected data without publishing every internal attribute. The appropriate guardrail is “Audit module output necessity and security classification”.
This safeguard is for the dependency described by: Terraform module variable namespaces are isolated and inputs are passed through the call interface. The continuing risk here is determined by: Module interfaces can expose selected data without publishing every internal attribute. The targeted safeguard is “Audit module output necessity and security classification”.
“Protect essential resources and audit changes to safety lifecycle rules” addresses a different recurring failure: prevent_destroy rejects plans that would destroy a configured protected resource. For the condition in this question, maintain “Audit module output necessity and security classification” because module interfaces can expose selected data without publishing every internal attribute.