AWS Certified Developer Associate (#85)

A Developer is writing an imaging micro service on AWS Lambda. The service is dependent on several libraries that are not available in the Lambda runtime environment. Which strategy should the Developer follow to create the Lambda deployment package?

Create a ZIP file with the source code and all dependent libraries.
Create a ZIP file with the source code and a script that installs the dependent libraries at runtime.
Create a ZIP file with the source code. Stage the dependent libraries on an Amazon S3 bucket indicated by the Lambda environment variable
LD_LIBRARY_PATH
Create a ZIP file with the source code and a buildspec.yaml file that installs the dependent libraries on AWS Lambda.