Question 440
Redwood Application Group requires independent evidence before signing off this Terraform correction: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. Which controlled check would validate the remediation?
Explanation
Correct Answer
A proposed deletion is rejected by Terraform while the rule remains in the resource configuration. This directly verifies the corrective action: Apply an appropriate prevent_destroy lifecycle rule and complementary access/governance controls for the protected resource. The measured result specifically addresses the failure at Redwood Application Group: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy.
Incorrect Answers
The plan detects the version change and the provider applies the new secret without persisting the secret itself. This evidence would validate a DIFFERENT correction: Update the provider-defined write-only version marker according to its documented rotation mechanism. That different correction addresses: A provider offers a write-only credential argument and companion version field, but a team rotates only the secret value and expects Terraform to detect the change from state. It does not establish that the Redwood Application Group issue has been corrected: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. The relevant measured outcome is: A proposed deletion is rejected by Terraform while the rule remains in the resource configuration.
The state mapping moves to the new address and the plan retains the existing remote identity. This evidence would validate a DIFFERENT correction: Use a state mv or moved block for address refactoring when the same remote object should remain managed. That different correction addresses: A resource is renamed in configuration but a team uses state rm, then wonders why Terraform plans to create a duplicate object. It does not establish that the Redwood Application Group issue has been corrected: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. The relevant measured outcome is: A proposed deletion is rejected by Terraform while the rule remains in the resource configuration.
A formatted but invalid argument still fails terraform validate, demonstrating the separation. This evidence would validate a DIFFERENT correction: Use fmt for style, init for dependencies, and validate for configuration checks as separate steps. That different correction addresses: An engineer assumes terraform fmt downloads providers and validates all provider resource attributes. It does not establish that the Redwood Application Group issue has been corrected: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. The relevant measured outcome is: A proposed deletion is rejected by Terraform while the rule remains in the resource configuration.