AWS Developer DVA-C02 · Development with AWS Services · medium

A customer-facing checkout API built on AWS Lambda (Java 21 runtime) experiences a 3.2-second cold-start latency spike every morning at 09:00 when traffic jumps from 0 to 400 concurrent requests per second. The team requires guaranteed zero cold starts for up to 400 concurrent executions at 09:00, even if the function uses native C/JNI extensions that cannot use SnapStart. Which Lambda concurrency setting keeps 400 pre-initialized execution environments warm and ready to respond in single-digit milliseconds?

Published · Last updated · checked before publication — how we verify questions

Options

  • AReserved Concurrency set to 400 on the $LATEST version
  • BDecreasing the Lambda function's memory allocation from 2,048 MB to 128 MB
  • CConfiguring an SQS Dead-Letter Queue (DLQ) on the synchronous API Gateway call
  • DProvisioned Concurrency configured on a published Lambda version or aliasCorrect answer

Answer: D. Provisioned Concurrency configured on a published Lambda version or alias

Provisioned Concurrency pre-initializes a requested number of Lambda execution environments (INIT phase completed ahead of time) so they stay warm and respond immediately without cold-start latency (and can be scheduled via Application Auto Scaling before the 09:00 spike). By contrast, Reserved Concurrency only caps/guarantees the maximum concurrency slice without pre-warming environments.

Why the other options are wrong

  • A. Reserved Concurrency set to 400 on the $LATEST version — Reserved Concurrency throttles concurrency above 400 and guarantees quota, but it does not pre-initialize warm environments to eliminate cold starts.
  • B. Decreasing the Lambda function's memory allocation from 2,048 MB to 128 MB — Reducing Lambda memory proportionally reduces CPU allocation, making cold starts even slower.
  • C. Configuring an SQS Dead-Letter Queue (DLQ) on the synchronous API Gateway call — DLQs capture failed asynchronous invocations and do not pre-warm synchronous Lambda execution environments.

All Development with AWS Services questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.