You must deploy an AWS Lambda function whose dependency file is 500 MB. Which deployment method meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Package the application code and dependencies into a container image, push the image to Amazon Elastic Container Registry (Amazon ECR), and configure the Lambda function to use that image..
Why this is the answer
The correct option is to package the application into a container image and push it to Amazon ECR. AWS Lambda supports deployment packages up to 250 MB (unzipped) for .zip file archives. For larger dependencies, container images are the appropriate solution, allowing package sizes up to 10 GB. Amazon ECR is the designated service for storing and managing these container images for Lambda. Compressing into a .zip archive and uploading directly or via S3 would exceed the 250 MB limit for .zip deployments. Uploading a container image directly to S3 is not a supported deployment method for Lambda functions; Lambda requires container images to be stored in ECR.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed