DVA-C02 · Question #157
An online food company provides an Amazon API Gateway HTTP API to receive orders for partners. The API is integrated with an AWS Lambda function. The Lambda function stores the orders in an Amazon Dyn
The correct answer is C. Enable DynamoDB Streams on the DynamoDB table. Create a new Lambda function. Associate. By enabling DynamoDB Streams on the DynamoDB table, you can capture changes (orders and updates) to the table. Whenever a new order or an update is made to the table, a stream record is generated. You can then create a new Lambda function, associate the stream's ARN with this Lam
Question
An online food company provides an Amazon API Gateway HTTP API to receive orders for partners. The API is integrated with an AWS Lambda function. The Lambda function stores the orders in an Amazon DynamoDB table. The company expects to onboard additional partners. Some of the partners require additional Lambda functions to receive orders. The company has created an Amazon S3 bucket. The company needs to store all orders and updates in the S3 bucket for future analysis. How can the developer ensure that all orders and updates are stored to Amazon S3 with the LEAST development effort?
Options
- ACreate a new Lambda function and a new API Gateway API endpoint. Configure the new Lambda
- BUse Amazon Kinesis Data Streams to create a new data stream. Modify the Lambda function to
- CEnable DynamoDB Streams on the DynamoDB table. Create a new Lambda function. Associate
- DModify the Lambda function to publish to a new Amazon Simple Notification Service (Amazon
How the community answered
(68 responses)- A4% (3)
- B3% (2)
- C84% (57)
- D9% (6)
Explanation
By enabling DynamoDB Streams on the DynamoDB table, you can capture changes (orders and updates) to the table. Whenever a new order or an update is made to the table, a stream record is generated. You can then create a new Lambda function, associate the stream's ARN with this Lambda function, and configure it to write the stream records (orders and updates) to the S3 bucket. This approach leverages built-in features of DynamoDB and Lambda, minimizing the development effort required to achieve the desired outcome.
Community Discussion
No community discussion yet for this question.