
Answer-first summary for fast verification
Answer: Activate DynamoDB Streams, establish a new Lambda triggered by the stream, and set it to write stream records to S3.
By enabling DynamoDB Streams on the existing DynamoDB table, changes such as new orders and updates trigger stream records. A new Lambda function can be associated with this stream's ARN, automatically handling and processing these updates. This Lambda function can then write the data to the S3 bucket. This method utilizes built-in integration between DynamoDB and Lambda, ensuring minimal development effort while achieving the desired outcome of capturing all orders and updates in Amazon S3.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An online food company uses an Amazon API Gateway HTTP API for partner orders, processed by a Lambda function storing data in a DynamoDB table. With plans to add more partners requiring additional Lambda functions, the company must also store all orders and updates in an Amazon S3 bucket for analysis. What is the most efficient method for a developer to ensure all orders and updates are captured in S3?
A
Create a new Lambda and API Gateway endpoint, directing the new Lambda to write to S3, and modify the existing Lambda for updates.
B
Implement Amazon Kinesis Data Streams, adjusting the Lambda to publish to the stream, which then writes to S3.
C
Activate DynamoDB Streams, establish a new Lambda triggered by the stream, and set it to write stream records to S3.
D
Update the Lambda to publish orders to a new Amazon SNS topic, and have a subscribed Lambda function write these updates to S3.