You need to insert a record into a DynamoDB table immediately after a new file is added to an S3 bucket. Which sequence of steps accomplishes this?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure an S3 event notification to invoke a Lambda function that inserts the record into DynamoDB..
Why this is the answer
Configuring an S3 event notification to invoke a Lambda function is the most efficient and real-time solution. S3 event notifications directly trigger a Lambda function whenever a new object is created, allowing for immediate insertion into DynamoDB. An EventBridge rule for S3 is not the most direct or common pattern for this specific real-time S3-to-DynamoDB integration. While EventBridge can integrate with S3, S3 event notifications are purpose-built for this use case. A Lambda function polling S3 would be inefficient and incur unnecessary costs, as it would constantly check for new objects even when none exist, and it wouldn't be immediate. A scheduled cron job is not suitable for immediate insertion; it would introduce a delay between the S3 upload and the DynamoDB record creation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed