AWS Certified Developer Associate (#195)

Given the source code for an AWS Lambda function in the local

containing a handler function called


and the following AWS CloudFormation template:

What should be done to prepare the template so that it can be deployed using the AWS CLI command

aws cloudformation deploy


aws cloudformation compile
to base64 encode and embed the source file into a modified CloudFormation template.
aws cloudformation package
to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
aws lambda zip
to package the source file together with the CloudFormation template and deploy the resulting zip archive.
aws serverless create-package
to embed the source file directly into the existing CloudFormation template.