A very large Lambda deployment fails with InvalidParameterValueException saying the unzipped size exceeds the maximum. Which actions can resolve this? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Refactor the application into multiple smaller Lambda functions., Move shared libraries, dependencies, and custom runtimes into Lambda layers..
Why this is the answer
The InvalidParameterValueException due to exceeding the maximum unzipped size indicates the deployment package is too large for Lambda's limits. Refactoring the application into multiple smaller Lambda functions directly addresses this by distributing the code across separate deployments, each with its own size constraints. Moving shared libraries, dependencies, and custom runtimes into Lambda layers is another effective solution. Layers are separate deployment packages that can be shared across multiple functions, reducing the size of individual function deployment packages. Requesting a quota increase is not applicable here as the unzipped size limit is a hard limit, not a soft quota. Re-compressing a .zip file (zipping a ZIP) will not significantly reduce the unzipped size. Using a different compression algorithm is also not a viable solution, as Lambda specifically expects a .zip file for deployment packages.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed