SAA-C03 · Question #395
SAA-C03 Question #395: Real Exam Question with Answer & Explanation
The correct answer is D: Update the Lambda functions to add a pre-snapshot hook. Move the code that generates unique. Same scenario as above-cost-effective cold start reduction for Java Lambdas is best achieved by using Lambda SnapStart with the correct code structure. Unique IDs and similar non-deterministic logic should be in the handler or in a pre-snapshot hook. SnapStart is supported only f
Question
A company is developing a latency-sensitive application. Part of the application includes several AWS Lambda functions that need to initialize as quickly as possible. The Lambda functions are written in Java and contain initialization code outside the handlers to load libraries, initialize classes, and generate unique IDs. Which solution will meet the startup performance requirement MOST cost-effectively?
Options
- AMove all the initialization code to the handlers for each Lambda function. Activate Lambda
- BPublish a version of each Lambda function. Create an alias for each Lambda function. Configure
- CPublish a version of each Lambda function. Set up a provisioned concurrency configuration for
- DUpdate the Lambda functions to add a pre-snapshot hook. Move the code that generates unique
Explanation
Same scenario as above-cost-effective cold start reduction for Java Lambdas is best achieved by using Lambda SnapStart with the correct code structure. Unique IDs and similar non-deterministic logic should be in the handler or in a pre-snapshot hook. SnapStart is supported only for published versions. This combination offers cold start performance at a lower cost than provisioned concurrency.
Community Discussion
No community discussion yet for this question.