Bird
0
0

What are the two main parameters that every AWS Lambda handler function must accept?

easy📝 Conceptual Q11 of 15
AWS - Lambda
What are the two main parameters that every AWS Lambda handler function must accept?
A<code>event</code> and <code>context</code>
B<code>request</code> and <code>response</code>
C<code>input</code> and <code>output</code>
D<code>data</code> and <code>callback</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand Lambda handler inputs

    The AWS Lambda handler function always receives two parameters: event which contains the input data, and context which provides runtime information.
  2. Step 2: Match parameters to options

    Only event and context correctly lists these two parameters as event and context.
  3. Final Answer:

    event and context -> Option A
  4. Quick Check:

    Lambda handler parameters = event and context [OK]
Quick Trick: Remember: Lambda handler always gets event and context [OK]
Common Mistakes:
  • Confusing event with request or input
  • Using callback instead of context
  • Swapping parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes