QuestionQ98

Maintain an Azure Cosmos DB solution

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 stops 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
Explanation

When a custom conflict-resolution merge procedure throws a runtime exception, Azure Cosmos DB writes the unresolved conflicts to the conflicts feed. Azure Cosmos DB triggers listen to the change feed rather than the conflicts feed, so an Azure Function must periodically pull items from the conflicts feed; a timer trigger supplies that scheduled execution.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!