Home › AWS Developer Associate › cloudcomputing › awsdevelopment › 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.
Related questions
A Lambda function reads from a Kinesis Data Stream. Throughput is fine on average but spikAn API Gateway REST API in front of Lambda needs to authenticate requests using a Cognito Which strategy allows a Lambda function inside a VPC to access the internet (e.g., to callA serverless app needs to fan out a single event to multiple downstream Lambda functions, Which AWS feature lets developers attach short-lived AWS credentials to a Lambda function What does it mean for an API endpoint to be IDEMPOTENT?A Lambda function is processing messages from an SQS queue. Some messages fail repeatedly.Which Lambda configuration setting most directly affects the function's CPU and network pe