A company is developing a serverless ecommerce web application. The application needs to make coordinated, all-or-nothing changes to multiple items in the company’s inventory table in Amazon DynamoDB.
Which solution will meet these requirements?
A . Enable transactions for the DynamoDB table. Use the BatchWriteItem operation to update the items.
B . Use the TransactWriteItems operation to group the changes. Update the items in the table.
C . Set up a FIFO queue using Amazon SQ
D . Group the changes in the queue. Update the table based on the grouped changes.
E . Create a transaction table in an Amazon Aurora DB cluster to manage the transactions. Write a backend process to sync the Aurora DB table and the DynamoDB table.
Answer: B
Explanation:
Reference: https://aws.amazon.com/blogs/mobile/appsync-caching-transactions/