DVA-C02 · Question #506
A development team has an Amazon API Gateway REST API that is backed by an AWS Lambda function. Users have reported performance issues for the Lambda function. The development team identified the sour
The correct answer is D. Configure provisioned concurrency for the Lambda function.. This question tests knowledge of Lambda provisioned concurrency as the dedicated solution to eliminate cold start latency for latency-sensitive workloads.
Question
A development team has an Amazon API Gateway REST API that is backed by an AWS Lambda function. Users have reported performance issues for the Lambda function. The development team identified the source of the issues as a cold start of the Lambda function. The development team needs to reduce the time needed for the Lambda function to initialize. Which solution will meet this requirement?
Options
- AChange the Lambda concurrency to reserved concurrency.
- BIncrease the timeout of the Lambda function.
- CIncrease the memory allocation of the Lambda function.
- DConfigure provisioned concurrency for the Lambda function.
How the community answered
(40 responses)- A10% (4)
- B3% (1)
- C5% (2)
- D83% (33)
Why each option
This question tests knowledge of Lambda provisioned concurrency as the dedicated solution to eliminate cold start latency for latency-sensitive workloads.
Reserved concurrency sets a maximum concurrent execution limit for the function to prevent throttling of other functions, but it does not pre-warm instances or eliminate cold start initialization time.
Increasing the function timeout extends the maximum allowed execution duration but has no effect on the initialization phase that causes cold start latency.
Increasing memory provides proportionally more CPU, which can shorten initialization slightly, but it does not pre-initialize execution environments and cannot eliminate cold starts the way provisioned concurrency does.
Provisioned concurrency pre-initializes a configurable number of Lambda execution environments so they remain in a ready-to-invoke state at all times. Unlike on-demand invocations that incur a cold start initialization period, provisioned concurrency guarantees that the runtime, dependencies, and initialization code are already loaded, delivering consistently low-latency responses to API Gateway requests.
Concept tested: Lambda provisioned concurrency to eliminate cold start latency
Source: https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html
Community Discussion
No community discussion yet for this question.