Incident and Event Response

A security event requires adding a blocked CIDR range to an AWS WAF IP set managed by CloudFormation. All infrastructure changes must remain reproducible from the version-controlled template; which automated response BEST meets this requirement?

Show the answer

Correct answerC. Update the template in version control, then execute the stack deployment pipeline.

AWhy not this: An unchanged template does not record the new CIDR and cannot reproduce the required configuration.

BWhy not this: Drift detection reports differences; it does not update the authoritative template with the blocked CIDR.

CWhy this is right: The template records the desired IP set configuration, and the pipeline applies it through CloudFormation.

DWhy not this: Changing an application parameter does not update the CloudFormation-managed AWS WAF IP set.

Updating the authoritative template and deploying the stack keeps the event-driven change reproducible. Drift detection identifies differences but does not incorporate an out-of-band IP set change into the template.