AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 297

A company runs a web application on Amazon Elastic Kubernetes Service (Amazon EKS). The company uses Amazon CloudFront to distribute the application. The company recently enabled AWS WAF. The company set up Amazon CloudWatch Logs to send logs to an aws-waf-logs log group.

The company wants a DevOps engineer to receive alerts if there are sudden changes in blocked traffic. The company does not want to receive alerts for other changes in AWS WAF log behavior. The company will tune AWS WAF rules over time.

The DevOps engineer is currently subscribed to an Amazon Simple Notification Service (Amazon SNS) topic in the environment.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Creating a CloudWatch metric filter specifically for blocked requests isolates the desired traffic data, while CloudWatch anomaly detection dynamically adjusts to normal changes in traffic patterns over time as WAF rules are tuned. Using a general log group anomaly detector (options B and D) would capture all log pattern changes rather than focusing exclusively on blocked traffic. Option C is incorrect because it filters for counted requests instead of blocked requests and relies on a static threshold that does not adapt to WAF rule tuning.