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
Nadine
1 day ago
D is too simple. It skips the packaging step.
upvoted 0 times
...
Wilda
7 days ago
I get that, but CloudFormation is powerful for larger projects.
upvoted 0 times
...
Val
12 days ago
C is also good, but I feel it’s overkill for this task.
upvoted 0 times
...
Nadine
17 days ago
True, but B requires S3, which adds complexity.
upvoted 0 times
...
Wilda
22 days ago
I prefer option B. SAM templates are great for infrastructure as code.
upvoted 0 times
...
Nadine
27 days ago
Plus, updating the Lambda config is straightforward.
upvoted 0 times
...
Val
1 month ago
Yeah, A makes sense. ECR is perfect for containers.
upvoted 0 times
...
Nadine
1 month ago
I think option A is the best choice.
upvoted 0 times
...
Truman
1 month ago
C seems a bit overkill for this task, don’t you think?
upvoted 0 times
...
Gilma
2 months ago
Totally agree with A, ECR is the way to go!
upvoted 0 times
...
Marge
2 months ago
Wait, can you really store container images in S3?
upvoted 0 times
...
Josefa
2 months ago
I think B is better for managing resources as code.
upvoted 0 times
...
Ulysses
2 months ago
Option A is the most straightforward approach.
upvoted 0 times
...
Ashton
2 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.
upvoted 0 times
...
Shonda
4 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.
upvoted 0 times
...
Angella
4 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.
upvoted 0 times
...
Truman
4 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.
upvoted 0 times
...

Save Cancel