DOP-C02 Practice Question 95: WAF Rate Based Rule ALB
AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 10 · question 5 of 10
A public API behind an Application Load Balancer is being hit by a single client IP address that sends an abnormally high volume of requests per minute, degrading response times for every other client. The team wants requests from any single IP address to be automatically blocked once that IP exceeds a request threshold within a rolling window, while leaving normal traffic from other clients untouched.
Which approach should they implement?
Show answer and explanation
Answer:
An AWS WAF rate-based rule tracks the rate of requests from each client IP address over a rolling five minute window and automatically applies the rule's action, typically block, to any IP that exceeds the configured request limit, while leaving IPs under the threshold unaffected. This is purpose-built for exactly this scenario and requires no manual identification of the offending client.
Option B depends on a human noticing the pattern in VPC Flow Logs and manually editing a security group, which is slow, does not scale to shifting IPs, and security groups do not support automatic rate-based conditions.
Option C changes how quickly unhealthy targets are removed from a target group; it does nothing to stop the excessive request volume from reaching the ALB in the first place and does not distinguish the abusive IP from legitimate ones.
Option D describes Shield Advanced incorrectly. Shield Advanced provides enhanced DDoS protection and cost protection, but it does not automatically block an IP for exceeding a generic request quota; the automatic per-IP rate limiting behavior described is what a WAF rate-based rule provides, and Shield Advanced is commonly paired with WAF rather than replacing it for this need.
Reference: Rate-based rule statement