An application uses Amazon API Gateway to invoke a Lambda function and is sensitive to latency. A developer must configure the Lambda function to reduce cold-start latency that occurs during scaling. What should the developer do?
Choose an answer
Tap an option to check your answer.
Correct answer: Publish a new version of the Lambda function and configure provisioned concurrency for that version. Set the provisioned concurrency to meet the latency requirements..
Why this is the answer
Provisioned concurrency initializes a requested number of execution environments in advance, ensuring they are ready to respond to invocations with very low latency. By publishing a new version and configuring provisioned concurrency for it, the developer directly addresses cold starts for that specific version. Increasing memory can improve execution speed but doesn't eliminate cold starts. Setting reserved concurrency limits the maximum concurrent executions but doesn't pre-warm instances. Requesting a higher account concurrency limit allows more concurrent functions to run but doesn't prevent cold starts for individual invocations.
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