Question 410
An IaC pipeline deploys security groups after syntax checks but never tests their effective network access, allowing a broad SSH ingress rule into production. Which control change most directly addresses the stated problem?
Explanation
Correct Answer
Enforce security policy checks on planned changes before merge and apply. The intervention addresses the observed exposure because Declarative infrastructure should be validated against security invariants. It should be implemented with change authorization and the service-specific safety constraints of this case. Confirm the result by checking whether a broad unauthorized ingress rule is rejected at plan review.
Incorrect Answers
The alternative claims: “Accept any Terraform plan that passes formatting and schema checks”. The controlling technical principle here is Declarative infrastructure should be validated against security invariants.
The alternative claims: “Keep broad SSH ingress and add a warning in code comments”. The actual failure or design condition is Syntactic validity does not establish safe policy semantics.
Require approval of the source file still permits skip review of effective ingress policy. What the present question requires instead is Enforce security policy checks on planned changes before merge and apply.