DP-420 · Question #79
You have a global ecommerce application that stores data in an Azure Cosmos DB for NoSQL account. The account is configured for multi-region writes. You need to create a stored procedure for a…
The correct answer is A. isTombstone. In Cosmos DB multi-region write conflict resolution stored procedures, when a conflict involves a deleted item, that item is represented internally as a tombstone document. The isTombstone property on an item in the conflict resolution procedure will be true when the conflict…
Question
You have a global ecommerce application that stores data in an Azure Cosmos DB for NoSQL 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. In the event of a conflict caused by a deletion, the deletion must always take priority. Which parameter should you check in the stored procedure function?
Options
- AisTombstone
- BconflictingItems
- CexistingItem
- DincomingItem
How the community answered
(37 responses)- A73% (27)
- B16% (6)
- C3% (1)
- D8% (3)
Explanation
In Cosmos DB multi-region write conflict resolution stored procedures, when a conflict involves a deleted item, that item is represented internally as a tombstone document. The isTombstone property on an item in the conflict resolution procedure will be true when the conflict originates from a delete operation. By checking isTombstone, the stored procedure can detect a deletion conflict and apply the business rule that deletions always win. The other parameters - conflictingItems, existingItem, and incomingItem - represent the items involved in the conflict but do not specifically identify whether the conflict is caused by a deletion.
Topics
Community Discussion
No community discussion yet for this question.