Question 430
A Terraform change provisions a new security logging bucket with overly broad read access; the pipeline has no policy validation. Which remediation-and-acceptance-test pairing is most defensible for the problem?
Explanation
Correct Answer
Add policy-as-code access checks and least-privilege tests to the infrastructure deployment gate with drift reporting after launch. Verify that an unauthorized role is denied access in an acceptance test and the noncompliant change is blocked preproduction. Infrastructure-as-code delivery should validate security behavior, not simply provisioning success.
Incorrect Answers
That pair addresses create reusable defense architectural patterns rather than the present failure. Here, verify that an unauthorized role is denied access in an acceptance test and the noncompliant change is blocked preproduction.
A name check cannot establish confidentiality or least-privilege enforcement. A passing check cannot justify that unsafe shortcut.
The action is relevant, but the cited check belongs to deploy security data solutions through ci/cd and does not confirm the requested result. Verify instead: An unauthorized role is denied access in an acceptance test and the noncompliant change is blocked preproduction.