Implementing FIFO Delivery of Messages in Azure Service Bus - AZ-303 Exam Question Answer | Microsoft

How to Implement First-In-First-Out (FIFO) Delivery in Azure Service Bus | AZ-303 Exam

Question

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?

Answers

Explanations

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-contrasted

The correct answer to this question is D. Enable sessions.

Explanation:

Azure Service Bus is a messaging service provided by Microsoft Azure that enables reliable communication between different applications and services. It allows asynchronous communication between various applications, and messages can be sent between them even if they are not running at the same time.

When implementing a Service Bus queue that requires FIFO delivery, the messages must be processed in the order in which they were received. This requires the use of sessions, which allows a message sequence to be established and ensures that messages are processed in the correct order.

Here are some details about the other options:

A. Enable partitioning: This option allows a Service Bus queue to be split into smaller partitions for scalability purposes. However, it does not guarantee FIFO delivery.

B. Enable duplicate detection: This option ensures that duplicate messages are not processed by the Service Bus queue. However, it does not guarantee FIFO delivery.

C. Set the Lock Duration setting to 10 seconds: This option sets the time period during which a message is locked and unavailable for processing. However, it does not guarantee FIFO delivery.

D. Enable sessions: This option establishes a sequence of related messages that must be processed in the order in which they were received. It guarantees FIFO delivery.

E. Set the Max Size setting of the queue to 5 GB: This option sets the maximum size of the Service Bus queue. However, it does not guarantee FIFO delivery.

In summary, to implement a Service Bus queue that guarantees FIFO delivery of messages, you should enable sessions.