nerdexam
Microsoft

DP-420 · Question #195

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 correct answer is C. the FeedRange value. To enable parallel processing of the change feed with multiple threads, you should use the FeedRange value in the Azure Cosmos DB SDK. The FeedRange allows partitioning of the change feed, enabling multiple threads to process different ranges of the feed in parallel. This is…

Integrate an Azure Cosmos DB solution

Question

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?

Options

  • Athe ChangeFeedStartFrom value
  • Bthe pagesize value
  • Cthe FeedRange value
  • Da stream-based iterator

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    13% (4)
  • C
    77% (23)
  • D
    7% (2)

Explanation

To enable parallel processing of the change feed with multiple threads, you should use the FeedRange value in the Azure Cosmos DB SDK. The FeedRange allows partitioning of the change feed, enabling multiple threads to process different ranges of the feed in parallel. This is essential for scaling the processing of changes across multiple threads or even multiple instances of an application.

Topics

#Change Feed#Parallel Processing#Azure Cosmos DB SDK#Pull Model

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice