Question 59 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 59 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

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:

Components Answer Area

Host Requirement Component
Delegate Store the data from which the change feed is

generated.
Lease container Coordinate processing of the change feed le

across multiple workers.

Monitored container

Use the change feed processor to listen for
changes.

Handle each batch of changes.

Explanations

Components

ed

Answer Area
Requirement

Store the data from which the change feed is
generated.

Coordinate processing of the change feed
across multiple workers.

Use the change feed processor to listen for
changes.

Handle each batch of changes.

Component

Monitored container

Lease container

Host

Delegate

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.

https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-processor