DP-420 · Question #95
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is B. No. There are three conflict resolution modes in Cosmos DB: LastWriterWins (LWW), Custom (stored procedure), and None/Custom feed. To send all conflicts to the conflicts feed for application-level handling, you must set ConflictResolutionMode to Custom and NOT provide a stored…
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have a database in an Azure Cosmos DB for NoSQL account that is configured for multi- region writes. You need to use the Azure Cosmos DB SDK to implement the conflict resolution policy for a container. The solution must ensure that any conflicts are sent to the conflicts feed. Solution: You set ConflictResolutionMode to LastWriterWins and you use the default settings for the policy. Does this meet the goal?
Options
- AYes
- BNo
How the community answered
(46 responses)- A28% (13)
- B72% (33)
Explanation
There are three conflict resolution modes in Cosmos DB: LastWriterWins (LWW), Custom (stored procedure), and None/Custom feed. To send all conflicts to the conflicts feed for application-level handling, you must set ConflictResolutionMode to Custom and NOT provide a stored procedure path - conflicts are then routed to the conflicts feed automatically. LastWriterWins automatically resolves conflicts using a designated property (typically _ts) and discards the losing item; it never populates the conflicts feed. Therefore, setting ConflictResolutionMode to LastWriterWins does not meet the requirement of routing conflicts to the conflicts feed.
Topics
Community Discussion
No community discussion yet for this question.