AWS Certified Big Data – Specialty — Question 24

An online retailer is using Amazon DynamoDB to store data related to customer transactions. The items in the table contains several string attributes describing the transaction as well as a JSON attribute containing the shopping cart and other details corresponding to the transaction. Average item size is 250KB, most of which is associated with the JSON attribute. The average customer generates 3GB of data per month.
Customers access the table to display their transaction history and review transaction details as needed.
Ninety percent of the queries against the table are executed when building the transaction history view, with the other 10% retrieving transaction details. The table is partitioned on CustomerID and sorted on transaction date.
The client has very high read capacity provisioned for the table and experiences very even utilization, but complains about the cost of Amazon DynamoDB compared to other NoSQL solutions.
Which strategy will reduce the cost associated with the clients read queries while not degrading quality?

Answer options

Correct answer: D

Explanation

The correct answer is D because creating a Local Secondary Index (LSI) sorted by date allows efficient querying for transaction details without incurring additional costs associated with full table scans. Options A and B would either compromise data consistency or require significant structural changes, leading to increased complexity and potential performance issues. Option C introduces foreign key management, which can complicate queries and reduce efficiency.