AWS Certified Developer Associate Exam QuestionsBrowse all questions from this exam

AWS Certified Developer Associate Exam - Question 291


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?

Show Answer
Correct Answer: B

To update the function with the changes, you need to update the CloudFormation stack with the correct values for the function code properties S3Bucket, S3Key, or S3ObjectVersion. This step is necessary because changes to a deployment package in Amazon S3 are not detected automatically during stack updates.

Discussion

5 comments
Sign in to comment
michaldavidOption: B
Nov 27, 2022

BBBBBBBB

kapil206001
Nov 26, 2022

B https://www.examtopics.com/discussions/amazon/view/4258-exam-aws-certified-developer-associate-topic-1-question-141/

k1kavi1Option: B
Nov 26, 2022

https://www.examtopics.com/discussions/amazon/view/4258-exam-aws-certified-developer-associate-topic-1-question-141/

Ankit1010
Feb 21, 2023

B Changes to a deployment package in Amazon S3 are not detected automatically during stack updates. To update the function code, change the object key or version in the template. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html

rcaliandroOption: B
Jun 30, 2023

B is the correct answer of course we also need to launch the stack to update the new lambda