🔥 3-day streak
Microsoft Azure Cosmos DB Developer Specialty (DP-420)98 / 104
Question 98 of 104

You are building an order-processing service on Azure Cosmos DB for NoSQL. A container named 'Orders' is partitioned on '/customerId'. When a customer submits an order, your code must atomically insert one order document and update the customer's running-balance document — both belonging to the same customer — so that either both operations succeed or both fail. Throughput and latency must remain low. Which approach should you use?

Reviewed for accuracy · Report an issueNext question