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 SOS. Group the changes in the queue. Update the table based on the grouped changes.
D.
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.
TransactWriteItems is a synchronous write operation that groups up to 100 action requests. Either all of the actions succeed, or all of them fail.
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#transactWriteItems-property
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
a15ce96
1 year, 3 months agopancman
2 years, 4 months agok1kavi1
2 years, 7 months agokapil206001
2 years, 7 months ago