Question: Can a DynamoDB range key be a GSI key?

Answered by Rafal Wilinski
Answer
Yes, a DynamoDB range key can also be used as a GSI (global secondary index).It is common to use the same attribute as the range key and the GSI key. When you create a GSI, you can specify the range key attribute as the key to be indexed. This allows you to perform query operations on the range key attribute using the GSI and query and scan operations on the primary key attribute using the table.
Other Common DynamoDB FAQ (with Answers)
- Can DynamoDB store blob data?
- Does DynamoDB support atomic updates?
- Is DynamoDB HIPAA compliant?
- Does DynamoDB charge for storage?
- Is DynamoDB a memory store?
- What are the best alternatives to DynamoDB?
- How to create an index in DynamoDB? (how to create an index in dynamodb)
- Is DynamoDB open source?
- What are the differences between DynamoDB and MySQL?
- Is DynamoDB a relational database?
- Is DynamoDB a wide-column store?
- How to access DynamoDB from outside?
- Are DynamoDB table names globally unique?
- How is data stored in DynamoDB?
- Is DynamoDB OLTP or OLAP?
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
- New in Dynobase 3.0
- Semantic and Vector Search
- Schema Explorer
- Visual JSON Path Filtering
- Visual Item Diff
- MCP Server for AI Tools
- Use SQL with DynamoDB
- Import CSV To DynamoDB
- Import JSON To DynamoDB
- Export DynamoDB To JSON
- Export DynamoDB To S3
- Export DynamoDB To CSV
- DynamoDB Update Item
- DynamoDB Delete All Items
- DynamoDB Delete Item
- DynamoDB Create Table
- DynamoDB Delete Table
- DynamoDB Conditional Update
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase