Challenge - 5 Problems
Transaction Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Maximum number of operations in a DynamoDB transaction
What is the maximum number of operations allowed in a single DynamoDB transaction?
Attempts:
2 left
💡 Hint
Think about the official AWS limits for transactional writes and reads.
✗ Incorrect
DynamoDB transactions support up to 10 operations per transaction, including both reads and writes.
❓ query_result
intermediate1:30remaining
Result of exceeding transaction operation limit
What error will DynamoDB return if you try to execute a transaction with 12 operations?
Attempts:
2 left
💡 Hint
Consider the error related to exceeding the allowed number of operations.
✗ Incorrect
DynamoDB returns a ValidationException with message 'Transaction size too large' when the transaction exceeds the allowed number of operations.
📝 Syntax
advanced2: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?
Attempts:
2 left
💡 Hint
Remember the max operations per transaction and item size limits.
✗ Incorrect
Option C contains exactly 10 operations, each with a small item size, respecting DynamoDB transaction limits. Option C has only 1 operation (valid but less than max), C exceeds item size limit, D has zero operations which is invalid.
❓ optimization
advanced2: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?
Attempts:
2 left
💡 Hint
Consider the maximum operations per transaction and atomicity requirements.
✗ Incorrect
DynamoDB transactions support up to 10 operations. To update 25 items atomically in groups, split into multiple transactions. BatchWriteItem does not guarantee atomicity.
🔧 Debug
expert2: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?
Attempts:
2 left
💡 Hint
Think about transaction size limits including condition expressions.
✗ Incorrect
DynamoDB transactions have a 4 MB total size limit including items and condition expressions. Large condition expressions can cause failure even if item sizes are small.