Question 290
A service must update three items atomically but all reside in one logical partition. Which observation BEST confirms the intended behavior after the change?
Explanation
Correct Answer
Cosmos DB transactional batch offers atomicity within a logical partition, not across arbitrary partition keys. The observed result “The batch commits all valid operations or none when a contained operation fails” would confirm the change “Use the SDK transactional batch for operations sharing the same logical partition key” in this situation: A service must update three items atomically but all reside in one logical partition.
Incorrect Answers
Large Cosmos DB query results are paginated; the initial response is not necessarily complete. The situation here is: A service must update three items atomically but all reside in one logical partition. A test of this alternative would miss the specific outcome “The batch commits all valid operations or none when a contained operation fails”.
Standard latest-version change feed behavior differs from modes that include intermediate changes and deletes. The situation here is: A service must update three items atomically but all reside in one logical partition. A test of this alternative would miss the specific outcome “The batch commits all valid operations or none when a contained operation fails”.
Uneven partition keys cause hot partitions even when account-level RU capacity appears sufficient. The situation here is: A service must update three items atomically but all reside in one logical partition. A test of this alternative would miss the specific outcome “The batch commits all valid operations or none when a contained operation fails”.