Question: What does DynamoDB Query return?

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Answer
DynamoDB Query returns a page of items matching a partition-key value and any sort-key condition, ordered by the sort key. The response can also contain counts, consumed-capacity details and a pagination key.
The main response fields are:
Items: the returned item attributes, unless you requested COUNT.Count: items returned after filtering.ScannedCount: items evaluated before filtering.LastEvaluatedKey: the key to pass asExclusiveStartKeyfor the next page.
Query evaluates up to 1 MB of data or the request's Limit, then applies FilterExpression. Consequently, Limit: 10 does not promise ten returned matches. A page can have an empty Items array and still contain LastEvaluatedKey; continue pagination until that key is absent.
Results use ascending sort-key order by default. Set ScanIndexForward: false to reverse it. Number keys sort numerically; String keys sort by UTF-8 bytes. A Scan has no equivalent ordering guarantee.
ProjectionExpression selects returned attributes but does not reduce read capacity for the same evaluated data. GSI queries can return only projected attributes and are eventually consistent. Low-level clients return DynamoDB type wrappers; document clients return native values.
See query examples and pagination for complete request loops.
Source: AWS Query API.
Other Common DynamoDB FAQ (with Answers)
- Does DynamoDB support Multi-AZ?
- Can DynamoDB have duplicates?
- Can you store lists in DynamoDB?
- What are the differences between DynamoDB and Google Bigtable?
- What are the naming conventions in DynamoDB?
- How do you enable CloudTrail for DynamoDB?
- Will I be charged for an inactive DynamoDB table?
- Can Tableau connect to DynamoDB?
- Can DynamoDB store documents?
- Is DynamoDB a memory store?
- Can you store XML in DynamoDB?
- Can you force-delete a DynamoDB table?
- Can Power BI connect to DynamoDB?
- How is data stored in DynamoDB?
- Can DynamoDB have null values?
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
- SSH GUI Client
- Chat With Cloud
- MongoDB GUI Client
- AWS Cost Monitoring
- DynamoDB Query Builder
- DynamoDB Code Examples
- DynamoDB Node.js Queries
- DynamoDB JSON Converter
- DynamoDB UUID Generator
- DynamoDB Local Admin GUI
- DynamoDB Pricing Calculator
- DynamoDB Single-Table Design
- Best DynamoDB GUI Clients
- Dynobase vs DynoTable