exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 35 discussion

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

HOTSPOT
-

You implement an Azure solution to include Azure Cosmos DB, the latest Azure Cosmos DB SDK, and the Core (SQL) API. You also implement a change feed processor on a new container instance by using the Azure Functions trigger for Azure Cosmos DB.

A large batch of documents continues to fail when reading one of the documents in the batch. The same batch of documents is continuously retried by the triggered function and a new batch of documents must be read.

You need to implement the change feed processor to read the documents.

Which feature should you implement? To answer, select the appropriate features in the answer area.

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
sarmaria
Highly Voted 1 year, 7 months ago
Got this on 16/03/23. Went with proposed solution. Make sure to prepare for case study. I got city and lights case study. No Kubernetes, Search, Logic Apps questions for me.
upvoted 14 times
Mattfusa
8 months, 2 weeks ago
For case study's though dont they block by contributor access now? How did you prepare for those?
upvoted 1 times
...
ReyPirata
1 year, 2 months ago
Agreed. This was on the exam (08/20/2023). Scored 925 Change feed estimator Dead-letter queue
upvoted 5 times
...
...
imanonion
Highly Voted 1 year, 9 months ago
I agree with the answer! 1. Change feed estimators monitor change feed processors' progress 2. Dead-letter queues handle errors and are able to monitor failed attempts, require failed attempts and even trigger a follow-up action (remediation or response)
upvoted 11 times
...
fuji36850
Most Recent 5 months, 1 week ago
Why feed estimator ? It has nothing to do with 'keeping track of failing batch'. Failing batch should be sent to dead-letter queue to keep track of it...
upvoted 1 times
...
azpardha
6 months, 4 weeks ago
Got this on 04/07/2024, Went with highly voted answer, score:820
upvoted 2 times
...
Hendrikdb
8 months, 2 weeks ago
The correct answer seems to me: - Change feed estimator - Life cycle notifications You also can use the change feed estimator to monitor the progress of your change feed processor instances as they read the change feed, or you can use life cycle notifications to detect underlying failures. Life cycle notitications literally says: Register a handler for WithErrorNotification to be notified when the current host encounters an exception during processing. You need to be able to distinguish whether the source is the user delegate (an unhandled exception) or an error that the processor encounters when it tries to access the monitored container (for example, networking issues).
upvoted 3 times
Hendrikdb
8 months, 2 weeks ago
Correction, change feed estimator does nothing in this question. I do not know why people pick this answer and I blindly followed. Change feed estimator only tracks changes between read operations. Life cycle notificaitons tracks everything. and you can use a dead letter queue to process the failed documents.
upvoted 3 times
...
...
Woksi
9 months ago
Got on 07/02/2024
upvoted 1 times
...
Ciupaz
11 months, 2 weeks ago
The answers should be reversed.
upvoted 3 times
...
AndySmith
1 year ago
On exam 3-Nov-2023. Went with proposed answer - 932/1000. 1) change feed estimator 2) dead-letter queue
upvoted 2 times
...
dom271219
1 year, 1 month ago
1/ "Change feed estimator" solely estimates the rate of changes, number of shards, and distrubution of the feed, but not read or process documents. There's a error because by confusing with "Change feed processor". 2/ Dead-letter queue
upvoted 2 times
...
[Removed]
1 year, 3 months ago
should be vice versa
upvoted 4 times
...
juanckar
1 year, 3 months ago
This was on the exam (July 2023). Unsure about solution....
upvoted 2 times
...
aragones
1 year, 5 months ago
Got this on 2023may12. my cases also: case: You need to configure authorization. case: You need to ensure the app does not time out and processes the blob data case study: VanArsdel Inc Canada
upvoted 2 times
...
Defa
1 year, 7 months ago
From: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?tabs=dotnet#error-handling "To prevent your change feed processor from getting "stuck" continuously retrying the same batch of changes, you should add logic in your delegate code to write documents, upon exception, to an errored-message queue. This design ensures that you can keep track of unprocessed changes while still being able to continue to process future changes. The errored-message queue might be another Azure Cosmos DB container. The exact data store does not matter, simply that the unprocessed changes are persisted. In addition, you can use the change feed estimator to monitor the progress of your change feed processor instances as they read the change feed or use the life cycle notifications to detect underlying failures." As the questions says 'keeping track' I'd go for feed estimator.
upvoted 3 times
...
Videira
1 year, 8 months ago
On my exam 2023-02-25
upvoted 2 times
...
Ayman99
1 year, 8 months ago
Was on the exam 27.02.2023 Went for Lifecycle notifications and dead letter queue. Score 870
upvoted 3 times
...
mabdo
1 year, 9 months ago
was on exam 02/2023
upvoted 3 times
...
alekomar
1 year, 9 months ago
1. Life-cycle notifications https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?tabs=dotnet#life-cycle-notifications Register a handler for WithErrorNotification to be notified when the current host encounters an exception during processing 2. Dead-letter queue https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?tabs=dotnet#error-handling To prevent your change feed processor from getting "stuck" continuously retrying the same batch of changes, you should add logic in your delegate code to write documents, upon exception, to an errored-message queue.
upvoted 4 times
warchoon
1 year, 8 months ago
Correct https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?tabs=dotnet#error-handling:~:text=use%20the%20life%20cycle%20notifications%20to%20detect%20underlying%20failures.
upvoted 2 times
warchoon
1 year, 8 months ago
but 1. (about the stuck) - Dead-letter and 2. (about error handling) - notifications
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago