Which actions can the developer take to resolve this error?
(Choose two.)
Submit a quota increase request to AWS Support to increase the function to the required size.
Use a compression algorithm that is more efficient than ZIP.
Break up the function into multiple smaller functions.
Zip the .zip file twice to compress the file more.
Move common libraries, function dependencies, and custom runtimes into Lambda layers.
Explanations:
Submitting a quota increase request will not resolve the size limit for an AWS Lambda function, as the unzipped size limit is a hard limit imposed by AWS, not a quota that can be increased.
Using a different compression algorithm does not affect the unzipped size of the function; it may only reduce the zipped file size for upload. The unzipped size must still comply with the maximum size limitations set by AWS.
Breaking up the function into multiple smaller functions can help manage the size limit by distributing functionality across several Lambda functions, thus reducing the size of each individual function.
Zipping the .zip file twice does not change the unzipped size of the function and does not solve the problem; it may also lead to complications in deploying the function.
Moving common libraries, function dependencies, and custom runtimes into Lambda layers allows for better management of function size and helps reduce the unzipped size of the Lambda function itself, as layers can be reused across multiple functions.