Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - Topic 1 Question 64 Discussion

A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container.
A) Create an Amazon ECR repository in the same AWS Region as the Lambda function. Package the Lambda function into a container image. Build the image and upload it to the Amazon ECR repository. Update the existing Lambda function configuration to specify the repository URI and container image tag.
B) Create an AWS SAM template that defines the Lambda function and its resources as code. Include a container image in the template, and store the container image in an Amazon S3 bucket. Deploy the AWS SAM template. Specify the S3 bucket URI.
C) Create an AWS CloudFormation template that defines the Lambda function and its resources as code. Include a container image in the template, and store the image in an Amazon S3 bucket. Deploy the CloudFormation template. Specify the S3 bucket URI.
D) Create an Amazon ECR repository in the same AWS Region as the Lambda function. Build the image and upload it to the Amazon ECR repository. Update the existing Lambda function to use the new image by specifying the repository URI.

Amazon DVA-C02 Exam - Topic 1 Question 64 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 64
Topic #: 1
[All DVA-C02 Questions]

A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container.

Show Suggested Answer Hide Answer
Suggested Answer: A

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


Contribute your Thoughts:

0/2000 characters
Shonda
1 month ago
I feel like option C is similar to what we did with CloudFormation templates, but I don’t recall if we ever stored images in S3. That part seems a bit off to me.
upvoted 0 times
...
Angella
1 month ago
I think option B mentions AWS SAM, which we practiced in class. It’s supposed to help with defining resources as code, but I’m not clear on how it handles container images.
upvoted 0 times
...
Truman
1 month ago
I remember we talked about using Amazon ECR for storing container images, so option A seems familiar. But I'm not sure if it’s the only way to deploy a Lambda function as a container.
upvoted 0 times
...

Save Cancel