
Answer-first summary for fast verification
Answer: Configure provisioned concurrency on the Lambda function. Configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100.
The correct answer is C. The primary issue is the Lambda function's latency, especially during times of high request volume. Configuring provisioned concurrency helps to reduce latency by ensuring that a specified number of instances are always ready to handle requests, which mitigates cold-start times. Additionally, using AWS Application Auto Scaling with provisioned concurrency will allow the Lambda function to scale dynamically based on the demand, with provisioned concurrency values set between a minimum of 1 and a maximum of 100. This approach ensures that adequate capacity is available to handle peak loads, thereby reducing the likelihood of long response times.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company's application, which uses an Amazon API Gateway REST API to invoke an AWS Lambda function, is experiencing long cold-start times due to the Lambda function's initialization process of loading a large dataset from a DynamoDB table equipped with DynamoDB Accelerator (DAX). Customers have reported intermittent long response times. The application's request volume varies significantly throughout the day, peaking at 10 times the normal rate during midday and dropping to 10% of its usual volume by the end of the day. To address these latency issues, a DevOps engineer is tasked with finding a solution to consistently reduce the Lambda function's latency at all times of the day. Which solution should the engineer implement?
A
Configure provisioned concurrency on the Lambda function with a concurrency value of 1. Delete the DAX cluster for the DynamoDB table.
B
Configure reserved concurrency on the Lambda function with a concurrency value of 0.
C
Configure provisioned concurrency on the Lambda function. Configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100.
D
Configure reserved concurrency on the Lambda function. Configure AWS Application Auto Scaling on the API Gateway API with a reserved concurrency maximum value of 100.