Bird
0
0

You perform a Scan operation with a FilterExpression that matches 50 items out of 5,000. How many items does DynamoDB read internally?

medium📝 service behavior Q5 of 15
AWS - DynamoDB
You perform a Scan operation with a FilterExpression that matches 50 items out of 5,000. How many items does DynamoDB read internally?
Anull, because FilterExpression limits reads
B50 items
COnly items matching the filter
D5,000 items
Step-by-Step Solution
Solution:
  1. Step 1: Understand Scan with FilterExpression

    Scan reads every item in the table regardless of filter; FilterExpression only filters results after reading.
  2. Step 2: Calculate items read

    All 5,000 items are read internally, but only 50 are returned after filtering.
  3. Final Answer:

    5,000 items -> Option D
  4. Quick Check:

    Scan reads all items despite filter [OK]
Quick Trick: FilterExpression filters results, not read count [OK]
Common Mistakes:
MISTAKES
  • Thinking FilterExpression reduces read count
  • Assuming only matched items are read
  • Confusing Scan with Query behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes