Question 50
In a controlled acceptance test for: An indexer restarts during a deployment and reprocesses some document updates, creating duplicate search records. What evidence confirms the intended behavior?
Explanation
Correct Answer
A forced restart replays safely and leaves exactly one current index entry per source. The scenario specifically states: An indexer restarts during a deployment and reprocesses some document updates, creating duplicate search records. At-least-once change-feed processing requires idempotent sink writes and stable identity keys. This result directly measures the intended change after implementation. The corresponding corrective action is Upsert search documents by stable source ID and handle replay without appending duplicate records. The important remaining qualification is: Checkpointing alone cannot guarantee exactly-once side effects in every downstream system.
Incorrect Answers
Cosmos DB change feed processors can consume changes using a lease container and checkpoint progress. That addresses a different mechanism; this question turns on A forced restart replays safely and leaves exactly one.
Embeddings from incompatible models need coordinated re-embedding and index-version management. In the present case the governing issue is At-least-once change-feed processing requires idempotent sink writes and stable, which this does not resolve.
A suitable Cosmos DB partition key distributes load and enables efficient tenant-scoped queries across physical partitions. That observation may hold without resolving the relevant issue: A forced restart replays safely and leaves exactly one.