A municipal utility company hosts a public portal on AWS for customers to view real-time energy usage and pay bills. The application runs on EC2 instances behind an Application Load Balancer (ALB) in a single AWS Region. The portal has recently experienced service outages due to sudden HTTP flood attacks targeting the login endpoint. The company needs to implement a cost-effective, automated edge security solution that mitigates these Layer 7 attacks before they reach the ALB, while minimizing latency for legitimate local users.
Which combination of actions should a solutions architect take to meet these requirements? (Select TWO.)
- Deploy an Amazon CloudFront distribution in front of the Application Load Balancer.Answer
- Associate an AWS WAF web ACL with the CloudFront distribution and configure a rate-based rule to limit requests to the login endpoint.Answer
- CEnable AWS Shield Standard on the Application Load Balancer to automatically block Layer 7 HTTP flood attacks.
- DConfigure a stateless network ACL on the subnets containing the Application Load Balancer to block traffic from the attacker IP addresses.
- ECreate a security group for the Application Load Balancer and enable rate-limiting rules to restrict concurrent TCP connections.
Answer
Deploy an Amazon CloudFront distribution in front of the Application Load Balancer and associate an AWS WAF web ACL with the distribution to configure a rate-based rule to limit requests to the login endpoint.
Deploying Amazon CloudFront moves the entry point of the application to the AWS global edge network, which naturally absorbs Layer 3 and Layer 4 DDoS attacks. Associating AWS WAF with CloudFront allows the solutions architect to inspect Layer 7 HTTP requests and apply a rate-based rule to automatically block IP addresses that exceed a specified threshold of requests to the login endpoint. This provides automated, cost-effective Layer 7 protection before the malicious traffic can reach the Application Load Balancer or the backend compute resources.
Step-by-Step Solution
Key Concept
Edge protection and Layer 7 DDoS mitigation using Amazon CloudFront and AWS WAF rate-based rules.