exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 3 question 1 discussion

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

You have an Azure Cosmos DB Core (SQL) API account that uses a custom conflict resolution policy. The account has a registered merge procedure that throws a runtime exception.
The runtime exception prevents conflicts from being resolved.
You need to use an Azure function to resolve the conflicts.
What should you use?

  • A. a function that pulls items from the conflicts feed and is triggered by a timer trigger
  • B. a function that receives items pushed from the change feed and is triggered by an Azure Cosmos DB trigger
  • C. a function that pulls items from the change feed and is triggered by a timer trigger
  • D. a function that receives items pushed from the conflicts feed and is triggered by an Azure Cosmos DB trigger
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
ognamala
Highly Voted 2 years, 3 months ago
Selected Answer: A
Correct answer should be "A" - we need to resolve conflicts, hence we definitely need to read the conflicts feed, hence answers B and C are immediately eliminated as they are pull from the changes feed, answer D mentions an Azure Cosmos DB trigger, but this is only for the change feed, not for the conflicts feed, hence A is the correct answer since there is no trigger mechanism for the conflict feed in Cosmos DB
upvoted 15 times
...
Blubb1860
Most Recent 11 months ago
Selected Answer: D
Conflict feed and CosmosDB trigger
upvoted 1 times
...
Bviljoen
1 year, 1 month ago
Answer is A: https://learn.microsoft.com/en-us/azure/cosmos-db/conflict-resolution-policies#conflict-resolution-policies If you configure your container with the custom resolution option, and you fail to register a merge procedure on the container or the merge procedure throws an exception at runtime, the conflicts are written to the conflicts feed. Your application then needs to manually resolve the conflicts in the conflicts feed. To learn more, see examples of how to use the custom resolution policy and how to use the conflicts feed.
upvoted 1 times
...
virgilpza
1 year, 8 months ago
Correct answer is A
upvoted 1 times
...
klepper
2 years, 2 months ago
Selected Answer: A
Correct answer is A
upvoted 1 times
...
Shiggi
2 years, 2 months ago
Selected Answer: A
Correct answer is A: all conflicts related data is stored in the conflicts feed, you have to orchestrate the function using a timer
upvoted 2 times
...
remz
2 years, 3 months ago
Selected Answer: A
Answer A
upvoted 1 times
...
ognamala
2 years, 3 months ago
Selected Answer: C
As grada explained very well, the answer should be C
upvoted 1 times
ognamala
2 years, 3 months ago
Actually, ignore this answer - C is retrieving from the change feed not the conflicts feed
upvoted 1 times
ognamala
2 years, 3 months ago
Correct answer is A
upvoted 1 times
...
...
...
mybiai
2 years, 4 months ago
Selected Answer: B
The Azure Cosmos DB Trigger uses the Azure Cosmos DB Change Feed to listen for inserts and updates across partitions. The change feed publishes inserts and updates, not deletions.
upvoted 2 times
...
avocacao
2 years, 4 months ago
Answer should be A. Need to read from conflict feed but there is no trigger mechanism for the conflict feed in Cosmos DB.
upvoted 4 times
...
grada
2 years, 4 months ago
The correct answer is C, only change feed triggers are available, and conflict feed needs to be manually queried from a timer-triggered function. Source: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger?tabs=in-process%2Cextensionv4&pivots=programming-language-csharp#attributes Nothing conflict-feed-related there, only change-feed-related. Conflict feed needs to be manually triggered like this: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-manage-conflicts?tabs=dotnetv3%2Capi-async%2Casync#read-from-conflict-feed
upvoted 2 times
xRiot007
10 months, 4 weeks ago
You can use a timer trigger as well.
upvoted 1 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 ...