nerdexam
Microsoft

AZ-204 · Question #185

Drag and Drop Question You develop software solutions for a mobile delivery service. You are developing a mobile app that users can use to order from a restaurant in their area. The app uses the…

The correct answer is Create a single Service Bus Namespace.; Create a single Service Bus topic.; Create a Service Bus subscription for each restaurant for which a driver can receive orders. The correct sequence is: (1) Create a single Service Bus Namespace as the top-level container for all messaging resources, (2) Create a single Service Bus topic to broadcast orders to all available drivers simultaneously using the pub/sub pattern, and (3) Create a Service Bus…

Submitted by salim_om· Mar 30, 2026Develop message-based solutions using Azure Service Bus topics and subscriptions with competing consumers pattern

Question

Drag and Drop Question You develop software solutions for a mobile delivery service. You are developing a mobile app that users can use to order from a restaurant in their area. The app uses the following workflow: 1. A driver selects the restaurants from which they will deliver orders. 2. Orders are sent to all available drivers in an area. 3. Only orders for the selected restaurants will appear for the driver. 4. The first driver to accept an order removes it from the list of available orders. You need to implement an Azure Service Bus solution. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Answer:

Exhibit

AZ-204 question #185 exhibit

Answer Area

Drag items

Create a single Service Bus topic.Create a Service Bus Namespace for each restaurant for which a driver can receive messages.Create a single Service Bus subscription.Create a Service Bus subscription for each restaurant for which a driver can receive orders.Create a single Service Bus Namespace.Create a Service Bus topic for each restaurant for which a driver can receive messages.

Correct arrangement

  • Create a single Service Bus Namespace.
  • Create a single Service Bus topic.
  • Create a Service Bus subscription for each restaurant for which a driver can receive orders.

Explanation

The correct sequence is: (1) Create a single Service Bus Namespace as the top-level container for all messaging resources, (2) Create a single Service Bus topic to broadcast orders to all available drivers simultaneously using the pub/sub pattern, and (3) Create a Service Bus subscription for each restaurant so drivers only receive orders for their selected restaurants - with competing consumers on each subscription ensuring the first driver to accept removes the order. This architecture perfectly maps to the workflow: topics enable fan-out to multiple subscribers, per-restaurant subscriptions act as filters, and Service Bus's competing consumer model guarantees only one driver claims each order.

Topics

#Azure Service Bus#Pub/Sub Messaging#Topics and Subscriptions#Message Filtering

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice