DynamoDB is fast until it isn’t. Query patterns can turn from lightning to molasses when keys are chosen without care, when filters run on the wrong side of the index, or when read units burn out in silence. The solution isn’t trial and error. It’s a living runbook that cuts through chaos and tells you exactly what to do when your table stalls.
A good DynamoDB query runbook for the community version starts with structure. Define the key schema. Include exact query examples for common access patterns. Show how to switch from a scan to a query. Detail when to use a Global Secondary Index and how to update it without downtime. Put in the metrics to watch—ConsistentRead, ThrottledRequests, ReturnedItemCount—so you can see danger before it arrives.
Then handle the unknowns. What do you do when latency spikes but capacity is fine? How do you debug a query that returns inconsistent results? Lay out a step-by-step chain: inspect indexes, confirm partition distribution, check hot shards, review read/write capacities, validate query parameters. Keep it linear. No guessing.