Question 720
At Westfield Manufacturing IT, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a child module returns a temporary session token through a normal output and Terraform refuses to persist it. 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
Require explicitly ephemeral interfaces for temporary credentials. This control addresses ephemeral output module propagation because an ephemeral secret can cross module boundaries only through appropriate ephemeral output contexts. The original implementation remedy remains: Use an ephemeral child-module output for supported ephemeral propagation.
Incorrect Answers
This safeguard is for the dependency described by: Vault can issue time-bounded credentials instead of long-lived shared static secrets. The continuing risk here is determined by: An ephemeral secret can cross module boundaries only through appropriate ephemeral output contexts. The targeted safeguard is “Require explicitly ephemeral interfaces for temporary credentials”.
“Represent meaningful prerequisite relationships in Terraform graph edges” addresses a different recurring failure: Time delays do not express resource readiness or graph dependencies reliably. For the condition in this question, maintain “Require explicitly ephemeral interfaces for temporary credentials” because an ephemeral secret can cross module boundaries only through appropriate ephemeral output contexts.
That review protects the control associated with: State list exposes current tracked addresses after successful refactoring. It does not directly prevent the stated recurrence, which concerns: An ephemeral secret can cross module boundaries only through appropriate ephemeral output contexts. The appropriate guardrail is “Require explicitly ephemeral interfaces for temporary credentials”.