SCS-C03 practice question 4 of 15

A company runs a public web application on Amazon EKS behind Amazon CloudFront and an Application Load Balancer (ALB). A security engineer must send a notification to an existing Amazon SNS topic when the application receives 10,000 requests from the same end-user IP address within any 5-minute period. Which solution will meet these requirements?

Full set: 227 questions
Answer options
A: Configure CloudFront standard logging and CloudWatch Logs metric filters.
B: Configure VPC Flow Logs and CloudWatch Logs metric filters.
C: Configure an AWS WAF web ACL with an ASN match rule and CloudWatch alarms.
D: Configure an AWS WAF web ACL with a rate-based rule. Associate it with CloudFront. Create a CloudWatch alarm to notify SNS. Correct answer
Correct Answer:
D. Configure an AWS WAF web ACL with a rate-based rule. Associate it with CloudFront. Create a CloudWatch alarm to notify SNS.
Explanation

The most direct and efficient solution is to use an AWS WAF rate-based rule. This feature is specifically designed to track the rate of requests from individual client IP addresses over a configurable 5-minute period. When the defined threshold (10,000 requests) is breached, the rule's metric in Amazon CloudWatch is updated. A CloudWatch alarm can be configured to monitor this metric and, upon triggering, send a notification to the specified Amazon SNS topic. This approach is purpose-built for rate limiting and monitoring.

Why Incorrect

A. This is a less efficient, reactive method. It requires processing large volumes of logs to derive metrics, introducing latency and complexity compared to WAF's real-time tracking.
B. VPC Flow Logs operate at the network layer (IP packets) and lack the application-layer visibility (HTTP requests) needed to accurately count requests from a specific end-user IP to the application.
C. An ASN match rule is used to filter traffic based on the Autonomous System Number of the source IP (e.g., an ISP), not for rate-limiting individual IP addresses.

References

1. AWS WAF Documentation. (2023). Rate-based rules. AWS Developer Guide. "A rate-based rule tracks the rate of requests for each originating IP address... If an IP address breaches the limit, the rule action is applied to that IP address."

2. AWS WAF Documentation. (2023). Monitoring with Amazon CloudWatch. AWS Developer Guide. "AWS WAF sends metrics to Amazon CloudWatch for your web ACLs and rules... You can use these metrics to set up CloudWatch alarms."

3. Amazon CloudWatch Documentation. (2023). Using Amazon CloudWatch alarms. Amazon CloudWatch User Guide. "You can create an alarm that sends an Amazon SNS message when the alarm changes state."

Scroll to Top