
Answer-first summary for fast verification
Answer: Utilize Lambda layers for managing dependencies.
The correct answer is B: Utilize Lambda layers for managing dependencies. Lambda layers allow developers to package and manage dependencies separately from the function code. This reduces the size of the deployment package that needs to be uploaded when the function's code changes, leading to faster deployment times. By moving large modules or other dependencies to a Lambda layer, only changes to the function's own code need to be deployed.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer optimize the deployment speed of an AWS Lambda function that has increased in bundle size due to the addition of a new module?
A
Deploy the function code using AWS CodeDeploy.
B
Utilize Lambda layers for managing dependencies.
C
Enhance the function's deployment package by increasing its memory allocation.
D
Host the function's dependencies on Amazon S3.
No comments yet.