AWS Certified Developer – Associate (DVA-C02) — Question 425
A company has an application that uses an Amazon API Gateway API to invoke an AWS Lambda function. The application is latency sensitive.
A developer needs to configure the Lambda function to reduce the cold start time that is associated with default scaling.
What should the developer do to meet these requirements?
Answer options
- A. Publish a new version of the Lambda function. Configure provisioned concurrency. Set the provisioned concurrency limit to meet the company requirements.
- B. Increase the Lambda function's memory to the maximum amount. Increase the Lambda function's reserved concurrency limit.
- C. Increase the reserved concurrency of the Lambda function to a number that matches the current production load.
- D. Use Service Quotas to request an increase in the Lambda function's concurrency limit for the AWS account where the function is deployed.
Correct answer: A
Explanation
Provisioned concurrency pre-warms execution environments for a specified version or alias of a Lambda function, which directly addresses and eliminates cold start latency. While adjusting reserved concurrency or requesting Service Quotas limits can manage scaling behavior and prevent throttling, they do not pre-initialize instances to mitigate cold starts. Increasing memory can reduce execution time but does not guarantee the elimination of cold starts like provisioned concurrency does.