ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 145 - DVA-C01 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Modify the execution role of the Lambda function to allow S3 access permission to the deployment package .ZIP file.
Suggested answer: B

Explanation:

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-lambdafunction-code.html

asked 16/09/2024
Takenobu Tanida
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first