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

A developer is updating several AWS Lambda functions and notices that all the Lambda functions share the same custom libraries. The developer wants to centralize all the libraries, update the libraries in a convenient way, and keep the libraries versioned.

Which solution will meet these requirements with the LEAST development effort?

Answer options

Correct answer: C

Explanation

Creating a Lambda layer is the most efficient solution for sharing libraries across multiple Lambda functions, as it allows for versioning and easy updates without modifying each function. The other options, while viable, involve more overhead: AWS CodeArtifact and EFS require additional management, and a custom container image adds complexity to the deployment process.