Practice free →
HomeAWS Developer Associatecloudcomputingawsdevelopment › A Lambda function processes a large file from S3…

A Lambda function processes a large file from S3. Cold starts are unacceptably long on Java. Which combination MOST reduces the cold-start penalty WITHOUT switching languages?

AAdd more memory only, without provisioned concurrency
BIncrease the function's timeout to 15 minutes
CEnable Provisioned Concurrency on the function so warm execution environments are pre-initialised
DDisable IAM checks on the function for faster startup
Answer & Solution
Correct answer: C. Enable Provisioned Concurrency on the function so warm execution environments are pre-initialised
Provisioned Concurrency keeps initialised environments warm so JVM startup happens off the request path. Larger timeout doesn't help cold starts. Memory helps after init, not init itself. Disabling IAM isn't a thing.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions