Exam DP-420 All QuestionsBrowse all questions from this exam
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 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 isTombstone parameter to resolve conflicts.

Does this meet the goal?

    Correct Answer: A

    The solution does meet the goal. By setting ConflictResolutionMode to Custom and using a custom stored procedure for conflict resolution that utilizes the isTombstone parameter, conflicts will be handled in the manner specified by the stored procedure, and any conflicts can be sent to the conflicts feed as required. This approach aligns with the requirements of utilizing the Azure Cosmos DB SDK for implementing a conflict resolution policy with custom logic.

Discussion
eb883dcOption: A

A is the answer https://learn.microsoft.com/en-us/azure/cosmos-db/conflict-resolution-policies