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

Posted by Angelica on May 04, 2026 at 09:37 AM

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

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


Get Premium DVA-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
29 comments · newest first
SE
Sergei Nielsen 9 days ago
Maybe suggested answer is not correct because the tricky part is updating the function to use a container image and including the image tag.
RE
Rex
Agreed, but D saves time on deployment.
AD
Adelle 5 days ago
D is good too, but A feels more complete.
RE
Rex 10 days ago
I like option D. Simple and direct.
CA
Carin 15 days ago
Still, it keeps everything organized in one template.
TE
Teri 21 days ago
True, but B involves S3, which adds complexity.
CA
Carin 26 days ago
I prefer option B. SAM templates are great for infrastructure as code.
AD
Adelle 1 month ago
Plus, updating the Lambda config is straightforward.
TE
Teri 1 month ago
Yeah, A makes sense. ECR is perfect for containers.
AD
Adelle 1 month ago
I think option A is the best choice.
WI
Wilda 2 months ago
I still think B is the most organized approach.
VA
Val 2 months ago
Right, D might miss some best practices.
NA
Nadine 2 months ago
D is too simple. It skips the packaging step.
WI
Wilda 2 months ago
I get that, but CloudFormation is powerful for larger projects.
VA
Val 2 months ago
C is also good, but I feel it’s overkill for this task.
NA
Nadine 2 months ago
True, but B requires S3, which adds complexity.
WI
Wilda 3 months ago
I prefer option B. SAM templates are great for infrastructure as code.
NA
Nadine 3 months ago
Plus, updating the Lambda config is straightforward.
VA
Val 3 months ago
Yeah, A makes sense. ECR is perfect for containers.
NA
Nadine 3 months ago
I think option A is the best choice.
TR
Truman 3 months ago
C seems a bit overkill for this task, don’t you think?
GI
Gilma 3 months ago
Totally agree with A, ECR is the way to go!
MA
Marge 4 months ago
Wait, can you really store container images in S3?
JO
Josefa 4 months ago
I think B is better for managing resources as code.
UL
Ulysses 4 months ago
Option A is the most straightforward approach.
AS
Ashton 4 months ago
Option D sounds straightforward since it mentions updating the Lambda function directly with the ECR repository URI. I think that’s the most efficient way, but I’m not entirely sure if it covers everything needed for deployment.
SH
Shonda 6 months 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.
AN
Angella 6 months 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.
TR
Truman 6 months 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.
0/2000 characters

Save Cancel