Microsoft Azure Developer Associate AZ-204 Practice Question
Your company processes financial transactions. The microservice publishes messages to an Azure Service Bus queue. The processing service must guarantee that all messages related to the same account are handled by exactly one worker at a time and in the order they were sent. At the same time, the system must scale so that different accounts can be processed in parallel by multiple workers. Which configuration should you use?
Enable partitioning on the queue and set the partition key to the account number for each message.
Configure a dead-letter queue and set MaxDeliveryCount to 1.
Enable sessions on the queue and assign the account number to the SessionId property of each message.
Enable duplicate detection and set the account number as the MessageId property for each message.
Enabling sessions on a Service Bus queue sets the RequiresSession property on the entity. When messages are sent, assigning the same value to the SessionId property groups those messages into a single session. Service Bus delivers only one session at a time to a consumer, so a single worker processes all messages for that session sequentially, preserving order and preventing concurrent handling of the same account. Because different SessionId values can be processed on different connections, other workers can simultaneously handle messages for other accounts, providing horizontal scalability. Duplicate detection relates only to eliminating repeated messages and does not enforce ordering. Partitioned queues distribute messages across multiple partitions and make ordering nondeterministic across partitions. Dead-letter queues are for undeliverable messages and do not influence ordering or concurrency.
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 an Azure Service Bus queue do?
Open an interactive chat with Bash
How does duplicate detection work in Azure Service Bus queues, and why is it not suitable for message ordering?
Open an interactive chat with Bash
Why are partitioned queues in Azure Service Bus not ideal for preserving message order?
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 .