dynamoDB Transactions Flashcards

1
Q

What are the transaction operations provided by DynamoDB?

A

DynamoDB provides two transaction operations: TransactWriteItems and TransactGetItems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the TransactWriteItems operation?

A

allows grouping of 100 write actions into a single transaction, including :
* PutItem
* UpdateItem
* DeleteItem
* ConditionalCheck

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the TransactGetItems operation contain?

A
  • contains a read set, with one or more GetItem operations.
  • can contain up to 100 unique GetItems or 4MB of data, including conditions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the atomicity principle in DynamoDB transactions?

A

The atomicity principle states that transactions are atomic, meaning everything either succeeds or the transaction fails.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the cost implication of using transactions in DynamoDB?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly