Bird
0
0

Why does AWS Lambda require each layer version to be immutable and referenced explicitly by version number?

hard📝 Conceptual Q10 of 15
AWS - Lambda
Why does AWS Lambda require each layer version to be immutable and referenced explicitly by version number?
ATo reduce storage costs by reusing layer versions
BTo ensure function stability by avoiding unexpected code changes
CTo allow automatic updates of layers without redeploying functions
DTo enable layers to run in separate containers
Step-by-Step Solution
Solution:
  1. Step 1: Understand immutability purpose

    Immutable versions prevent changes that could break functions unexpectedly.
  2. Step 2: Identify reason for explicit versioning

    Explicit version references ensure functions use tested, stable code.
  3. Final Answer:

    To ensure function stability by avoiding unexpected code changes -> Option B
  4. Quick Check:

    Immutable layers = stable, predictable function behavior [OK]
Quick Trick: Immutable layers keep functions stable and predictable [OK]
Common Mistakes:
  • Thinking immutability reduces costs
  • Assuming layers auto-update functions
  • Believing layers run in separate containers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes