Testing and Deployment

A Lambda function requires 280 MB of uncompressed code and dependencies, all of which must be packaged for deployment. Which approach meets Lambda packaging limits?

Show the answer

Correct answerB. Package the function as a Lambda container image.

AWhy not this: The 250 MB uncompressed limit includes the function package and all attached layers.

BWhy this is right: A 280 MB package fits within the 10 GB uncompressed limit for Lambda container images.

CWhy not this: AWS SAM automates deployment but does not change Lambda package size limits.

DWhy not this: Uploading through Amazon S3 does not bypass the 250 MB uncompressed ZIP deployment limit.

Lambda container images support up to 10 GB uncompressed, so this package fits. ZIP deployments have a 250 MB uncompressed limit that includes attached layers; uploading through Amazon S3 or using AWS SAM does not increase it.