AWS Certified Developer – Associate — Question 6

A company runs an e-commerce website that uses Amazon DynamoDB where pricing for items is dynamically updated in real time. At any given time, multiple updates may occur simultaneously for pricing information on a particular product. This is causing the original editor's changes to be overwritten without a proper review process.
Which DynamoDB write option should be selected to prevent this overwriting?

Answer options

Correct answer: B

Explanation

Conditional writes in DynamoDB enable you to specify conditions for an update, ensuring that the write only occurs if certain criteria are met. This protects against overwriting changes made by other processes, unlike concurrent writes which allow multiple updates that could lead to conflicts. Atomic writes and batch writes do not offer the necessary condition checks to prevent overwrites.