dynamoDB Transactions Flashcards
What are the transaction operations provided by DynamoDB?
DynamoDB provides two transaction operations: TransactWriteItems and TransactGetItems.
What is the purpose of the TransactWriteItems operation?
allows grouping of 100 write actions into a single transaction, including :
* PutItem
* UpdateItem
* DeleteItem
* ConditionalCheck
What does the TransactGetItems operation contain?
- contains a read set, with one or more GetItem operations.
- can contain up to 100 unique GetItems or 4MB of data, including conditions.
What is the atomicity principle in DynamoDB transactions?
The atomicity principle states that transactions are atomic, meaning everything either succeeds or the transaction fails.
What is the cost implication of using transactions in DynamoDB?
Transactions are two times more expensive than regular reads/writes because DynamoDB needs to perform two underlying reads/writes of every item, one to prepare the transaction and one to commit the transaction.