AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 120


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 Answer
Correct 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

Discussion

17 comments
Sign in to comment
MattXu
Jun 30, 2021

The given answer is correct.

TakumaK
Jul 4, 2021

You are right. The given answer is correct.

john4p
Dec 7, 2021

And your given answer, that MattXu is right, is also correct.

dbobspurfpoo
Dec 13, 2021

that observation is correct, john

Stann07
Nov 23, 2023

dbobspurfpoo, you are right to say that the observation of john is correct.

gmishra88
Oct 5, 2022

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

oescm
Feb 7, 2022

Got this one 02/2022. Went with the given answer

herrmutig
Apr 6, 2022

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

TheExamMaster2020
Nov 15, 2022

Did my exam on 15th November 2022. This question was on it.

BennyJai
Dec 13, 2022

I also Got same in 5 dec exam.

kayvg
Aug 14, 2023

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.

mdg3501
Dec 7, 2022

got this on 2022-12-7

Videira
Feb 28, 2023

On my exam 2023-02-25

Dixavado
Sep 27, 2023

It was on my exam today (2023-09-26) I went with the examtopics answer - score 850

petitbilly
Mar 9, 2022

Got it in exam 03/22

Chris2349
Jun 15, 2023

Received this on 15th of June 2023. Went with the given answer.

unraval
Jul 24, 2023

People are commenting here to be funny, but can they care to provide an explanation?

unraval
Jul 24, 2023

The discussions are meant to help prepare for the exam so please try to be helpful

Tarajee
Sep 11, 2023

On my exam 2023sept

shekhar11
Sep 22, 2023

Question in my exam 22sept 2023

nikipediaa
Sep 26, 2023

me too today

KrishTeam
Aug 2, 2023

please provide correct answers

royalbaby
Jul 17, 2024

Got this Q on 07/07. Went with given answer.