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

A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution. The external library is a collection of files with a total size of 100 MB. The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space.

Which solution will meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: A

Explanation

Creating a Lambda layer to store the external library is the optimal solution as it simplifies management and reduces the size of the Lambda deployment package. The other options involve more operational overhead, such as managing S3 buckets, EFS volumes, or dealing with temporary storage that requires additional setup and maintenance.