Interview Prep/AWS/Containers and Serverless

Explain Lambda versions, aliases and layers.

AdvancedConceptContainers and Serverless
Answer

Publishing creates an immutable numbered version of code plus configuration; $LATEST is mutable. An alias (like prod) is a pointer to a version that supports weighted routing between two versions for canary releases. Layers are zip archives of shared libraries/code mounted in /opt, up to 5 per function, counted against the 250 MB unzipped limit.

Event sources and permissions should reference an alias so rollouts and rollbacks are a pointer change.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless