AWS Certified Developer Associate DVA-C01 – Question144

A Developer writes an AWS Lambda function and uploads the code in a .ZIP file to Amazon S3. The Developer makes changes to the code and uploads a new .ZIP file to Amazon S3. However, Lambda executes the earlier code.
How can the Developer fix this in the LEAST disruptive way?

A.
Create another Lambda function and specify the new .ZIP file.
B. Call the update-function-code API.
C. Remove the earlier .ZIP file first, then add the new .ZIP file.
D. Call the create-aliasAPI.

Correct Answer: B