SCS-C02 · Question #67
A company is hosting a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The application has become the target of a DoS attack. Application logging shows that…
The correct answer is A. Create an AWS WAF rate-based rule, and attach it to the ALB. AWS WAF rate-based rules automatically track request rates per IP and block offenders without manual intervention, making it ideal for DoS attacks with rotating source IPs.
Question
A company is hosting a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The application has become the target of a DoS attack. Application logging shows that requests are coming from a small number of client IP addresses, but the addresses change regularly. The company needs to block the malicious traffic with a solution that requires the least amount of ongoing effort. Which solution meets these requirements?
Options
- ACreate an AWS WAF rate-based rule, and attach it to the ALB.
- BUpdate the security group that is attached to the ALB to block the attacking IP addresses.
- CUpdate the ALB subnet's network ACL to block the attacking client IP addresses.
- DCreate an AWS WAF rate-based rule, and attach it to the security group of the EC2 instances.
How the community answered
(23 responses)- A83% (19)
- B9% (2)
- C4% (1)
- D4% (1)
Why each option
AWS WAF rate-based rules automatically track request rates per IP and block offenders without manual intervention, making it ideal for DoS attacks with rotating source IPs.
A WAF rate-based rule attached to the ALB automatically identifies and blocks IP addresses exceeding a configurable request threshold, continuously adapting to new IPs without manual updates, satisfying the least-ongoing-effort requirement.
Manually updating security groups each time the attacker rotates IP addresses requires continuous human effort, violating the least-effort requirement.
Manually editing subnet NACLs to block individual or ranges of changing IPs is a repetitive manual task that does not scale with rotating attack IPs.
AWS WAF web ACLs attach to ALB, CloudFront, or API Gateway, not directly to EC2 security groups; this attachment point is architecturally incorrect.
Concept tested: AWS WAF rate-based rules for DDoS mitigation
Source: https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-rate-based.html
Topics
Community Discussion
No community discussion yet for this question.