QuestionQ55

VerifiedResilient Cloud Solutions

A company delivers an application to its customers. The application includes an Amazon API Gateway REST API that invokes an AWS Lambda function. During initialization, the Lambda function loads a large volume of data from an Amazon DynamoDB table. This data-loading process causes long cold-start times of 8–10 seconds. DynamoDB Accelerator (DAX) is configured for the DynamoDB table.

Customers say that the application intermittently takes a long time to respond to requests. The application receives thousands of requests during the day. In the middle of the day, the application receives 10 times more requests than at any other time of day. Near the end of the day, the application's request volume drops to 10% of its normal total.

A DevOps engineer must reduce Lambda function latency at all times of day.

Which solution meets these requirements?

Explanation

Provisioned concurrency keeps pre-initialized Lambda execution environments ready for requests, moving initialization work such as loading data outside request-time cold starts. AWS Application Auto Scaling can automatically scale Lambda provisioned concurrency based on utilization or a schedule; a minimum of 1 preserves a warm environment during low traffic, while a maximum of 100 accommodates higher demand. Reserved concurrency only reserves and caps capacity; it does not pre-initialize execution environments.

Learn more

Community Discussion

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