Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesMedium

A development team is building a new microservices application. They need to implement a mechanism to distribute events from various services to multiple independent consumers in a pub/sub model, ensuring reliable message delivery even if consumers are temporarily offline. Which Azure service should they use?

  1. AAzure Event Grid
  2. BAzure Event Hubs
  3. CAzure Service Bus Topics
  4. DAzure Queue Storage
Show answer & explanation

Correct answer: C. Azure Service Bus Topics

Azure Service Bus Topics provide a pub/sub messaging model with durable subscriptions, allowing multiple independent consumers to receive copies of messages published to the topic, even if they are offline when the message is sent. This ensures reliable delivery and decoupling of publishers and subscribers.

Why the other options are wrong

  • A. Azure Event Grid is an event routing service for reactive programming, not a message broker for durable pub/sub messaging with offline consumer support.
  • B. Azure Event Hubs is designed for high-throughput stream ingestion, not reliable message delivery to multiple independent consumers with durable subscriptions.
  • D. Azure Queue Storage provides simple FIFO queueing and is not suitable for pub/sub scenarios with multiple independent subscribers.

Azure Service Bus Topics

A messaging service that enables publish/subscribe communication, allowing multiple subscribers to receive messages from a single publisher.

  • Supports durable subscriptions for reliable message delivery.
  • Provides filtering capabilities for messages.
  • Enables decoupling of publishers and subscribers.

Memory trick: Many messages, many listeners: Service Bus Topics connect them.

More Connect to and consume Azure services and third-party services questions