AWS Certified Solutions Architect – Associate (SAA-C02) — Question 447

A financial company hosts a web application on AWS. The application uses an Amazon API Gateway Regional API endpoint to give users the ability to retrieve current stock prices. The company's security team has noticed an increase in the number of API requests. The security team is concerned that HTTP flood attacks might take the application offline.
A solutions architect must design a solution to protect the application from this type of attack.
Which solution meets these requirements with the LEAST operational overhead?

Answer options

Correct answer: B

Explanation

AWS WAF natively integrates with Amazon API Gateway, and its rate-based rules can automatically block clients that exceed a specified request threshold, offering the most efficient protection with the least operational overhead. In contrast, using Amazon CloudFront with Lambda@Edge requires custom code development and ongoing maintenance, while Amazon CloudWatch alerts only provide reactive notifications without automated mitigation. Adjusting CloudFront TTLs does not stop HTTP flood attacks and could lead to stale stock price data being served to users.