Question 260
An acceptance reviewer at Mariner Infrastructure Group must validate the fix for: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. Which controlled check would validate the remediation?
Explanation
Correct Answer
The authorized apply succeeds without granting unrelated administrator permissions. This directly verifies the corrective action: Use an appropriately scoped identity and verify the supported API permissions before rerunning the reviewed operation. The measured result specifically addresses the failure at Mariner Infrastructure Group: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource.
Incorrect Answers
A deliberately misformatted fixture fails the check while a formatted one passes. This evidence would validate a DIFFERENT correction: Run terraform fmt -check in CI and fail when formatting changes would be required. That different correction addresses: A CI job should reject code that is not Terraform-formatted without silently modifying a pull-request checkout. It does not establish that the Mariner Infrastructure Group issue has been corrected: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.
terraform init configures the backend and later plans load state from the intended remote location. This evidence would validate a DIFFERENT correction: Declare the supported backend configuration in the terraform block and initialize the backend separately from providers. That different correction addresses: A team wants to store state in a remote service but mistakenly places the backend configuration inside an ordinary provider resource block. It does not establish that the Mariner Infrastructure Group issue has been corrected: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.
Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled. This evidence would validate a DIFFERENT correction: Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. That different correction addresses: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not establish that the Mariner Infrastructure Group issue has been corrected: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.