Microsoft Azure Developer Associate AZ-204 Practice Question
Your .NET worker service runs in AKS and must process every insert or update in an Azure Cosmos DB SQL API container. The solution must distribute load across replicas, checkpoint progress to avoid duplicate processing, and optionally start from the beginning of the change feed. Azure Functions are not permitted. Which SDK feature should you use?
Build a ChangeFeedProcessor by calling container.GetChangeFeedProcessorBuilder and pointing it to a dedicated leases container.
Create an Azure Cosmos DB trigger in an Azure Functions app with the startFromBeginning setting enabled.
Poll the change feed by using container.GetChangeFeedIterator in manual mode and persist continuation tokens yourself.
Enable Azure Cosmos DB integration with Azure Event Grid and process the emitted events in the worker service.
The Change Feed Processor library (invoked through container.GetChangeFeedProcessorBuilder in the Azure Cosmos DB .NET SDK) automatically partitions work across multiple instances by using a leases container, writes checkpoints so that processing resumes without duplication, and can be configured to start reading from the beginning of the feed. The Azure Functions trigger is ruled out by the stated restriction. Reading the change feed with GetChangeFeedIterator would require you to implement your own partition distribution and checkpoint logic. Event Grid currently exposes only account-level control-plane events for Cosmos DB, so it does not deliver per-item change notifications.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Azure Cosmos DB Change Feed?
Open an interactive chat with Bash
What is the purpose of the leases container in the Change Feed Processor?
Open an interactive chat with Bash
Why is manual polling with GetChangeFeedIterator less ideal for this scenario?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .