QuestionQ37

VerifiedTroubleshooting and Optimization

A company has an application that uses an Amazon API Gateway API to invoke an AWS Lambda function. The application is latency sensitive.

A developer needs to configure the Lambda function to reduce the cold start time that is associated with default scaling.

What should the developer do to meet these requirements?

Explanation

Provisioned concurrency maintains a specified number of Lambda function instances in a warm, ready state, eliminating cold start latency for incoming requests. Publishing a new version is recommended as a best practice before configuring provisioned concurrency. Increasing memory improves execution time but does not address cold starts; reserved concurrency alone prevents scaling but does not reduce cold start duration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!