Bird
0
0

A developer estimates write capacity units (WCUs) for 1 KB items but forgets to account for item size correctly. The code calculates 1 WCU per write regardless of size. What is the likely issue?

medium📝 Debug Q14 of 15
DynamoDB - Cost Optimization and Monitoring
A developer estimates write capacity units (WCUs) for 1 KB items but forgets to account for item size correctly. The code calculates 1 WCU per write regardless of size. What is the likely issue?
AIncorrectly calculating read capacity units instead
BOverestimating WCUs for items smaller than 1 KB
CUnderestimating WCUs for items larger than 1 KB
DNo issue, 1 WCU per write is always correct
Step-by-Step Solution
Solution:
  1. Step 1: Understand WCU calculation for item size

    One WCU allows writing 1 KB per second. Larger items require more WCUs, rounded up.
  2. Step 2: Identify problem with fixed 1 WCU per write

    If item size > 1 KB, fixed 1 WCU underestimates needed capacity, causing throttling or errors.
  3. Final Answer:

    Underestimating WCUs for items larger than 1 KB -> Option C
  4. Quick Check:

    WCU depends on item size, fixed 1 WCU is wrong [OK]
Quick Trick: Always multiply WCU by item size in KB rounded up [OK]
Common Mistakes:
MISTAKES
  • Assuming 1 WCU fits all item sizes
  • Confusing read and write capacity units
  • Ignoring item size when estimating capacity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes