DVA-C02 · Question #132
A developer maintains a critical business application that uses Amazon DynamoDB as the primary data store. The DynamoDB table contains millions of documents and receives 30-60 requests each minute. Th
The correct answer is B. Enable a DynamoDB stream on the table. Invoke an AWS Lambda function to process the. Option B is the best solution because it proposes enabling a DynamoDB stream on the table, which allows the developer to capture document-level changes in near-real time without modifying the application code. Then, the stream can be configured to invoke an AWS Lambda function to
Question
A developer maintains a critical business application that uses Amazon DynamoDB as the primary data store. The DynamoDB table contains millions of documents and receives 30-60 requests each minute. The developer needs to perform processing in near-real time on the documents when they are added or updated in the DynamoDB table. How can the developer implement this feature with the LEAST amount of change to the existing application code?
Options
- ASet up a cron job on an Amazon EC2 instance. Run a script every hour to query the table for
- BEnable a DynamoDB stream on the table. Invoke an AWS Lambda function to process the
- CUpdate the application to send a PutEvents request to Amazon EventBridge. Create an
- DUpdate the application to synchronously process the documents directly after the DynamoDB
How the community answered
(62 responses)- A3% (2)
- B79% (49)
- C5% (3)
- D13% (8)
Explanation
Option B is the best solution because it proposes enabling a DynamoDB stream on the table, which allows the developer to capture document-level changes in near-real time without modifying the application code. Then, the stream can be configured to invoke an AWS Lambda function to process the documents in near-real time. This solution requires minimal changes to the existing application code, and the Lambda function can be developed and deployed separately, enabling the developer to easily maintain and update it as needed.
Community Discussion
No community discussion yet for this question.