A developer created a Node.js-based AWS Lambda function by using a container image of an AWS OS-only base image. There is a new security patch for Node.js that must be patched to the new Lambda function.
Which solution will meet this requirement?
A.
Set the runtime update mode of the Lambda function to Auto.
B.
Patch the runtime version by redeploying the same version of the Lambda function.
C.
Rebuild the Lambda container code with the latest version of the AWS OS base image. Publish a new version of the Lambda function.
D.
Rebuild the Lambda container code with the latest Node.js patch version. Publish a new version of the Lambda function.
Why Option D is Correct:When using a container-based AWS Lambda function, you are responsible for updating the base image for runtime patches. Rebuilding the container with the latest Node.js patch version ensures the function is updated with the required security patches. Publishing a new version of the Lambda function makes the updated image available for use.
Why Other Options are Incorrect:
Option A: The runtime update mode applies to functions using AWS-managed runtimes, not container-based runtimes.
Option B: Redeploying the same version of the Lambda function does not apply the security patch.
Option C: Rebuilding with the AWS OS base image does not guarantee that the latest Node.js patch version is included.
AWS Documentation References:
Lambda Function Container Images
Node.js Updates in AWS Lambda
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit