Explain 'Secondary Indexes' in NoSQL databases.
Explain 'Secondary Indexes' in NoSQL databases.
Approach: Describe indexing on non-partition keys.
An index that allows you to query data based on an attribute that is not part of the primary key. It enables more flexible query patterns at the cost of additional write overhead.
Follow-up: What is a Local Secondary Index (LSI)?
Key concepts: dynamodb, global secondary index.