Topic 1 Question 35
A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket. Which set of steps would be necessary to achieve this?
Create an event with Amazon EventBridge that will monitor the S3 bucket and then insert the records into DynamoDB.
Configure an S3 event to invoke an AWS Lambda function that inserts records into DynamoDB.
Create an AWS Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
Create a cron job that will run at a scheduled time and insert the records into DynamoDB.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B👍 4Untamables2023/03/25
It is B
👍 3svrnvtr2023/03/21The correct answer is B.
To insert a record into DynamoDB as soon as a new file is added to an S3 bucket, you can configure an S3 event notification to invoke an AWS Lambda function that inserts the records into DynamoDB. When a new file is added to the S3 bucket, the S3 event notification will trigger the Lambda function, which will insert the record into the DynamoDB table.
Option A is incorrect because Amazon EventBridge is not necessary to achieve this. S3 event notifications can directly invoke a Lambda function to insert records into DynamoDB.
Option C is incorrect because polling the S3 bucket periodically to check for new files is inefficient and not necessary with S3 event notifications.
Option D is incorrect because running a cron job at a scheduled time is not real-time and would not insert the record into DynamoDB as soon as a new file is added to the S3 bucket.
👍 1Bibay2023/05/14
シャッフルモード