exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 4 question 11 discussion

Actual exam question from Microsoft's DP-420
Question #: 11
Topic #: 4
[All DP-420 Questions]

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 Core (SQL) API 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?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DudeWheresMyCar
Highly Voted 1 year, 1 month ago
Selected Answer: B
Answer should be B. The question explicitly states that: 1. Use the Azure Cosmos DB SDK to implement the conflict resolution policy for a container 2. Conflicts are sent to the conflicts feed 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
upvoted 10 times
...
imando
Most Recent 4 months, 3 weeks ago
Selected Answer: B
B is correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago