Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing a background service in C# that must react to inserts and updates in an Azure Cosmos DB container named Orders. The service must guarantee that each document is processed exactly once, even after the process restarts, and it must automatically redistribute the workload when you scale the service out to multiple instances. Which implementation should you use to meet both requirements?
Use GetChangeFeedIterator starting from the beginning of time and keep the continuation token in application memory.
Create a ChangeFeedProcessor instance, assign a separate lease container, and register the processor to handle changes.
Add a SQL API pre-trigger that calls an Azure Function on every insert and update to Orders.
Enable analytical store on the Orders container and periodically query items where the _ts value is greater than the last processed timestamp.
The Azure Cosmos DB Change Feed Processor library creates a dedicated lease container that stores checkpoints for each logical partition. Because the processor persists its state in the lease container, it can resume from the exact position where it stopped, ensuring at-least-once (effectively exactly-once) processing across restarts. The same lease mechanism also handles automatic partition ownership and load balancing among multiple concurrent hosts, so the workload is evenly distributed without extra code. Reading the change feed manually with an iterator would require custom persistence logic, while analytical store queries or SQL triggers do not provide ordered, scalable change-feed semantics.
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 a lease container in Azure Cosmos DB Change Feed Processor?
Open an interactive chat with Bash
How does Change Feed ensure scalability and guaranteed processing?
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 .