AWS Certified Developer – Associate (DVA-C02) — Question 543

A developer adds new dependencies to an existing AWS Lambda function. The developer cannot deploy the Lambda function because the unzipped deployment package exceeds the maximum size quota for the Lambda function. The instruction set architecture of the Lambda function is x86_64.

The developer must implement a solution to deploy the Lambda function with the new dependencies.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

AWS Lambda .zip deployment packages have a strict unzipped size limit of 250 MB, whereas deploying the function as a container image allows for a size of up to 10 GB, which easily accommodates the larger dependencies. Options A and B are incorrect because snapshots are not a feature for dependency management, and switching to arm64 does not increase the deployment package size limit. Option C is incorrect because Amazon EBS volumes cannot be mounted directly to Lambda functions, and container images are the standard solution for oversized packages.