Microsoft Azure Developer Associate AZ-204 Practice Question
A container named Transactions already contains several years of data. A background .NET service must forward only new inserts and updates to Azure Service Bus. The solution must 1) ignore existing items, 2) resume from the last processed change after restarts, and 3) allow multiple service instances without duplicate processing. Which implementation meets the requirements?
Configure a 1-second TTL on the container and process deleted documents from the change feed.
Use the Azure Cosmos DB Change Feed Processor SDK, set ChangeFeedStartFrom.Now, and store leases in a dedicated lease container.
Create a change-feed iterator with ChangeFeedStartFrom.Beginning and keep continuation tokens in memory.
Enable full-fidelity change feed mode and poll the container every minute for the latest _lsn values.
The Azure Cosmos DB Change Feed Processor library automatically distributes change-feed ranges by using leases, guaranteeing at-least-once processing without duplicates across scaled-out workers. It persists its position in a separate lease container, so after a restart it continues from the last saved checkpoint. When you keep the default StartFromBeginning value (false) or explicitly set ChangeFeedStartFrom.Now, the processor begins reading only future changes, so historic items are ignored. The other options either re-read existing data, rely on manual and volatile token tracking, or misuse TTL/deletion semantics, and therefore cannot satisfy all three requirements.
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 does the ChangeFeedStartFrom.Now setting do?
Open an interactive chat with Bash
What is a lease container and why is it important?
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 .