Questions 16 to 18

Explanations for questions 16 to 18

We'll cover the following

Question 16

Every time an item in an Amazon DynamoDB table is modified, a record must be retained for compliance reasons. What is the most efficient solution for recording this information?

  1. Enable Amazon CloudWatch Logs. Configure an AWS Lambda function to monitor the log files, and record deleted item data to an Amazon S3 bucket.
  2. Enable DynamoDB Streams. Configure an AWS Lambda function to poll the stream, and record the modified item data to an Amazon S3 bucket.
  3. Enable Amazon CloudTrail. Configure an Amazon EC2 instance to monitor activity in the CloudTrail log files, and record changed items in another DynamoDB table.
  4. Enable DynamoDB Global Tables. Enable DynamoDB streams on the multi-region table, and save the output directly to an Amazon S3 bucket.

Correct Answer: 2

Explanation: Amazon DynamoDB Streams captures a time-ordered sequence of item-level modifications in any DynamoDB table and stores this information in a log for up to 24 hours. Applications can access this log and view the data items as they appeared before and after they were modified, in near real-time.

For example, in the diagram below, a DynamoDB stream is being consumed by a Lambda function, which processes the item data and records a record in CloudWatch Logs.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.