
Answer-first summary for fast verification
Answer: Implement provisioned concurrency for the Lambda function.
The correct answer is B. Configuring provisioned concurrency for the Lambda function ensures that the function is always warm and ready to handle incoming requests immediately. This reduces the latency associated with the cold start time that occurs when a Lambda function is invoked for the first time or after it has been idle. As the company's goal is to minimize response latency with minimal operational changes, provisioned concurrency is the most effective solution. While the other options may improve performance, they involve more significant changes and do not directly address the Lambda cold start issue as efficiently.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a company minimize API response latency for a frontend application using Amazon API Gateway and AWS Lambda, with minimal operational changes?
A
Bypass the API by connecting the frontend directly to the database for queries.
B
Implement provisioned concurrency for the Lambda function.
C
Utilize Amazon S3 to cache query results for rapid data retrieval.
D
Expand the database capacity to support more concurrent Lambda connections.
No comments yet.