Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB — Question 45
You have an Azure Cosmos DB for NoSQL account. The account hosts a container that has the change feed enabled.
You are building an app by using the Azure Cosmos DB SDK. The app will read items from the change feed by using a pull model.
You need to ensure that multiple threads can read the change feed in parallel.
What should you include?
Answer options
- A. the ChangeFeedStartFrom value
- B. the pagesize value
- C. the FeedRange value
- D. a stream-based iterator
Correct answer: C
Explanation
The correct answer is C, the FeedRange value, as it allows you to specify a range of partitions for reading the change feed, enabling parallel processing by multiple threads. The other options do not provide the necessary mechanism for parallel reads; A relates to the starting point, B deals with pagination size, and D is not specifically designed for partitioned reads.