Question 150
A document update modifies one small field but the application always replaces the entire large JSON payload. Which solution should the developer choose?
Explanation
Correct Answer
Targeted patching changes selected fields without resubmitting the full document body.
Incorrect Answers
Use ETag-based conditional writes with If-Match concurrency control: conditional writes reject an update when another writer has changed the observed version.
Use a Cosmos DB transactional batch scoped to one partition key: use a Cosmos DB transactional batch scoped to one partition key: transactional batch offers atomic execution for operations sharing the partition-key scope.
Use a point read with the document id and partition key: use a point read with the document id and partition key: point reads avoid the RU cost of a general query when both the id and partition key are known; Use a suitable Cosmos DB partial document patch operation.





Developing AI Cloud Solutions on Azure (AI-200) Practice Tests