DVA-C02 · Question #506
DVA-C02 Question #506: Real Exam Question with Answer & Explanation
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.
Explanation
This question tests knowledge of Lambda provisioned concurrency as the dedicated solution to eliminate cold start latency for latency-sensitive workloads.
Common mistakes.
- A. 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.
- B. Increasing the function timeout extends the maximum allowed execution duration but has no effect on the initialization phase that causes cold start latency.
- C. 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.
Concept tested. Lambda provisioned concurrency to eliminate cold start latency
Reference. https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html
Community Discussion
No community discussion yet for this question.