ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 128 - AZ-204 discussion

Report
Export

You are developing a solution that will use a multi-partitioned Azure Cosmos DB database. You plan to use the latest Azure Cosmos DB SDK for development.

The solution must meet the following requirements:

Send insert and update operations to an Azure Blob storage account.

Process changes to all partitions immediately.

Allow parallelization of change processing.

You need to process the Azure Cosmos DB operations.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.
Create an Azure App Service API and implement the change feed estimator of the SDK. Scale the API by using multiple Azure App Service instances.
Answers
A.
Create an Azure App Service API and implement the change feed estimator of the SDK. Scale the API by using multiple Azure App Service instances.
B.
Create a background job in an Azure Kubernetes Service and implement the change feed feature of the SDK.
Answers
B.
Create a background job in an Azure Kubernetes Service and implement the change feed feature of the SDK.
C.
Create an Azure Function to use a trigger for Azure Cosmos DB. Configure the trigger to connect to the container.
Answers
C.
Create an Azure Function to use a trigger for Azure Cosmos DB. Configure the trigger to connect to the container.
D.
Create an Azure Function that uses a FeedIterator object that processes the change feed by using the pull model on the container. Use a FeedRange objext to parallelize the processing of the change feed across multiple functions.
Answers
D.
Create an Azure Function that uses a FeedIterator object that processes the change feed by using the pull model on the container. Use a FeedRange objext to parallelize the processing of the change feed across multiple functions.
Suggested answer: C

Explanation:

Azure Functions is the simplest option if you are just getting started using the change feed. Due to its simplicity, it is also the recommended option for most change feed use cases. When you create an Azure Functions trigger for Azure Cosmos DB, you select the container to connect, and the Azure Function gets triggered whenever there is a change in the container. Because Azure Functions uses the change feed processor behind the scenes, it automatically parallelizes change processing across your container's partitions.

Note: You can work with change feed using the following options:

Using change feed with Azure Functions

Using change feed with change feed processor

Reference:

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

asked 02/10/2024
Pilocz Pi
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first