Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing an Azure Function that uses a Service Bus trigger to process order messages. The function app can scale out to multiple instances. All messages that share the same OrderId must be handled by the same instance and in the exact order they were sent. Which configuration should you use?
Enable sessions on the Service Bus queue and configure the Function trigger with sessionEnabled set to true.
Enable duplicate detection on the queue by setting requiresDuplicateDetection to true.
Enable partitioning on the queue to distribute load across multiple message brokers.
Use Peek-Lock receive mode and set maxConcurrentCalls to 1 in host.json.
Service Bus sessions bind all messages that carry the same SessionId to a single, exclusive message lock, ensuring they are delivered to only one consumer and in the order they were enqueued. Enabling sessions on the queue and turning on session processing in the Function trigger therefore satisfies both requirements. Duplicate detection only eliminates repeated messages, partitioning spreads messages across multiple brokers (which can break ordering), and setting Peek-Lock with a single concurrent call limits throughput without guaranteeing ordering across scaled-out instances.
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 does enabling sessions on a Service Bus queue do?
Open an interactive chat with Bash
What is the difference between Service Bus sessions and duplicate detection?
Open an interactive chat with Bash
How does setting maxConcurrentCalls to 1 affect message processing in a Service Bus queue?
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 .