Bird
0
0

You configured an S3 bucket to trigger a Lambda function on object creation, but the Lambda is not invoked. What is the most likely cause?

medium📝 Debug Q14 of 15
AWS - Serverless Architecture
You configured an S3 bucket to trigger a Lambda function on object creation, but the Lambda is not invoked. What is the most likely cause?
AThe S3 bucket notification configuration is missing permission for S3 to invoke Lambda.
BThe S3 bucket is in a different AWS region than the Lambda function.
CThe Lambda function code has a syntax error.
DThe Lambda function's execution role lacks permission to read from S3.
Step-by-Step Solution
Solution:
  1. Step 1: Check permissions for S3 to invoke Lambda

    S3 must have permission to invoke the Lambda function via a resource-based policy on Lambda.
  2. Step 2: Understand common misconfigurations

    Missing this permission causes Lambda not to trigger even if bucket notifications are set.
  3. Final Answer:

    The S3 bucket notification configuration is missing permission for S3 to invoke Lambda. -> Option A
  4. Quick Check:

    S3 needs invoke permission on Lambda [OK]
Quick Trick: Grant S3 permission to invoke Lambda in Lambda's resource policy [OK]
Common Mistakes:
  • Confusing Lambda execution role with S3 invoke permission
  • Assuming code errors prevent invocation
  • Thinking region mismatch blocks invocation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes