You have an Azure Service Bus.
You need to implement a Service Bus queue that guarantees first-in-first-out (FIFO) delivery of messages.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D. E.D
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrastedTo implement a Service Bus queue that guarantees first-in-first-out (FIFO) delivery of messages, you should enable sessions by selecting option D.
When you enable sessions, the Service Bus guarantees FIFO delivery of messages within a session. A session is a unit of ordering, grouping, and processing of related messages. When messages are sent to a session-enabled queue, Service Bus ensures that messages belonging to the same session are dispatched to a single consumer instance in a serialized order. This guarantees that the messages are processed in the order in which they were sent.
The other options are not correct for enabling FIFO delivery of messages in a Service Bus queue:
A. Enable partitioning: Partitioning is used to distribute message workload across multiple messaging entities, but it does not guarantee FIFO delivery of messages.
B. Enable duplicate detection: Duplicate detection helps to prevent duplication of messages, but it does not guarantee FIFO delivery of messages.
C. Set the Lock Duration setting to 10 seconds: The lock duration is the amount of time a message is locked for processing by a receiver. This setting does not guarantee FIFO delivery of messages.
E. Set the Max Size setting of the queue to 5 GB: The maximum size setting of a queue limits the total size of messages that can be stored in the queue. This setting does not guarantee FIFO delivery of messages.
Therefore, the correct answer is option D, which is to enable sessions.