Skip to main content
InterviewHubPRO
Section Overview
Q47

Question 47 of 50

Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

94%
Amazon DynamoDB (50 Qs)•Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

Query vs Scan: Why Production Scans Cause Catastrophic Outages.

senior LevelSystem DesignAstro

In Simple Words:

  • Query: Finds items using the Primary Key (PK = :val AND SK >= :val2). Fast, efficient, and reads only matching items.
  • Scan (Anti-pattern): Scans every single item in the entire multi-gigabyte table sequentially before applying filter expressions. Consumes massive RCU, spikes costs, and throttles online transactional traffic!