A SaaS company hosts an online learning platform on AWS. The application uses Amazon EC2 instances behind an Application Load Balancer (ALB). During peak registration periods, the platform experiences HTTP flood attacks targeting the user login URI, which causes application downtime. The company wants to implement a scalable, cost-effective solution to mitigate these Layer 7 attacks without impacting legitimate users. Which two actions should the solutions architect take to meet these requirements? (Select TWO).
- Configure an Amazon CloudFront distribution in front of the Application Load Balancer, and associate an AWS WAF web ACL with the CloudFront distribution.Answer
- Create an AWS WAF rate-based rule targeting the login URI to block requests from clients exceeding a request threshold.Answer
- CAssociate an AWS Shield Standard subscription with the Application Load Balancer to automatically mitigate application-layer (Layer 7) HTTP flood attacks.
- DConfigure a stateless Network Access Control List (NACL) at the subnet level to dynamically filter and inspect the payloads of incoming HTTP requests.
- EAdd rules to the Application Load Balancer's security group to track client connection rates and drop traffic from offending IP addresses.
Answer
To protect the application from Layer 7 HTTP flood attacks targeting a specific login URI, the solutions architect should deploy Amazon CloudFront in front of the Application Load Balancer and associate an AWS WAF web ACL. Within the web ACL, a rate-based rule should be configured targeting the specific login URI path to limit the rate of requests from any single IP address.
Deploying Amazon CloudFront in front of the Application Load Balancer allows traffic to be distributed across AWS edge locations. By attaching AWS WAF to the CloudFront distribution, requests are inspected before they reach the ALB origin. Designing a rate-based rule within AWS WAF that targets the login path allows the system to block traffic from IP addresses that exceed a specified threshold of requests within a five-minute window, effectively mitigating the HTTP flood.
Step-by-Step Solution
Key Concept
Implementing Layer 7 DDoS mitigation at the edge using Amazon CloudFront and AWS WAF rate-based rules.
Estimated Time:2m 0s