QuestionQ36

Integrate an Azure Cosmos DB solution

You have a global e-commerce application that stores data in an Azure Cosmos DB Core (SQL) API account. The account is configured for multi-region writes.

You need to create a stored procedure for a custom conflict-resolution policy for a new container. If a conflict is caused by a deletion, the deletion must always take priority.

Which parameter should you check in the stored procedure function?

  • A isTombstone
  • B conflictingItems
  • C existingItem
  • D incomingItem
Explanation

In an Azure Cosmos DB custom conflict-resolution stored procedure, isTombstone is the Boolean parameter that indicates whether the incoming item conflicts with a previously deleted item. Checking it allows the procedure to apply logic in which deletion always wins.

Learn more

Community Discussion

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