SAP-C02 Question 290
Single answerA company is building a serverless web application using AWS Lambda and Amazon API Gateway. During a load test, they notice that certain requests to the API result in HTTP 429 (Too Many Requests) errors. After investigation, they discover that the issue is caused by hitting a service quota for API Gateway. What is the most appropriate action to resolve this issue?
- A
Request a service quota increase for the API Gateway rate limit via the AWS Service Quotas console.
- B
Upgrade the API Gateway to a higher tier to automatically increase its rate limit.
- C
Implement throttling and retry logic in the client application to handle rate-limited requests.
- D
Deploy additional API Gateway instances in multiple regions to distribute the traffic load.
Show answer and explanation
Correct answer: A
Explanation
When an HTTP 429 error occurs due to reaching a service quota, the appropriate action is to request a service quota increase. AWS Service Quotas allows customers to request higher limits for supported resources, including API Gateway rate limits. Other options, like retry logic or deploying additional resources, do not address the root cause of the quota being exceeded.
- A. Correct.
This is the correct action because API Gateway has default service quotas for rate limits, which can be increased by requesting a quota increase through the AWS Service Quotas console.
- B. Incorrect.
API Gateway does not have pricing tiers that automatically increase service quotas. Quotas must be managed explicitly, so this option is incorrect.
- C. Incorrect.
While implementing throttling and retry logic can help mitigate the issue, it does not resolve the root cause of hitting the service quota. This is a reactive measure, not a proactive resolution.
- D. Incorrect.
Deploying additional API Gateway instances in multiple regions does not increase the service quota for the rate limit. The quota applies to the account level within a region.