I struggled at first but I watched Advanced Design Patterns for DynamoDB[0] a few times and it clicked. As other responses have suggested, generally you define your access patterns first and then structure the data later to fit those access patterns.
[0]: https://www.youtube.com/watch?v=HaEPXoXVf2k