Question 350
A development team changes document id format while retaining a tenant partition key and records appear duplicated. After the proposed remediation, what should be observed?
Explanation
Correct Answer
Cosmos DB item identity is based on id and logical partition key, not arbitrary business fields. The observed result “Repeated imports update the same logical item rather than growing duplicate documents” would confirm the change “Use a stable deterministic document id within the intended logical partition for idempotent upserts” in this situation: A development team changes document id format while retaining a tenant partition key and records appear duplicated.
Incorrect Answers
A suitable partition key lets the SDK route queries efficiently instead of broadcasting to every partition. The situation here is: A development team changes document id format while retaining a tenant partition key and records appear duplicated. A test of this alternative would miss the specific outcome “Repeated imports update the same logical item rather than growing duplicate documents”.
At-least-once change processing demands idempotent side effects and durable checkpoints. The situation here is: A development team changes document id format while retaining a tenant partition key and records appear duplicated. A test of this alternative would miss the specific outcome “Repeated imports update the same logical item rather than growing duplicate documents”.
Indexing nested paths supports predicates that would otherwise require costly scanning. The situation here is: A development team changes document id format while retaining a tenant partition key and records appear duplicated. A test of this alternative would miss the specific outcome “Repeated imports update the same logical item rather than growing duplicate documents”.