Question 130
A Terraform associate evaluates: A root module passes aws.secondary into a child that manages remote-region resources. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A root module passes aws.secondary into a child that manages remote-region resources. The acceptance evidence is: A module resource uses the explicitly mapped provider alias and plans in the correct target environment. It verifies the corrective approach (Map the parent's intended provider configurations into a child module's providers argument and declare configuration aliases where required.) and controls the risk: Assuming child modules automatically see every aliased provider may result in wrong bindings or validation failures. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A root module passes aws.secondary into a child that manages remote-region resources. The directly relevant Terraform response is: Map the parent's intended provider configurations into a child module's providers argument and declare configuration aliases where required. This addresses the related failure mode: Assuming child modules automatically see every aliased provider may result in wrong bindings or validation failures. Validate the result by checking: A module resource uses the explicitly mapped provider alias and plans in the correct target environment. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Attach resources to the intended aliased provider instance using the resource provider meta-argument rather than relying on the default. This belongs to Explicit multi-region provider selection (official objective 2c). Its separate risk is that an omitted provider = alias reference can create infrastructure in the wrong region. The question instead tests Pass provider aliases to child modules; that other safeguard alone does not verify it.
An authorized operator can access protected state while unrelated users cannot and sample state is reviewed for exposed secrets. That addresses State sensitivity and access control (official objective 2d), specifically the hazard that marking a variable sensitive does not automatically remove its secret value from state snapshots. Here the necessary action or evidence is the paired action A module resource uses the explicitly mapped provider alias and plans in the correct target environment and separate validation Map the parent's intended provider configurations into a child module's providers argument and declare configuration aliases where required, not that separate control.
A resource without its intended provider instance may target the default region or account unexpectedly. This does not provide the required Pass provider aliases to child modules action-and-evidence pair.