Paginate DynamoDB Queries from .NET

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

A .NET endpoint lists a customer's orders from DynamoDB. It uses a Query with a filter on status and a limit of 20, but some pages come back with only three orders, or none, even though there are more. Explain how DynamoDB pagination works and how you'd fix the endpoint.

What a strong answer covers

  • How DynamoDB splits results across calls.
  • Why filtered pages can come back short.
  • The cost side of filtering, and a better design.
  • How an API should page through results for its clients.

Common mistake: Treating an empty or short page as the end of the results without checking for a key to continue from.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud