0
0
DynamoDBquery~20 mins

Cost estimation for access patterns in DynamoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB Cost Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
2:00remaining
Calculate read capacity units for strongly consistent reads
A DynamoDB table has items of size 3 KB each. You want to perform 100 strongly consistent read operations per second. How many read capacity units (RCUs) are required?
A100 RCUs
B300 RCUs
C200 RCUs
D400 RCUs
Attempts:
2 left
💡 Hint
Each strongly consistent read of up to 4 KB consumes 1 RCU. Reads larger than 4 KB consume additional RCUs proportionally.
query_result
intermediate
2:00remaining
Write capacity units for batch write operations
You want to write 50 items per second to a DynamoDB table. Each item is 2 KB in size. How many write capacity units (WCUs) do you need to provision?
A200 WCUs
B100 WCUs
C25 WCUs
D50 WCUs
Attempts:
2 left
💡 Hint
Each write capacity unit represents one write per second for items up to 1 KB. Larger items consume more WCUs.
optimization
advanced
2:00remaining
Optimizing cost for eventually consistent reads
You have a table with items of size 8 KB. You need to perform 120 read operations per second. You can choose between strongly consistent or eventually consistent reads. Which option minimizes your read capacity units (RCUs) cost?
AUse eventually consistent reads, requiring 60 RCUs
BUse strongly consistent reads, requiring 240 RCUs
CUse eventually consistent reads, requiring 120 RCUs
DUse strongly consistent reads, requiring 120 RCUs
Attempts:
2 left
💡 Hint
Eventually consistent reads consume half the RCUs of strongly consistent reads for the same item size.
schema
advanced
2:00remaining
Choosing partition key to optimize cost
You have a DynamoDB table with a hot partition causing throttling. Which partition key design helps reduce cost by distributing traffic evenly?
AUse a single partition key with high traffic
BUse a partition key based on timestamp only
CUse a partition key with low cardinality
DUse a composite key with a random suffix to spread traffic
Attempts:
2 left
💡 Hint
Distributing traffic evenly across partitions reduces throttling and cost.
🔧 Debug
expert
2:00remaining
Identify the cause of unexpectedly high write costs
A DynamoDB table shows unexpectedly high write capacity usage. The application writes 10 items per second, each 1 KB in size. The table has a global secondary index (GSI) with a write capacity of 50 WCUs. What is the likely cause of the high write costs?
AWrites to the GSI double the write capacity units consumed
BThe GSI write capacity is unrelated to the main table writes
CEach write consumes only 1 WCU regardless of GSI presence
DThe application is writing items larger than 1 KB
Attempts:
2 left
💡 Hint
Writes to a table with GSIs consume write capacity on both the table and the GSIs.