Bird
0
0

You configured a DynamoDB stream as a trigger for your Lambda function, but the function is not invoked when the table changes. What is the most likely cause?

medium📝 Debug Q14 of 15
AWS - Lambda
You configured a DynamoDB stream as a trigger for your Lambda function, but the function is not invoked when the table changes. What is the most likely cause?
AThe DynamoDB stream is disabled or not enabled
BThe DynamoDB table has no data
CThe Lambda function code is empty
DThe Lambda execution role lacks permission to read the DynamoDB stream
Step-by-Step Solution
Solution:
  1. Step 1: Check DynamoDB stream status

    For Lambda to trigger, the DynamoDB stream must be enabled on the table.
  2. Step 2: Confirm stream is active

    If the stream is disabled or not enabled, no events are generated to invoke Lambda.
  3. Final Answer:

    The DynamoDB stream is disabled or not enabled -> Option A
  4. Quick Check:

    DynamoDB stream must be enabled for Lambda trigger = A [OK]
Quick Trick: Ensure DynamoDB stream is enabled to trigger Lambda [OK]
Common Mistakes:
  • Ignoring stream enablement status
  • Assuming empty table stops triggers
  • Blaming Lambda code without checking stream

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes