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
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.
More Development with AWS Services questions
- An AWS Lambda function polls an Amazon SQS standard queue via an Event Source Mapping with a batch size of 10…
- An order-fulfillment workflow coordinates 6 sequential and parallel steps: reserve inventory, charge credit card…
- A photo-sharing platform stores private user photos in an Amazon S3 bucket (Block Public Access = ON). When an…
- A web application hosted on https://app.example.com makes an XMLHttpRequest / fetch() POST call (with a custom…
- A financial ledger uses Amazon SQS FIFO (First-In-First-Out) queues (orders.fifo) to guarantee strict message ordering…
- A developer is designing indexes for an Amazon DynamoDB Orders table whose base primary key is CustomerId (Partition…
- The same Amazon DynamoDB table receives 50 standard writes per second of items that are 2.5 KB each, and 15…
- An application stores product catalog items in an Amazon DynamoDB table using Provisioned Capacity mode. Each item…
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.