Question: what is the difference between dynamodb scan and query?
Answer: A query operation uses the joint hash and range index and is available only for tables with a composite primary key. Scan on the other hand goes through the entire table and then filters the results afterwards.