exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 120 discussion

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?

  • A. The Lambda function reached its concurrency limit.
  • B. The Lambda function its Region limit for concurrency.
  • C. The company reached its API Gateway account limit for calls per second.
  • D. The company reached its API Gateway default per-method limit for calls per second.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sambb
Highly Voted 1 year, 9 months ago
Selected Answer: 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
upvoted 13 times
...
masetromain
Highly Voted 1 year, 11 months ago
Selected Answer: 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.
upvoted 6 times
masetromain
1 year, 11 months ago
Option A is incorrect because the error message is not related to the Lambda function reaching its concurrency limit. Option B is incorrect because the error message is not related to the Lambda function reaching its region limit for concurrency. Option D is incorrect because the error message is not related to the company reaching its API Gateway default per-method limit for calls per second, but it's related to the account level limit.
upvoted 3 times
...
...
Heman31in
Most Recent 1 day, 17 hours ago
Selected Answer: D
The most likely cause of the 429 Too Many Requests error messages, despite the Lambda function not being invoked, is D. The company reached its API Gateway default per-method limit for calls per second. Here's a breakdown of why: API Gateway Limits: API Gateway imposes rate limits on API methods to prevent abuse and ensure fair resource allocation. These limits can be configured at the account level or the individual method level. Default Limits: If not explicitly configured, API Gateway applies default limits to methods. These default limits may be insufficient for high-traffic scenarios, especially during peak usage hours. Lambda Function Invocations: The Lambda function is not invoked because the request is being throttled at the API Gateway level before it reaches the Lambda function.
upvoted 1 times
...
amministrazione
3 months, 1 week ago
C. The company reached its API Gateway account limit for calls per second.
upvoted 1 times
...
8693a49
4 months, 2 weeks ago
Selected Answer: B
I'm going to argue the problem is that the source of the errors is Lambda reaching it's regional concurency limit. By default, Lambda has a regional limit of 1000 concurrent invocations. The premium tier allows 3000 requests/s. Depending on the number of premium customers and the average duration of a call it may be that the concurency limit is reached or not. We don't know for sure, but it is certainly plausible. If Lambda hits the concurrency limit, it also returns 429. So how do we know where the error is coming from? The key is in what exactly fails: "multiple API methods during peak usage hours". Notice it is not ALL API calls. If the gateway was rate limiting then we would see blocks of random requests being denied until the rate bucket empties to allow new ones. But if the Lambda concurrency is hit then it means no new execution environments of Lambda are created, but the ones that exist keep processing. So the behaviour is that some functions will continue to operate, while others will start thorttling with 429. This behaviour better matches with "multiple API methods" failing.
upvoted 1 times
helloworldabc
3 months, 2 weeks ago
just C
upvoted 1 times
...
...
fangd0n
7 months, 1 week ago
C correct. This is Gateway API response
upvoted 1 times
...
JohnLuo
8 months ago
Selected Answer: C
C is correct.
upvoted 1 times
...
career360guru
11 months, 3 weeks ago
Selected Answer: C
429 is API Gateway API throttle default limit.
upvoted 3 times
...
NikkyDicky
1 year, 5 months ago
Selected Answer: C
C of course
upvoted 1 times
...
dev112233xx
1 year, 8 months ago
Selected Answer: C
C 429 error indicates that API calls per second was exceeded ... it's not a Lambda issue
upvoted 3 times
...
mfsec
1 year, 8 months ago
Selected Answer: C
Company reached its limit
upvoted 1 times
...
zozza2023
1 year, 10 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
zhangyu20000
1 year, 11 months ago
C is correct answer
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago