AZ-204 · Question #356
Suppose you're sending a message with Azure Service Bus and you want multiple components to receive it. Which Azure Service Bus exchange feature should you use?
The correct answer is B. Topic. To enable multiple components to receive the same message from Azure Service Bus, a Topic should be used.
Question
Options
- AQueue
- BTopic
- CRelay
How the community answered
(25 responses)- A4% (1)
- B84% (21)
- C12% (3)
Why each option
To enable multiple components to receive the same message from Azure Service Bus, a Topic should be used.
An Azure Service Bus Queue implements a point-to-point messaging pattern where messages are typically processed by a single consumer, not multiple.
An Azure Service Bus Topic implements a publish/subscribe messaging pattern where a message published to the topic can be received by multiple independent subscribers. Each subscription acts as a virtual queue, ensuring that every subscriber gets a copy of the message, fulfilling the requirement for multiple components to receive it.
Azure Relay is a service that enables secure exposure of services running in your corporate network to the public cloud without opening firewall ports, and is not a messaging exchange feature.
Concept tested: Azure Service Bus messaging patterns
Source: https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions
Topics
Community Discussion
No community discussion yet for this question.