A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container.
Why Option A is Correct:Converting a Lambda function to use a container image involves packaging the function code into a container image, storing the image in Amazon Elastic Container Registry (ECR), and updating the function to use the ECR repository URI.
Why Other Options are Incorrect:
Option B: SAM templates support container-based Lambda deployment, but storing the image in S3 is not applicable.
Option C: CloudFormation does not natively support specifying Lambda container images in S3.
Option D: While partially correct, it omits the need to specify the image tag for the deployment.
AWS Documentation Reference:
Lambda Container Images
Currently there are no comments in this discussion, be the first to comment!