
Answer-first summary for fast verification
Answer: Utilize a Lambda layer for the library and integrate it with the function.
The correct answer is A: Utilize a Lambda layer for the library and integrate it with the function. Lambda layers allow you to include libraries and other dependencies without including them directly in the Lambda deployment package. This approach reduces the Lambda package size and operational overhead. Although layers have a size limit, you can use up to five layers, and the total unzipped size of the function and all layers together cannot exceed the deployment package size quota of 250 MB, which is sufficient for the given library size of 100 MB.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which method provides the least operational overhead for making a 100 MB external library available in an AWS Lambda function while minimizing the Lambda deployment package size?
A
Utilize a Lambda layer for the library and integrate it with the function.
B
Use an S3 bucket to store and mount the library within the Lambda function.
C
Deploy the library to the Lambda function's /tmp directory.
D
Employ an Amazon EFS volume to store, mount, and import the library in the Lambda function.
No comments yet.