Question 420
A controlled test for Mariner Infrastructure Group focuses on the original failure: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. Which controlled check would validate the remediation?
Explanation
Correct Answer
A changed environment input updates all calculated uses consistently without repeated expressions. This directly verifies the corrective action: Define a local value derived from variables and reference local.<name> from the resources. The measured result specifically addresses the failure at Mariner Infrastructure Group: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block.
Incorrect Answers
The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.
The state list and inspected resource ID match the intended new address without unplanned object deletion. This evidence would validate a DIFFERENT correction: Correct the mapping using supported state move/removal and import tooling after taking backups. That different correction addresses: An engineer imports a shared resource to the wrong address and then manually edits terraform.tfstate with a text editor. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.
A planned replacement shows the chosen replacement sequence rather than claiming depends_on alters lifecycle order. This evidence would validate a DIFFERENT correction: Separate ordering controls from lifecycle replacement behavior and verify whether create_before_destroy is valid for the provider. That different correction addresses: A resource is being replaced because a required argument changed, but a reviewer assumes depends_on alone forces zero-downtime recreation. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.