DynamoDB provides a huge range of query to run over the database so that the user can run almost all kinds of query over their data. DynamoDB provides a flexible querying by allowing the user to query a non-primary key attribute by using Global secondary index and the local secondary indexes.