
Answer-first summary for fast verification
Answer: Divide the function into smaller, modular functions., Utilize Lambda layers for shared libraries, dependencies, and custom runtimes.
Option C is correct because breaking up the function into multiple smaller functions can help reduce the size of each function, enabling successful deployment. Option E is correct because moving common libraries, function dependencies, and custom runtimes into Lambda layers reduces the size of the Lambda function's deployment package. These approaches address the size limit issue directly without requiring changes to AWS quotas or inefficient compression methods.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer encounters an InvalidParameterValueException during the deployment of a large AWS Lambda function due to the unzipped size exceeding the maximum limit. What are two possible solutions to resolve this issue?
A
Request AWS Support to increase the function size quota.
B
Implement a more efficient compression algorithm than ZIP.
C
Divide the function into smaller, modular functions.
D
Compress the .zip file again to reduce its size.
E
Utilize Lambda layers for shared libraries, dependencies, and custom runtimes.
No comments yet.