Azure Service Bus · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services

An order-processing application must send the same order notification independently to an email service, an inventory service, and an analytics servi…

Practice question from Azure Service Bus (AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services), with the correct answer and a step-by-step solution.

easy · MCQ · Q-4D0390

An order-processing application must send the same order notification independently to an email service, an inventory service, and an analytics service. Each service must be able to receive every notification at its own pace. Which Azure Service Bus design should you use?

  1. A.Create one queue and have all services compete for its messages
  2. B.Create a topic with one subscription for each serviceCorrect answer
  3. C.Create one queue for each service and send the message to only one queue
  4. D.Create one subscription and use multiple competing receivers

Solution

A topic supports publish-subscribe messaging. Each subscription receives its own copy of messages, allowing the email, inventory, and analytics services to process them independently. Queue consumers compete for messages, so a message would normally be delivered to only one competing consumer.

More from Azure Service Bus

All of Azure Service Bus

Practise more Connect to and Consume Azure and Third-party Services

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed