Your DevOps team maintains a SaaS platform.
In the platform, whenever an existing user modifies its subscription information, an email will be sent to the user which includes some important information.
The subscription data is stored in a DynamoDB table, and its Stream is enabled to capture the changes to the table items.
A Java application is monitoring the Stream data and sends the email accordingly.
About the usage of DynamoDB Streams, which statement is right?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer -B.
The features of DynamoDB Streams can be found in the document of.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html.Option A is incorrect: Because the data items as they appeared before they were modified can also be saved in the Stream.
Option B is CORRECT: Because the data in both DynamoDB table (at rest) and DynamoDB Streams is fully encrypted.
Option C is incorrect: Because a DynamoDB Stream records information about each modification to data items in the table including adding, modifying and deleting.
Option D is incorrect: Because the information in the log can only be stored for 24 hours.
The correct answer to the question is option A: The Java application can only view the data items as they appeared after they were modified.
DynamoDB Streams is a feature provided by Amazon Web Services (AWS) that captures the changes made to a DynamoDB table in a log called a Stream. This feature allows developers to build real-time processing systems, generate triggers and notifications, and replicate data across different tables.
Option A is correct because the Java application can only view the data items as they appeared after they were modified. In other words, the Stream captures the changes made to the items in the DynamoDB table, and the Java application receives the updated version of the item.
Option B is incorrect because DynamoDB Streams does not encrypt the data. However, data encryption in transit and at rest can be enabled by using other AWS services, such as AWS Key Management Service (KMS) or Amazon Virtual Private Cloud (VPC).
Option C is incorrect because DynamoDB Streams can write a stream record when items in the table are created, updated, or deleted. Stream records contain the entire item image, which includes all the attributes of the item.
Option D is incorrect because the information in the Stream log is stored for 24 hours by default. However, you can increase the retention period up to 7 days by enabling enhanced fan-out, which allows multiple applications to read from the same stream at the same time.
In summary, DynamoDB Streams is a powerful feature that captures changes to a DynamoDB table and allows developers to build real-time processing systems. The Java application can only view the data items as they appeared after they were modified, and the Stream log is stored for 24 hours by default.