AWS Certified Solutions Architect – Professional (SAP-C02) — Question 290

A company is creating a REST API to share information with six of its partners based in the United States. The company has created an Amazon API Gateway Regional endpoint. Each of the six partners will access the API once per day to post daily sales figures.

After initial deployment, the company observes 1,000 requests per second originating from 500 different IP addresses around the world. The company believes this traffic is originating from a botnet and wants to secure its API while minimizing cost.

Which approach should the company take to secure its API?

Answer options

Correct answer: D

Explanation

Associating an AWS WAF web ACL directly with the Regional API Gateway endpoint allows the company to allowlist the known IP addresses of the six partners, blocking the unauthorized botnet traffic at the source. Implementing an API Gateway usage plan combined with an API key provides a low-cost, built-in mechanism to enforce request limits and throttle traffic. Options A and B introduce unnecessary costs and complexity by using CloudFront, and OAIs are designed for Amazon S3, not API Gateway. Option C is incorrect because resource policies do not support request limiting; usage plans must be used for this purpose.