Question 120
After corrective work at Redwood Application Group, a reviewer requests measurable proof for: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. Which controlled check would validate the remediation?
Explanation
Correct Answer
The module's resources resolve the intended secondary provider during validation and planning. This directly verifies the corrective action: Pass an explicit providers mapping into the module and declare configuration_aliases where required. The measured result specifically addresses the failure at Redwood Application Group: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias.
Incorrect Answers
Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential. This evidence would validate a DIFFERENT correction: Load credentials through an authorized secret-management integration such as Vault and avoid committing or echoing values. That different correction addresses: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. It does not establish that the Redwood Application Group issue has been corrected: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. The relevant measured outcome is: The module's resources resolve the intended secondary provider during validation and planning.
The plan includes the cloud DNS record and monitoring check, each handled through the correct provider. This evidence would validate a DIFFERENT correction: Configure appropriate providers for each supported service in the same Terraform dependency graph. That different correction addresses: A deployment needs both cloud DNS and a SaaS monitoring check, but the team assumes Terraform can manage only one vendor's infrastructure. It does not establish that the Redwood Application Group issue has been corrected: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. The relevant measured outcome is: The module's resources resolve the intended secondary provider during validation and planning.
terraform state list shows the intended addresses and the subsequent plan does not propose duplicate infrastructure. This evidence would validate a DIFFERENT correction: Recover the appropriate state backup or import existing resources to restore Terraform's address-to-remote-ID mapping. That different correction addresses: An engineer deletes local state after provisioning cloud resources and assumes Terraform will automatically remember the existing resource IDs. It does not establish that the Redwood Application Group issue has been corrected: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. The relevant measured outcome is: The module's resources resolve the intended secondary provider during validation and planning.