Question 500
A Terraform associate evaluates: A team wants to ensure module outputs do not unnecessarily reveal secrets. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A team wants to ensure module outputs do not unnecessarily reveal secrets. The directly relevant Terraform response is: Design only necessary outputs for consumers and avoid exposing every internal resource attribute from a reusable module. This addresses the related failure mode: Broad sensitive outputs can leak implementation details and secrets while coupling callers to module internals. Validate the result by checking: A parent uses one documented endpoint output and internal module resources can be refactored without changing callers. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A team wants to ensure module outputs do not unnecessarily reveal secrets. The acceptance evidence is: A parent uses one documented endpoint output and internal module resources can be refactored without changing callers. It verifies the corrective approach (Design only necessary outputs for consumers and avoid exposing every internal resource attribute from a reusable module.) and controls the risk: Broad sensitive outputs can leak implementation details and secrets while coupling callers to module internals. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
Instantiate the same reusable child module more than once with different inputs and stable module names to create separately managed resource groups. This belongs to Module reuse with distinct inputs (official objective 5c). Its separate risk is that copying module internals instead of reusing its input interface increases drift and maintenance burden. The question instead tests Module outputs as a public interface; that other safeguard alone does not verify it.
Without version control, an external registry module may change behavior across environments as newer releases appear. That is the exact risk associated with Registry module version selection (official objective 5d), not the required Module outputs as a public interface outcome.
The module resolves from the intended repository subdirectory and resources are addressed under module.NAME. This does not provide the required Module outputs as a public interface action-and-evidence pair.