Testing and Deployment
Which Lambda feature packages shared libraries separately from function code for reuse across multiple ZIP-based functions?
Show the answer
Correct answerA. Lambda layers
AWhy this is right: Layers provide separately packaged dependencies that multiple compatible functions can use.
BWhy not this: Environment variables supply configuration values rather than library files.
CWhy not this: Aliases reference function versions rather than package shared libraries.
DWhy not this: Versions preserve function code and configuration rather than provide reusable dependency packages.
Lambda layers distribute libraries and other dependencies separately from function deployment packages. Lambda versions preserve snapshots of individual functions; they do not provide a shared library package.