exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 291 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 291
Topic #: 1
[All AWS Certified Developer Associate Questions]

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?

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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rcaliandro
1 year, 11 months ago
Selected Answer: B
B is the correct answer of course we also need to launch the stack to update the new lambda
upvoted 1 times
...
Ankit1010
2 years, 3 months ago
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
upvoted 1 times
...
michaldavid
2 years, 6 months ago
Selected Answer: B
BBBBBBBB
upvoted 3 times
...
k1kavi1
2 years, 6 months ago
Selected Answer: B
https://www.examtopics.com/discussions/amazon/view/4258-exam-aws-certified-developer-associate-topic-1-question-141/
upvoted 2 times
...
kapil206001
2 years, 6 months ago
B https://www.examtopics.com/discussions/amazon/view/4258-exam-aws-certified-developer-associate-topic-1-question-141/
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...