
Ultimate access to all questions.
A development team is in the process of creating a game that allows players to purchase items using virtual coins. Each time a user buys a virtual coin, it is necessary to update both the players table and the items table in DynamoDB simultaneously and ensure that these updates occur as an all-or-nothing transaction.
As a developer associate, what approach would you take to implement this functionality?
A
Use TransactWriteItems API of DynamoDB Transactions
B
Use BatchWriteItem API to update multiple tables simultaneously
C
Capture the transactions in the players table using DynamoDB streams and then sync with the items table
D
Capture the transactions in the items table using DynamoDB streams and then sync with the players table