nerdexam
Microsoft

AZ-204 · Question #512

Drag and Drop Question You have an Azure Cosmos DB for NoSQL account. You plan to develop two apps named App1 and App2 that will use the change feed functionality to track changes to containers…

The correct answer is Continuation token; Lease container. App1 uses the pull model, which requires the application to manually manage its position in the change feed using a continuation token - a bookmark-like string that tracks where the last read left off, giving the developer full control. App2 uses the push model (via the Change…

Submitted by klara.se· Mar 30, 2026Develop solutions that use Azure Cosmos DB (Design and implement data storage / Change Feed)

Question

Drag and Drop Question You have an Azure Cosmos DB for NoSQL account. You plan to develop two apps named App1 and App2 that will use the change feed functionality to track changes to containers. App1 will use the pull model and App2 will use the push model. You need to choose the method to track the most recently processed change in App1 and App2. Which component should you use? To answer, drag the appropriate components to the correct apps. Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-204 question #512 exhibit

Answer Area

Drag items

Lease containerIntegrated cacheContinuation token

Correct arrangement

  • Continuation token
  • Lease container

Explanation

App1 uses the pull model, which requires the application to manually manage its position in the change feed using a continuation token - a bookmark-like string that tracks where the last read left off, giving the developer full control. App2 uses the push model (via the Change Feed Processor), which automatically manages state and distributes work across multiple consumers using a lease container - a dedicated Cosmos DB container that stores partition ownership and continuation state on behalf of each processor instance. The integrated cache is unrelated to change feed tracking; it is used to cache frequently read data to reduce RU consumption.

Topics

#Azure Cosmos DB#Change Feed#Pull Model vs Push Model#Change Feed Processor

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice