You are developing a background service in C# that uses the Azure Cosmos DB .NET SDK v3 Change Feed Processor to process document updates from a monitored container. Which of the following statements correctly describes the configuration or behavior of the Change Feed Processor?
- The lease container must be partitioned using , and if the change feed delegate throws an unhandled exception, the processor will continuously retry processing the failed batch of changes.Answer
- BThe lease container must be partitioned using the same partition key as the monitored container to ensure processing leases are colocated with the source data.
- CThe Change Feed Processor requires that the monitored container be set to Session consistency; otherwise, the processor will skip notifications for writes that occur across different client sessions.
- DThe lease documents are stored as blobs in Azure Blob Storage, and you must use the Azure Storage SDK within the delegate to manually acquire and release leases.
Answer
The lease container must be partitioned using , and if the change feed delegate throws an unhandled exception, the processor will continuously retry processing the failed batch of changes.
The correct option correctly states that the lease container must be partitioned by . Furthermore, when an unhandled exception is thrown in the change feed delegate, the Change Feed Processor will continuously retry the same batch of changes. This guarantees at-least-once processing but requires developers to implement robust try-catch blocks to prevent processing from getting stuck.
Step-by-Step Solution
Key Concept
Azure Cosmos DB Change Feed Processor Configuration and Error Handling
Estimated Time:1m 30s