DP-420 · Question #94
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 ways for conflict resolution with the SDK: 1. Last-Writer-Wins: Conflicts do NOT show up in conflict feed 2. Custom Conflict Resolution Policy with Stored Proc: Conflicts do NOT show up in conflict feed unless there's an error in your stored procedure 3. Custom…
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 Custom. You set ResolutionProcedure to a custom stored procedure. You configure the custom stored procedure to use the conflictingItems parameter to resolve conflicts. Does this meet the goal?
Options
- AYes
- BNo
How the community answered
(58 responses)- A22% (13)
- B78% (45)
Explanation
There are three ways for conflict resolution with the SDK: 1. Last-Writer-Wins: Conflicts do NOT show up in conflict feed 2. Custom Conflict Resolution Policy with Stored Proc: Conflicts do NOT show up in conflict feed unless there's an error in your stored procedure 3. Custom Conflict Resolution Policy: Conflicts DO show up in conflict feed. This question is asking about item #2, which does NOT show up in the conflict feed by default. Now, if there is an error in the stored procedure it would be, but I'm assuming the question isn't considering this, as it isn't stated. https://learn.microsoft.com/en-us/azure/cosmos-db/sql/how-to-manage- conflicts?tabs=dotnetv2%2Capi-async%2Casync#create-a-custom-conflict-resolution-policy
Topics
Community Discussion
No community discussion yet for this question.