An index is a data structure that enhances the data retrieval speed from the database. However, it costs some storage space and additional writes to the database to maintain the index data structure.
DynamoDB has two types of indexes :
* Global secondary index
* Local secondary index
Secondary indexes allow to storage of a sub-group of attributes from a table. With that, it supports query functionality with alternate keys.