Bird
0
0

You have a Lambda layer with version 3 attached to a function. You update the layer to version 4. What must you do to use the new version in your function?

medium📝 service behavior Q5 of 15
AWS - Lambda
You have a Lambda layer with version 3 attached to a function. You update the layer to version 4. What must you do to use the new version in your function?
AThe function automatically uses the latest layer version
BDelete the old layer version to force update
CUpdate the function configuration to reference version 4 of the layer
DRestart the Lambda service to refresh layers
Step-by-Step Solution
Solution:
  1. Step 1: Understand layer versioning

    Each layer version is immutable and must be explicitly referenced by the function.
  2. Step 2: Identify update process

    To use version 4, update the function's layer ARN to point to version 4.
  3. Final Answer:

    Update the function configuration to reference version 4 of the layer -> Option C
  4. Quick Check:

    Layer version update = manual function config change [OK]
Quick Trick: Function uses specific layer version; update config to change [OK]
Common Mistakes:
  • Assuming automatic use of latest version
  • Deleting old versions to update
  • Thinking Lambda service restart updates layers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes