Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing an order-processing application that publishes messages to an Azure Service Bus queue. Network interruptions can occasionally cause the sender to retry the same message. The consumer must process each order exactly once even if duplicates are sent within 10 minutes. What should you configure on the queue?
Require sessions and set the session idle timeout to 10 minutes.
Increase the queue's lock duration to 10 minutes.
Set the queue's MaxDeliveryCount property to 1 and enable dead-lettering on expiration.
Enable duplicate detection and set the duplicate detection history window to 10 minutes.
Azure Service Bus can automatically discard messages that have the same MessageId as one that was previously accepted during a specified time interval. Enabling duplicate detection and setting a 10-minute duplicate detection history window satisfies the requirement because the broker will remove any retries that arrive within that window, ensuring the order is processed only once. Sessions provide ordered, state-full processing but do not eliminate duplicates. Setting MaxDeliveryCount to 1 limits how many times a single message is delivered after a processing failure; it does not address multiple identical messages with different identifiers. Increasing the lock duration only gives the consumer more time to finish processing a single delivery and does not prevent duplicate messages from being received.
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 Azure Service Bus duplicate detection?
Open an interactive chat with Bash
What is the significance of the duplicate detection history window in Azure Service Bus?
Open an interactive chat with Bash
How does Azure Service Bus handle duplicate messages differently from message retries?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
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 .