AWS Certified Developer Associate DVA-C02 Practice Question
When architecting a table in Amazon DynamoDB to catalog customer interactions that occur at various points in time, with the necessity to retrieve entries based on individual customer and specific date ranges, what key schema should the developer implement to support this access pattern efficiently?
You selected this option
Utilize only the time parameter of the interactions as the table's partition key without considering customer-specific sorting.
You selected this option
Design the table with a partition element for individual customer reference and a sort element capturing the time aspect of interactions.
You selected this option
Rely solely on the customer reference for the table's partition key without incorporating a sort element.
You selected this option
Implement a single unique identifier for all interactions without additional keys.
The developer should employ a composite primary key with two elements: a partition element that represents the individual customer, and a sort element that aligns with the chronological aspect of the interactions. This approach enables the table to isolate data per customer while allowing sorted and range-based retrieval within the confines of each customer's data set. A design with a singular identifier disregards the query needs by customer and date. A primary key based solely on the customer element would fail to account for multiple interactions and lead to poor distribution of data, whereas focusing on chronological elements alone could lead to similarly skewed data distribution due to concurrent interactions across customers.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a composite primary key in DynamoDB?
Open an interactive chat with Bash
Why is it important to have a sort key when retrieving data from DynamoDB?
Open an interactive chat with Bash
How does data distribution work with partition keys in DynamoDB?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access