AWS Certified Developer Associate DVA-C02 Practice Question
A developer needs to process incoming files uploaded to an Amazon S3 bucket and transform the data using an AWS Lambda function. The developer wants the function to be triggered as soon as a new file is stored in the bucket. What is the MOST suitable way to achieve this requirement?
Send the S3 event notifications to an Amazon SQS queue and set up the queue as an event source for the Lambda function.
Configure the Lambda function to be triggered by Amazon S3 event notifications when a new object is created.
Publish the S3 event notifications to an Amazon SNS topic and subscribe the Lambda function to that topic.
Route the S3 event notifications to Amazon CloudWatch Events/EventBridge and associate the Lambda function as a target.