AWS Certified Developer Associate (#21)

A Developer has been asked to make changes to the source code of an AWS Lambda function. The function is managed using an AWS CloudFormation template. The template is configured to load the source code from an Amazon S3 bucket. The Developer manually created a .ZIP file deployment package containing the changes and put the file into the correct location on Amazon S3. When the function is invoked, the code changes have not been applied. What step is required to update the function with the changes?

Delete the .ZIP file on S3, and re-upload by using a different object key name.
Update the CloudFormation stack with the correct values for the function code properties
S3Bucket
,
S3Key
, or
S3ObjectVersion
.
Ensure that the function source code is base64-encoded before uploading the deployment package to S3.
Modify the execution role of the Lambda function to allow S3 access permission to the deployment package .ZIP file.