AWS Certified Solutions Architect – Associate (SAA-C03) — Question 544
A company wants to use an event-driven programming model with AWS Lambda. The company wants to reduce startup latency for Lambda functions that run on Java 11. The company does not have strict latency requirements for the applications. The company wants to reduce cold starts and outlier latencies when a function scales up.
Which solution will meet these requirements MOST cost-effectively?
Answer options
- A. Configure Lambda provisioned concurrency.
- B. Increase the timeout of the Lambda functions.
- C. Increase the memory of the Lambda functions.
- D. Configure Lambda SnapStart.
Correct answer: D
Explanation
AWS Lambda SnapStart is a free performance optimization feature specifically designed to reduce cold start times for Java-based functions (including Java 11) by caching initialized execution environments, making it the most cost-effective solution. While Provisioned Concurrency (Option A) also mitigates cold starts, it incurs ongoing additional charges for keeping environments active. Adjusting memory (Option C) or timeout (Option B) does not directly or cost-effectively address the initial startup latency issue in the same way.