Bird
0
0

You deployed a Lambda function triggered by DynamoDB Streams but it never runs. Which of the following is the most likely cause?

medium📝 Debug Q14 of 15
AWS - Serverless Architecture
You deployed a Lambda function triggered by DynamoDB Streams but it never runs. Which of the following is the most likely cause?
AThe DynamoDB table does not have streams enabled
BThe Lambda function code has a syntax error
CThe DynamoDB table has no read capacity units
DThe Lambda function has no execution role
Step-by-Step Solution
Solution:
  1. Step 1: Check stream enablement

    Lambda triggers on DynamoDB Streams events, so streams must be enabled on the table.
  2. Step 2: Consider other causes

    While code errors or roles cause failures, the function would still be invoked if streams exist.
  3. Final Answer:

    The DynamoDB table does not have streams enabled -> Option A
  4. Quick Check:

    Streams must be enabled for Lambda trigger = C [OK]
Quick Trick: Check if streams are enabled on the table first [OK]
Common Mistakes:
  • Assuming code errors prevent invocation
  • Ignoring missing streams
  • Confusing read capacity with triggers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes