Bird
0
0

You set up an S3 event notification to trigger a Lambda function on object creation, but the Lambda is never invoked. Which of the following is the most probable cause?

medium📝 Debug Q6 of 15
AWS - Serverless Architecture
You set up an S3 event notification to trigger a Lambda function on object creation, but the Lambda is never invoked. Which of the following is the most probable cause?
AThe Lambda function's execution role lacks permission to be invoked by S3
BThe S3 bucket does not have versioning enabled
CThe Lambda function code is missing the handler method
DThe S3 bucket is in a different AWS region than the Lambda function
Step-by-Step Solution
Solution:
  1. Step 1: Check permissions

    S3 must have permission to invoke the Lambda function. This is controlled by the Lambda resource policy.
  2. Step 2: Evaluate other options

    Bucket versioning is unrelated to event triggers. Missing handler causes runtime errors but not invocation failure. Cross-region triggers are supported but require proper configuration.
  3. Final Answer:

    The Lambda function's execution role lacks permission to be invoked by S3 -> Option A
  4. Quick Check:

    Lambda must allow S3 to invoke it via permissions [OK]
Quick Trick: Lambda needs permission for S3 to invoke it [OK]
Common Mistakes:
  • Assuming versioning affects event triggers
  • Confusing execution role with resource policy
  • Ignoring cross-region invocation capabilities

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes