DVA-C02 · Question #123
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…
The correct answer is C. Create a Lambda layer that contains all the custom libraries. The most efficient solution is to use a Lambda layer to store the common libraries, update them in one place, and reference them from each Lambda function that requires them.
Question
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?
Options
- ACreate an AWS CodeArtifact repository that contains all the custom libraries.
- BCreate a custom container image for the Lambda functions to save all the custom libraries.
- CCreate a Lambda layer that contains all the custom libraries.
- DCreate an Amazon Elastic File System (Amazon EFS) file system to store all the custom libraries.
How the community answered
(31 responses)- B3% (1)
- C94% (29)
- D3% (1)
Explanation
The most efficient solution is to use a Lambda layer to store the common libraries, update them in one place, and reference them from each Lambda function that requires them.
Community Discussion
No community discussion yet for this question.