Exam AZ-204 All QuestionsBrowse all questions from this 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:

    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
MattXu

The given answer is correct.

TakumaK

You are right. The given answer is correct.

john4p

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

dbobspurfpoo

that observation is correct, john

Stann07

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

gmishra88

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

TheExamMaster2020

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

BennyJai

I also Got same in 5 dec exam.

herrmutig

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

oescm

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

kayvg

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.

Dixavado

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

Videira

On my exam 2023-02-25

mdg3501

got this on 2022-12-7

shekhar11

Question in my exam 22sept 2023

nikipediaa

me too today

Tarajee

On my exam 2023sept

unraval

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

unraval

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

Chris2349

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

petitbilly

Got it in exam 03/22

royalbaby

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

KrishTeam

please provide correct answers