Topic 1 Question 120
A company is building a software-as-a-service (SaaS) solution on AWS. The company has deployed an Amazon API Gateway REST API with AWS Lambda integration in multiple AWS Regions and in the same production account.
The company offers tiered pricing that gives customers the ability to pay for the capacity to make a certain number of API calls per second. The premium tier offers up to 3,000 calls per second, and customers are identified by a unique API key. Several premium tier customers in various Regions report that they receive error responses of 429 Too Many Requests from multiple API methods during peak usage hours. Logs indicate that the Lambda function is never invoked.
What could be the cause of the error messages for these customers?
The Lambda function reached its concurrency limit.
The Lambda function its Region limit for concurrency.
The company reached its API Gateway account limit for calls per second.
The company reached its API Gateway default per-method limit for calls per second.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: C
API Gateway has a limit of 10k requests per second, per account, per region https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html
👍 4sambb2023/03/07 - 正解だと思う選択肢: C
The correct answer is C. The company reached its API Gateway account limit for calls per second. This is because Amazon API Gateway has a default account-level limit of 10,000 requests per second (RPS) and a default per-method limit of 5,000 RPS. If the company's premium tier customers are making more than 10,000 requests per second in total across all API methods and regions, they would be receiving the error message of 429 Too Many Requests. This indicates that the API Gateway account is reaching its capacity limit, and the Lambda function is not being invoked because API Gateway is blocking the requests before they reach the Lambda function.
The other choices are not correct because the Lambda function's concurrency limit and region limit for concurrency would not affect the API Gateway's request rate limit, and the API Gateway's default per-method limit is 5,000 RPS which is less than the premium tier's 3,000 calls per second.
👍 2masetromain2023/01/15 - 正解だと思う選択肢: C
C 429 error indicates that API calls per second was exceeded ... it's not a Lambda issue
👍 2dev112233xx2023/04/09
シャッフルモード