Bird
0
0

What is the most likely cause?

medium📝 Debug Q14 of 15
AWS - Lambda
You updated your Lambda layer code and published a new version. After updating your function configuration to use the new layer version, the function still uses old code. What is the most likely cause?
AThe function needs a restart to pick up the new layer version
BThe function configuration was not updated to the new layer version ARN
CThe new layer version was not published correctly
DLambda layers automatically update all functions, so this is impossible
Step-by-Step Solution
Solution:
  1. Step 1: Understand layer versioning

    Each layer version has a unique ARN. Functions must explicitly reference the new version ARN to use updated code.
  2. Step 2: Identify common mistake

    If the function still uses old code, it likely still references the old layer version ARN.
  3. Final Answer:

    The function configuration was not updated to the new layer version ARN -> Option B
  4. Quick Check:

    Update function config with new layer ARN to use new code [OK]
Quick Trick: Update function config with new layer ARN after publishing [OK]
Common Mistakes:
  • Assuming layers auto-update all functions
  • Not publishing new layer version properly
  • Thinking function restart is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes