
Answer-first summary for fast verification
Answer: By setting the reserved concurrency to align with the third-party service's concurrent request allowance.
The correct answer is A. Setting the reserved concurrency on the Lambda function to match the number of concurrent requests that the third-party service allows ensures that the Lambda function does not exceed the rate limit imposed by the third-party service. By controlling the maximum number of concurrent instances of the Lambda function, it prevents sending too many requests at one time, thereby avoiding rate-limiting errors.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer configure an AWS Lambda function to prevent rate-limiting errors when calling a third-party service with a request limit per minute?
A
By setting the reserved concurrency to align with the third-party service's concurrent request allowance.
B
By reducing the allocated memory to the Lambda function.
C
By setting provisioned concurrency to match the third-party service's concurrent request allowance.
D
By extending the Lambda function's specified timeout value.
No comments yet.