Question 490
A Terraform associate evaluates: A platform team wants to update a common resource pattern through one reusable module source. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A platform team wants to update a common resource pattern through one reusable module source. The directly relevant Terraform response is: Instantiate the same reusable child module more than once with different inputs and stable module names to create separately managed resource groups. This addresses the related failure mode: Copying module internals instead of reusing its input interface increases drift and maintenance burden. Validate the result by checking: The plan contains separately addressed module instances with intentional different settings. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A platform team wants to update a common resource pattern through one reusable module source. The acceptance evidence is: The plan contains separately addressed module instances with intentional different settings. It verifies the corrective approach (Instantiate the same reusable child module more than once with different inputs and stable module names to create separately managed resource groups.) and controls the risk: Copying module internals instead of reusing its input interface increases drift and maintenance burden. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
Design only necessary outputs for consumers and avoid exposing every internal resource attribute from a reusable module. This belongs to Module outputs as a public interface (official objective 5c). Its separate risk is that broad sensitive outputs can leak implementation details and secrets while coupling callers to module internals. The question instead tests Module reuse with distinct inputs; that other safeguard alone does not verify it.
The module resolves from the intended repository subdirectory and resources are addressed under module.NAME. This is relevant to Local module source paths (official objective 5a). Its distinct failure risk is that a nonexistent local module path prevents init from loading the module, and a module name is not itself a source path. The present question tests Module reuse with distinct inputs, which this measure alone does not establish.
Consuming a mutable remote branch without an intended ref can change module behavior unexpectedly. That is the exact risk associated with Remote module sources and pinning (official objective 5a), not the required Module reuse with distinct inputs outcome.