Hint: Look for 'ReadCapacityUnits' and 'WriteCapacityUnits' keys [OK]
Common Mistakes:
Using incorrect keys like ReadUnits or WriteUnits
Missing commas or using wrong separators
Confusing throughput with capacity keywords
3. A DynamoDB table has 10 write capacity units. If each write item is 2 KB, how many writes per second can the table handle without throttling?
medium
A. 5 writes per second
B. 10 writes per second
C. 20 writes per second
D. 1 write per second
Solution
Step 1: Understand write capacity unit size
One write capacity unit allows one write per second for an item up to 1 KB.
Step 2: Calculate writes for 2 KB items
Each 2 KB item requires 2 write capacity units. With 10 units, 10 / 2 = 5 writes per second.
Final Answer:
5 writes per second -> Option A
Quick Check:
Write capacity units / item size factor = writes/sec [OK]
Hint: Divide capacity units by item size in KB [OK]
Common Mistakes:
Assuming 1 unit = 2 KB write
Not dividing capacity units by item size
Confusing read and write capacity units
4. You set a DynamoDB table's read capacity units to 5 but your application experiences throttling at 3 reads per second. What is the most likely cause?
medium
A. The table is in the wrong AWS region
B. The table has too many write capacity units
C. Each read item is larger than 4 KB, requiring more capacity units
D. The table's storage size is too large
Solution
Step 1: Recall read capacity unit size
One read capacity unit supports one strongly consistent read per second for an item up to 4 KB.
Step 2: Analyze throttling cause
If items are larger than 4 KB, each read consumes multiple units, so 5 units may not support 3 reads per second.
Final Answer:
Each read item is larger than 4 KB, requiring more capacity units -> Option C
Quick Check:
Item size affects read capacity usage [OK]
Hint: Check item size vs 4 KB read unit size [OK]
Common Mistakes:
Blaming write capacity units for read throttling
Ignoring item size impact on capacity
Thinking region or storage size causes throttling
5. You want to optimize costs for a DynamoDB table with variable traffic. Which approach best uses read and write capacity units efficiently?
hard
A. Set capacity units to zero when not using the table
B. Set very high fixed capacity units to avoid throttling
C. Manually increase capacity units once a month
D. Use on-demand capacity mode to automatically adjust units based on traffic
Solution
Step 1: Understand capacity modes
DynamoDB offers on-demand mode that adjusts capacity automatically to traffic, optimizing cost and performance.
Step 2: Compare options for cost efficiency
Setting high fixed units wastes money; manual changes are slow; zero units disables table. On-demand is best for variable traffic.
Final Answer:
Use on-demand capacity mode to automatically adjust units based on traffic -> Option D