Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 33 discussion

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

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.
  • 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.
  • 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 object to parallelize the processing of the change feed across multiple functions.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Zulhin
Highly Voted 3 years, 2 months ago
Answer C & D. "What are two possible ways to achieve this goal?"
upvoted 42 times
Chiboy
2 years, 7 months ago
C is the correct answer. Each answer has two possible ways that in combination, gives the solution. Moreover, because of the requirement to "Process changes to all partitions immediately", D cannot be the answer or part of it since it "processes the change feed by using the pull model on the container"
upvoted 4 times
ProtossOR89144
2 months, 3 weeks ago
D is good - https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/read-change-feed - it says: "However, there are some scenarios where you might want the additional low level control of the pull model. These include: Reading changes from a particular partition key"
upvoted 1 times
...
Baskman
2 years, 7 months ago
Agree with C & D "NOTE: Each correct selection is worth one point."
upvoted 3 times
...
...
...
aradice
Highly Voted 3 years, 3 months ago
c and d ? https://docs.microsoft.com/en-us/azure/cosmos-db/read-change-feed#azure-functions https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-pull-model#using-feedrange-for-parallelization
upvoted 16 times
Jurgen1234
3 years, 3 months ago
I agree
upvoted 3 times
...
...
0cc50bf
Most Recent 1 month, 2 weeks ago
It is not D. It says that it uses the pull model on the *container*, but a change processor should pull from Cosmos, not the storage container. Good answers are B and C.
upvoted 1 times
...
Munwalinwali
2 months, 3 weeks ago
Selected Answer: CD
Answer C & D.
upvoted 1 times
...
carlosfaria82
5 months, 1 week ago
Selected Answer: CD
C: "Because Azure Functions uses the change feed processor behind the scenes, it automatically parallelizes change processing across your container's partitions." D: "You can use the change feed pull model to consume the Azure Cosmos DB change feed at your own pace. Similar to the change feed processor, you can use the change feed pull model to parallelize the processing of changes across multiple change feed consumers."
upvoted 1 times
...
raymond_abcd
8 months, 1 week ago
Answer C and D C you need to implement the lease container in the function for dynamic scaling and works with multiple partitions. See: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-functions. D is also correct as it is described here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/read-change-feed
upvoted 1 times
...
FeriAZ
8 months, 1 week ago
Selected Answer: CD
C. Azure Function with Cosmos DB Trigger Azure Functions can be triggered by changes in Cosmos DB, allowing for immediate processing of inserts and updates. D. Azure Function with FeedIterator and FeedRange for Change Feed This method manually handles the change feed processing, allowing for detailed control over parallelization and processing logic.
upvoted 1 times
...
manopeydakon
8 months, 2 weeks ago
Both options B and D can be used to process Azure Cosmos DB operations efficiently: B. Create a background job in an Azure Kubernetes Service and implement the change feed feature of the SDK.This option involves creating a background job using Azure Kubernetes Service (AKS) and implementing the change feed feature of the Azure Cosmos DB SDK. AKS provides scalability, and you can parallelize the processing by distributing work across multiple pods in the AKS cluster.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 object to parallelize the processing of the change feed across multiple functions. This option involves using Azure Functions with the change feed trigger for Azure Cosmos DB. By using the FeedIterator and FeedRange objects, you can parallelize the processing of the change feed across multiple Azure Functions.
upvoted 1 times
...
lednari
9 months, 2 weeks ago
B and C for me. AKS containers can scale and job just runs in background. Funcs can scale and trigger on cosmos. A is an api so whats it triggering on? D also doesnt mention what it would trigger on
upvoted 1 times
...
Dianahu
1 year, 2 months ago
isn't the change feed estimator only for monitoring? it is the change feed processor who does the work https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-use-change-feed-estimator?tabs=dotnet so it is C&D
upvoted 2 times
...
adilkhan
1 year, 6 months ago
C,D chatGPT
upvoted 2 times
Ciupaz
12 months ago
In my case chatGPT response is A and C.
upvoted 1 times
Ciupaz
10 months, 1 week ago
Bard, instead, returns: A - D
upvoted 1 times
...
...
...
adilkhan
1 year, 7 months ago
CD (36%) D (21%) A (21%) Other ...OMG :D
upvoted 7 times
giuliohome
2 months, 3 weeks ago
It's C and D, you can exclude A because it's sequential but in the question it's required to allow parallelization instead.
upvoted 1 times
...
...
mabdo
1 year, 7 months ago
similar was on 2/23
upvoted 1 times
...
alexein74
1 year, 8 months ago
Selected Answer: CD
I agree with Zulhin.
upvoted 1 times
...
ldenouter
1 year, 8 months ago
Selected Answer: CD
I agree with Zulhin.
upvoted 1 times
...
rotimislaw
1 year, 9 months ago
Selected Answer: AC
A & C - simplicity is your best friend
upvoted 1 times
...
AB1453
1 year, 10 months ago
Selected Answer: AC
A and C
upvoted 1 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 ...