Development with AWS Services
Which S3 configuration invokes a Lambda function when a new object is uploaded?
Show the answer
Correct answerC. An ObjectCreated event notification
AWhy not this: CORS controls browser cross-origin access to S3 resources, not object event delivery.
BWhy not this: Replication rules copy objects to destination buckets rather than configure Lambda invocation.
CWhy this is right: An ObjectCreated event notification can invoke a configured Lambda destination when an object is uploaded.
DWhy not this: Lifecycle expiration rules delete eligible objects rather than invoke a function when an upload occurs.
An S3 ObjectCreated event notification can target a Lambda function when an object is created. Replication copies objects to another bucket; it does not configure a Lambda invocation.