exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 20 discussion

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

DRAG DROP -
You develop an Azure solution that uses Cosmos DB.
The current Cosmos DB container must be replicated and must use a partition key that is optimized for queries.
You need to implement a change feed processor solution.
Which change feed processor components should you use? To answer, drag the appropriate components to the correct requirements. 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 the content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: The monitored container -
The monitored container has the data from which the change feed is generated. Any inserts and updates to the monitored container are reflected in the change feed of the container.

Box 2: The lease container -
The lease container acts as a state storage and coordinates processing the change feed across multiple workers. The lease container can be stored in the same account as the monitored container or in a separate account.
Box 3: The host: A host is an application instance that uses the change feed processor to listen for changes. Multiple instances with the same lease configuration can run in parallel, but each instance should have a different instance name.

Box 4: The delegate -
The delegate is the code that defines what you, the developer, want to do with each batch of changes that the change feed processor reads.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-processor

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
MattXu
Highly Voted 3 years, 10 months ago
The given answer is correct.
upvoted 60 times
TakumaK
3 years, 10 months ago
You are right. The given answer is correct.
upvoted 11 times
john4p
3 years, 5 months ago
And your given answer, that MattXu is right, is also correct.
upvoted 19 times
dbobspurfpoo
3 years, 4 months ago
that observation is correct, john
upvoted 15 times
Stann07
1 year, 5 months ago
dbobspurfpoo, you are right to say that the observation of john is correct.
upvoted 2 times
...
...
...
...
...
gmishra88
Highly Voted 2 years, 7 months ago
Microsoft has obscrure names in documentation and has nothing to do with the azure component itself. "Delegate", "Host component", "Compute instance". How's remembering this from one page they wrote mean anything. We do not call any of them these when we implement the change feed processor
upvoted 14 times
...
vizay
Most Recent 1 week, 2 days ago
🛠 Think of it like this: Imagine you’re watching a door for packages 📦: Source container = The place where packages (data) arrive Lease container = A log of which packages you already saw Delegate = Your job (like moving the package somewhere or processing it) Host = The person doing the work
upvoted 1 times
...
wafa_chaari
3 months, 1 week ago
correct The change feed processor has four main components: The monitored container: The monitored container has the data from which the change feed is generated. Any inserts and updates to the monitored container are reflected in the change feed of the container. The lease container: The lease container acts as state storage and coordinates the processing of the change feed across multiple workers. The lease container can be stored in the same account as the monitored container or in a separate account. The compute instance(host): A compute instance hosts the change feed processor to listen for changes. Depending on the platform, it might be represented by a virtual machine (VM), a Kubernetes pod, an Azure App Service instance, or an actual physical machine. The compute instance has a unique identifier that's called the instance name throughout this article. The delegate: The delegate is the code that defines what you, the developer, want to do with each batch of changes that the change feed processor reads.
upvoted 1 times
...
royalbaby
9 months, 3 weeks ago
Got this Q on 07/07. Went with given answer.
upvoted 1 times
...
Dixavado
1 year, 7 months ago
It was on my exam today (2023-09-26) I went with the examtopics answer - score 850
upvoted 3 times
...
shekhar11
1 year, 7 months ago
Question in my exam 22sept 2023
upvoted 2 times
nikipediaa
1 year, 7 months ago
me too today
upvoted 1 times
...
...
Tarajee
1 year, 8 months ago
On my exam 2023sept
upvoted 2 times
...
kayvg
1 year, 8 months ago
1. Monitored container > You want to track changes of the data you store 2. Lease container > A lease container is responsible for maintaining information about which workers are processing which data from the Monitored Container 3. Host > They represent the worker instances responsible for processing changes from the change feed 4. Delegates > Methods you define to handle actual changes detected by the change feed (so when the change feed receives changes, it invokes delegate methods) The difference between a monitored container and a host is that a host actually distributes work to delegates, while a monitored container tracks changes in data and gives that info to the change feed processor.
upvoted 5 times
...
KrishTeam
1 year, 9 months ago
please provide correct answers
upvoted 1 times
...
unraval
1 year, 9 months ago
The discussions are meant to help prepare for the exam so please try to be helpful
upvoted 2 times
...
unraval
1 year, 9 months ago
People are commenting here to be funny, but can they care to provide an explanation?
upvoted 2 times
...
Chris2349
1 year, 10 months ago
Received this on 15th of June 2023. Went with the given answer.
upvoted 2 times
...
Videira
2 years, 2 months ago
On my exam 2023-02-25
upvoted 3 times
...
mdg3501
2 years, 5 months ago
got this on 2022-12-7
upvoted 3 times
...
TheExamMaster2020
2 years, 5 months ago
Did my exam on 15th November 2022. This question was on it.
upvoted 5 times
BennyJai
2 years, 4 months ago
I also Got same in 5 dec exam.
upvoted 2 times
...
...
herrmutig
3 years, 1 month ago
Answer is correct. *Note that the "Host" Component should be called Compute Instance instead. https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-processor
upvoted 6 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