DVA-C02 Development with AWS services

A DynamoDB query response includes a LastEvaluatedKey value. What should the client do?

Show answer and explanation

Answer: C

LastEvaluatedKey appears when a query or scan stops before all matching items were returned, because of the 1 MB response limit or a Limit parameter. The client passes that key as ExclusiveStartKey in the next request and keeps going until the response no longer contains LastEvaluatedKey. Retrying unchanged returns the same first page, and the key is not an error signal or a sign of throttling.

Why the other options are wrong

  • A. Retrying the same query unchanged returns the same first page again. The key is a pagination marker, not an error, so the loop never advances.
  • B. A LastEvaluatedKey does not indicate a missing sort key. It shows that more matching items remain to be fetched.
  • D. Throttling produces a separate error response. A LastEvaluatedKey simply means the results were paginated, so there is nothing to wait for.

Keep going. 200 DVA-C02 questions, answers explained after each one.

Practise development with AWS services

Reviewed November 2026. Spotted a problem with this question? Report it from the practice tool.