All Questions
Dynamodb easy

Why is the `Query` operation generally preferred over `Scan` for production workloads in DynamoDB?

  1. A The `Scan` operation only works on tables with fewer than 10,000 items.
  2. B A `Query` uses the primary key hashes to jump directly to relevant data, whereas a `Scan` reads every item in the entire table, consuming massive RCU budget and increasing latency.
  3. C A `Scan` always requires a DAX cache to be enabled for successful execution.
  4. D A `Query` is only allowed if the table is less than 1 hour old.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions