A company exposes a REST API through Amazon API Gateway that invokes a single Lambda function. The function is invoked infrequently by multiple concurrent clients. The code is optimized, but the company wants to reduce the function’s startup (cold-start) time. What should a developer do?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure provisioned concurrency for the Lambda function..
Why this is the answer
Configuring provisioned concurrency for the Lambda function is the most effective solution to reduce cold starts for infrequently invoked functions. Provisioned concurrency keeps a specified number of execution environments pre-initialized, ensuring that invocations are processed with minimal latency. Enabling API Gateway caching would reduce calls to the Lambda function for repeated requests with the same parameters but wouldn't address cold starts for unique or uncached requests. Using Lambda proxy integration simplifies the integration but doesn't inherently reduce cold start times. AWS Global Accelerator improves performance by routing traffic through the AWS global network but doesn't directly impact Lambda function startup times.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed