Bird
0
0

Given a DynamoDB table with partition key 'CustomerId' and items having CustomerId values: 'C1', 'C1', 'C2', 'C3', 'C3', 'C3', which partition will likely have the highest load?

medium📝 query result Q4 of 15
DynamoDB - Access Patterns and Query Optimization
Given a DynamoDB table with partition key 'CustomerId' and items having CustomerId values: 'C1', 'C1', 'C2', 'C3', 'C3', 'C3', which partition will likely have the highest load?
AAll partitions have equal load
BPartition with CustomerId 'C2'
CPartition with CustomerId 'C1'
DPartition with CustomerId 'C3'
Step-by-Step Solution
Solution:
  1. Step 1: Count items per partition key value

    'C3' has 3 items, 'C1' has 2, 'C2' has 1.
  2. Step 2: Determine partition load based on item count

    More items under a partition key cause higher load on that partition.
  3. Final Answer:

    Partition with CustomerId 'C3' -> Option D
  4. Quick Check:

    More items = higher partition load [OK]
Quick Trick: Partition load depends on number of items per key [OK]
Common Mistakes:
MISTAKES
  • Assuming equal load regardless of item count
  • Confusing partition key with sort key
  • Ignoring repeated keys impact

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes