A financial services firm hosts a banking API on AWS using an Application Load Balancer (ALB) and Amazon EC2 instances in a private subnet. The API has recently been targeted by sudden HTTP flood attacks consisting of a high volume of HTTP POST requests, which exhaust the CPU resources of the backend EC2 instances. The firm needs to mitigate these application-layer (Layer 7) attacks at the network edge before they reach the ALB. Which solution should a solutions architect recommend?
- AConfigure stateless Network Access Control Lists (NACLs) at the subnet level to block incoming traffic based on the rate and payload of HTTP POST requests.
- BConfigure a security group on the Application Load Balancer to dynamically rate-limit incoming HTTP POST requests and block offending clients.
- Deploy an Amazon CloudFront distribution in front of the Application Load Balancer, and associate AWS WAF with the CloudFront distribution using a rate-based rule.Cevap
- DDeploy an Amazon CloudFront distribution in front of the Application Load Balancer, and rely on AWS Shield Standard to inspect and block the Layer 7 HTTP POST request floods.
Cevap
Deploy an Amazon CloudFront distribution in front of the Application Load Balancer, and associate AWS WAF with the CloudFront distribution using a rate-based rule.
The correct solution uses Amazon CloudFront as a caching and distribution layer at the AWS edge to act as the first line of defense. By associating AWS WAF with the CloudFront distribution, the architecture can inspect Layer 7 HTTP traffic. A WAF rate-based rule counts requests from individual IP addresses and temporarily blocks them if they exceed a defined threshold (e.g., 100 requests per 5 minutes). This prevents the HTTP flood from reaching the regional Application Load Balancer and overloading the backend EC2 instances.
Adım Adım Çözüm
Anahtar Kavram
Layer 7 DDoS mitigation at the AWS network edge using Amazon CloudFront and AWS WAF rate-based rules.
Tahmini Süre:1m 30s