
Answer-first summary for fast verification
Answer: Set up an S3 bucket event notification to directly invoke an AWS Lambda function for inserting records into DynamoDB.
The correct answer is B. To achieve real-time record insertion into an Amazon DynamoDB table when a new file is added to an Amazon S3 bucket, you can configure an S3 event notification to directly invoke an AWS Lambda function. The Lambda function can then insert the records into DynamoDB. This approach is efficient and ensures that the record is inserted as soon as the file is uploaded. Option A is incorrect because using Amazon EventBridge adds unnecessary complexity. Option C is incorrect because polling the S3 bucket is inefficient. Option D is incorrect because a cron job does not provide real-time operation.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To achieve real-time record insertion into an Amazon DynamoDB table upon the addition of a new file in an Amazon S3 bucket, which AWS service configuration is required?
A
Utilize Amazon EventBridge to create an event that triggers record insertion into DynamoDB upon S3 bucket changes.
B
Set up an S3 bucket event notification to directly invoke an AWS Lambda function for inserting records into DynamoDB.
C
Develop an AWS Lambda function to periodically check the S3 bucket for new files and subsequently insert records into DynamoDB.
D
Implement a scheduled cron job to periodically insert records into DynamoDB after new files are added to the S3 bucket.
No comments yet.