Q97 — AWS DVA-C02 Ch.2
Question 97 of 100 | ← Chapter 2
A company has built an AWS Lambda function to convert large image files into output files usable by downstream applications. The company recently added a new module to the function to enhance output file generation. However, the new module increased the deployment package size and significantly increased the Lambda function code deployment time. How can developers increase the Lambda function deployment speed?
- A. Use AWS CodeDeploy to deploy the function code.
- B. Use Lambda layers to package and load dependencies. ✓
- C. Increase the function's memory allocation.
- D. Host the function’s dependencies in Amazon S3.
Correct Answer: B. Use Lambda layers to package and load dependencies.
Explanation
Lambda layers help reduce the function package size and enable sharing and reuse of dependencies, thereby decreasing deployment time.