Introduction
Scan reads the entire table because it looks at every item to find the data you want. It does not use indexes or keys to jump directly to specific items.
When you want to get all items from a table without filtering by key.
When you need to check or count all records in a table.
When you want to find items based on attributes that are not keys.
When you have a small table and performance is not a big concern.