Careful design of the sort key lets you retrieve commonly needed groups of related items using range queries with operators AWS - DynamoDB - Developer Guide
Composite sort keys let you define hierarchical (one-to-many) relationships in your data that you can query at any level of the hierarchy. AWS - DynamoDB - Developer Guide