
Answer-first summary for fast verification
Answer: Create an S3 event to invoke a Lambda function that inserts records into DynamoDB
Create an S3 event to invoke a Lambda function that inserts records into DynamoDB The Amazon S3 notification feature enables you to receive notifications when certain events happen in your bucket. To enable notifications, you must first add a notification configuration that identifies the events you want Amazon S3 to publish and the destinations where you want Amazon S3 to send the notifications. You store this configuration in the notification subresource that is associated with a bucket. Amazon S3 APIs such as PUT, POST, and COPY can create an object. Using these event types, you can enable notification when an object is created using a specific API, or you can use the s3:ObjectCreated:* event type to request notification regardless of the API that was used to create an object. For the given use-case, you would create an S3 event notification that triggers a Lambda function whenever we have a PUT object operation in the S3 bucket. The Lambda function in turn would execute custom code to inserts records into DynamoDB.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
The development team at a company needs to create an automated process where vendor records are inserted into an Amazon DynamoDB table whenever a vendor uploads a new file into an Amazon S3 bucket. Given this requirement, as a Developer Associate, what sequence of actions would you suggest to implement this solution?
A
Develop a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB
B
Set up an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB
C
Create an S3 event to invoke a Lambda function that inserts records into DynamoDB
D
Write a cron job that will execute a Lambda function at a scheduled time and insert the records into DynamoDB