0
0
DynamoDBquery~20 mins

Transaction limits in DynamoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Transaction Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Maximum number of operations in a DynamoDB transaction
What is the maximum number of operations allowed in a single DynamoDB transaction?
A10 operations
B100 operations
C50 operations
D25 operations
Attempts:
2 left
💡 Hint
Think about the official AWS limits for transactional writes and reads.
query_result
intermediate
1:30remaining
Result of exceeding transaction operation limit
What error will DynamoDB return if you try to execute a transaction with 12 operations?
AInternalServerError
BValidationException with message 'Transaction size too large'
CTransactionCanceledException with reason 'Too many operations'
DProvisionedThroughputExceededException
Attempts:
2 left
💡 Hint
Consider the error related to exceeding the allowed number of operations.
📝 Syntax
advanced
2:00remaining
Valid transaction request size in DynamoDB
Which of the following JSON snippets correctly respects the DynamoDB transaction limits for operations count and item size?
A{ "TransactItems": [ { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "123" }, "Name": { "S": "Alice" }, "Bio": { "S": "A very long string exceeding 400 KB..." } } } } ] }
B{ "TransactItems": [ { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "123" }, "Name": { "S": "Alice" } } } } ] }
C{ "TransactItems": [ { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "123" }, "Name": { "S": "Alice" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "124" }, "Name": { "S": "Bob" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "125" }, "Name": { "S": "Charlie" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "126" }, "Name": { "S": "David" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "127" }, "Name": { "S": "Eve" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "128" }, "Name": { "S": "Frank" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "129" }, "Name": { "S": "Grace" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "130" }, "Name": { "S": "Hank" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "131" }, "Name": { "S": "Ivy" } } } }, { "Put": { "TableName": "Users", "Item": { "UserId": { "S": "132" }, "Name": { "S": "Jack" } } } } ] }
D{ "TransactItems": [] }
Attempts:
2 left
💡 Hint
Remember the max operations per transaction and item size limits.
optimization
advanced
2:00remaining
Optimizing transaction usage under DynamoDB limits
You need to update 25 items atomically in DynamoDB. Given the transaction operation limit, what is the best approach?
ASplit the updates into 3 transactions with 10, 10, and 5 operations each
BUse a single transaction with all 25 operations
CUpdate all items individually without transactions
DBatchWriteItem API with 25 items in one batch
Attempts:
2 left
💡 Hint
Consider the maximum operations per transaction and atomicity requirements.
🔧 Debug
expert
2:30remaining
Diagnosing transaction failure due to size limits
A DynamoDB transaction with 8 operations fails with TransactionCanceledException. The items are small, but the transaction includes a condition expression on one item that is very large. What is the most likely cause?
AThe provisioned throughput is exceeded
BThe transaction has more than 10 operations
CThe table does not exist
DThe total size of all condition expressions exceeds the 4 MB transaction size limit
Attempts:
2 left
💡 Hint
Think about transaction size limits including condition expressions.