Bird
0
0

Which of the following is the correct event name to trigger a Lambda function when a new object is created in an S3 bucket?

easy📝 Syntax Q3 of 15
AWS - Serverless Architecture
Which of the following is the correct event name to trigger a Lambda function when a new object is created in an S3 bucket?
A"s3:ObjectRemoved:*"
B"s3:ObjectCreated:*"
C"s3:BucketCreated"
D"s3:ObjectAccessed:Get"
Step-by-Step Solution
Solution:
  1. Step 1: Recall S3 event names for object creation

    The event name for any object creation is "s3:ObjectCreated:*" which covers all create actions.
  2. Step 2: Eliminate incorrect event names

    Other options relate to deletion, bucket creation, or access, not object creation.
  3. Final Answer:

    "s3:ObjectCreated:*" -> Option B
  4. Quick Check:

    S3 object creation event = "s3:ObjectCreated:*" [OK]
Quick Trick: Use "s3:ObjectCreated:*" for all object creation triggers [OK]
Common Mistakes:
  • Using removal or access event names instead of creation
  • Confusing bucket creation with object creation events
  • Missing the wildcard * for all create types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes