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?
- A.Create one queue and have all services compete for its messages
- B.Create a topic with one subscription for each serviceCorrect answer
- C.Create one queue for each service and send the message to only one queue
- 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
- A .NET application uses an Azure.Messaging.ServiceBus ServiceBusProcessor with AutoCompleteMessages set to false and the default PeekLock r…
- A billing system sends multiple messages for each customer and sets the same SessionId for all messages belonging to that customer. The app…
- A worker receives a message from an Azure Service Bus queue in PeekLock mode, but the message contains invalid data and cannot be processed…
- An application may retry sending an invoice message because of a transient network failure. The application sets the same MessageId for eac…
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 freeFree to start · No credit card needed