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?
Route the S3 event notifications to Amazon CloudWatch Events/EventBridge and associate the Lambda function as a target.
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.
Using Amazon S3 event notifications to trigger a Lambda function directly when a new object is created provides the immediate response required for the developer's use case. It is the most direct method for event-driven integration between Amazon S3 and AWS Lambda. Configuring a Lambda function with an Amazon S3 event as the trigger allows the function to execute/respond as soon as the specified S3 event, such as a PUT, occurs.
Using Amazon SNS or Amazon SQS would introduce additional steps and potential delays, as it would require the S3 event to first publish to a topic or send a message to a queue, which would then trigger the Lambda function. This is less efficient and suitable for cases where indirect coupling or message filtering is required. Amazon S3 event notifications to Amazon CloudWatch Events/EventBridge would also introduce unnecessary complexity for this direct integration use case.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Amazon S3 event notifications?
Open an interactive chat with Bash
How does AWS Lambda integrate with Amazon S3?
Open an interactive chat with Bash
What are the benefits of using Lambda over other services like SNS or SQS for this use case?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access