Bird
0
0

You have two Lambda layers: one with shared utilities and one with a third-party library. How should you attach them to a function to ensure both are available?

hard📝 Application Q9 of 15
AWS - Lambda
You have two Lambda layers: one with shared utilities and one with a third-party library. How should you attach them to a function to ensure both are available?
AMerge both layers into one before attaching
BAttach both layers in the function configuration; order matters for resolving conflicts
CAttach only one layer; Lambda supports one layer per function
DAttach layers to separate functions and call them sequentially
Step-by-Step Solution
Solution:
  1. Step 1: Recall Lambda layer attachment rules

    Functions can have multiple layers attached, and order affects which files take precedence.
  2. Step 2: Apply correct attachment method

    Attach both layers in the configuration; order them carefully to avoid conflicts.
  3. Final Answer:

    Attach both layers in the function configuration; order matters for resolving conflicts -> Option B
  4. Quick Check:

    Multiple layers allowed; order controls precedence [OK]
Quick Trick: Attach multiple layers; order controls which files override [OK]
Common Mistakes:
MISTAKES
  • Thinking only one layer can be attached
  • Merging layers manually instead of attaching separately
  • Trying to split layers across functions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes