DynamoDB Quiz

0 3,404

An application currently writes a large number of records to a DynamoDB table in one region. There is a requirement for a secondary application to retrieve new records written to the DynamoDB table every 2 hours and process the updates accordingly. Which of the following is an ideal way to ensure that the secondary application gets the relevant changes from the DynamoDB table?

A. Insert a timestamp for each record and then scan the entire table for the timestamp asper the last 2 hours.

B. Create another DynamoDB table with the records modified in the last 2 hours.

C. Use DynamoDB Streams to monitor the changes in the DynamoDB table.

D. Transfer records to S3 which were modified in the last 2 hours.

C. Use DynamoDB Streams to monitor the changes in the DynamoDB table.
AWS Documentation mentions the following:
A DynamoDB Stream is an ordered flow of information about changes to items in an Amazon DynamoDB table. When you enable a stream on a table, DynamoDB captures information about every modification to data items in the table.
Whenever an application creates, updates, or deletes items in the table, DynamoDB Streams write a stream record with the primary key attribute(s) of the items that were modified. A stream record contains information about a data modification to a single item in a DynamoDB table. You can configure the stream so that the stream records capture additional information, such as the “before” and “after” images of modified items.
For more information on DynamoDB Streams, please visit the below URL.
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html

Leave A Reply

Your email address will not be published.