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
- A. Create a snapshot of all the dependencies. Configure the Lambda function to use the snapshot.
- B. Change the instruction set architecture of the Lambda function to use an arm64 architecture.
- C. Associate an Amazon Elastic Block Store (Amazon EBS) volume with the Lambda function. Store all the dependencies on the EBS volume.
- D. Create and deploy a Lambda container image with all the dependencies.
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.