exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 48 discussion

Actual exam question from Microsoft's AZ-204
Question #: 48
Topic #: 3
[All AZ-204 Questions]

DRAG DROP
-

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.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
oCaio
Highly Voted 1 year, 3 months ago
Seems correct. App2 Push Model - Lease container "When reading from the Azure Cosmos DB change feed, we usually recommend using a push model because you won't need to worry about: ... Storing state for the last processed change. If you are reading from the change feed processor, state is automatically stored in a lease container. Ref: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/read-change-feed#reading-change-feed-with-a-push-model"
upvoted 11 times
...
FeriAZ
Highly Voted 10 months, 3 weeks ago
Correct. App1 (Pull Model): This model involves explicitly querying the change feed and managing the state of what has been read. Best Component: Continuation Token. The pull model typically relies on continuation tokens to keep track of where the last read operation ended and to resume from that point. App2 (Push Model): In this model, the change feed processor pushes changes to the application, and the application logic processes these changes. Best Component: Lease Container. The push model, especially when using the change feed processor, leverages a lease container to maintain state and ensure reliable processing.
upvoted 9 times
...
wafa_chaari
Most Recent 4 months, 1 week ago
correct : You need to choose the method to track the most recently processed change in App1 and App2. when reading from the Azure Cosmos DB change feed, we usually recommend using a push model because you won't need to worry about Storing state for the last processed change. If you are reading from the change feed processor, state is automatically stored in a lease container. -- The change feed pull model allows you to consume the change feed at your own pace. Changes must be requested by the client and there's no automatic polling for changes. If you want to permanently "bookmark" the last processed change (similar to the push model's lease container), you'll need to save a continuation token.
upvoted 1 times
...
thecrash
1 year, 2 months ago
Correct! The change feed pull model allows you to consume the change feed at your own pace. Changes must be requested by the client and there's no automatic polling for changes. If you want to permanently "bookmark" the last processed change (similar to the push model's lease container), you'll need to save a continuation token. https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/read-change-feed
upvoted 6 times
...
Ayaz_b
1 year, 2 months ago
Correct
upvoted 1 times
...
mario_no_code
1 year, 4 months ago
The answer is correct. Link: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-pull-model?tabs=dotnet#compare-to-the-change-feed-processor
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...