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: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Zulhin
Highly Voted 3 years, 10 months ago
Answer C & D. "What are two possible ways to achieve this goal?"
upvoted 43 times
Chiboy
3 years, 2 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
10 months 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
3 years, 2 months ago
Agree with C & D "NOTE: Each correct selection is worth one point."
upvoted 3 times
...
...
...
aradice
Highly Voted 3 years, 10 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, 10 months ago
I agree
upvoted 3 times
...
...
Vichu_1607
Most Recent 6 months ago
Selected Answer: CD
Azure Function with Cosmos DB Trigger: Automatically handles partitioning and parallelization, making it easier to process changes in real-time. Azure Function with FeedIterator and FeedRange: Provides manual control over change feed processing and allows for efficient parallelization.
upvoted 1 times
...
obllew
7 months ago
FeedIterator is meant to be implemented in a persistent process; it runs indefinitely. A serverless environment like Functions isn't really appropriate. It should be running e.g. as a daemon that auto starts and restarts on failure etc. Which makes me question if D.
upvoted 1 times
...
0cc50bf
8 months, 3 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
10 months ago
Selected Answer: CD
Answer C & D.
upvoted 1 times
...
carlosfaria82
1 year 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
1 year, 3 months 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
1 year, 3 months 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
1 year, 3 months 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
1 year, 4 months 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, 9 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
2 years, 1 month ago
C,D chatGPT
upvoted 2 times
Ciupaz
1 year, 7 months ago
In my case chatGPT response is A and C.
upvoted 1 times
Ciupaz
1 year, 5 months ago
Bard, instead, returns: A - D
upvoted 1 times
Mattt
6 months, 1 week ago
My B,C
upvoted 1 times
...
...
...
...
adilkhan
2 years, 2 months ago
CD (36%) D (21%) A (21%) Other ...OMG :D
upvoted 7 times
giuliohome
10 months 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
2 years, 2 months ago
similar was on 2/23
upvoted 1 times
...
alexein74
2 years, 3 months ago
Selected Answer: CD
I agree with Zulhin.
upvoted 1 times
...
ldenouter
2 years, 3 months ago
Selected Answer: CD
I agree with Zulhin.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago