Microsoft
AZ-204 · Question #622
You have an Azure Service Bus namespace with a partitioned queue named queue1. You plan to send a large number of messages through queue1 over the next few weeks. The order of messages will be…
The correct answer is D. Leave the partition key value as null. https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-partitioning https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-availability-and-consistency
Submitted by jordan8· Mar 30, 2026Connect to and consume Azure services and third-party services
Question
You have an Azure Service Bus namespace with a partitioned queue named queue1. You plan to send a large number of messages through queue1 over the next few weeks. The order of messages will be random. You must minimize the possibility of message transmission interruption by transient failures of individual partitions. You need to use the optimal configuration of the partition key in the messages. Which configuration should you use?
Options
- ASet the partition key of messages to the message ID value.
- BEnable sessions. Set the partition key of messages to the session ID value.
- CEnable sessions. Ensure that the partition key is different from the session ID value.
- DLeave the partition key value as null.
How the community answered
(34 responses)- A3% (1)
- B6% (2)
- C15% (5)
- D76% (26)
Explanation
https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-partitioning https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-availability-and-consistency
Topics
#Service Bus#partitioned queue#partition key#message ordering
Community Discussion
No community discussion yet for this question.