Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesMedium
A software company is building a new microservices application. They need a way to publish domain events (e.g., 'OrderCreated', 'ProductUpdated') efficiently and reliably to multiple interested consumers within the application, as well as potentially to external systems. The solution must support a publish-subscribe model and offer filtering capabilities for consumers. Which Azure service is most appropriate?
- AAzure Service Bus Queues
- BAzure Functions with HTTP triggers
- CAzure Blob Storage events
- DAzure Event Grid
Show answer & explanationAnswer & explanation
Correct answer: D. Azure Event Grid
Azure Event Grid is a highly scalable, fully managed event routing service that enables event-driven architectures. It supports a publish-subscribe model, allowing multiple subscribers to react to events from various sources with advanced filtering capabilities. Service Bus Queues are for point-to-point messaging. Azure Functions are compute, not an event broker. Blob Storage events are a source for Event Grid, not the broker itself.
Why the other options are wrong
- A. Azure Service Bus Queues are designed for point-to-point reliable messaging, not for a publish-subscribe model with advanced filtering for multiple consumers.
- B. Azure Functions with HTTP triggers are compute services that can be triggered by events, but they are not an event brokering or routing service themselves.
- C. Azure Blob Storage events are a type of event source that Event Grid can subscribe to, but Blob Storage itself is not the event broker or routing service.
Azure Event Grid
Azure Event Grid is a fully managed event routing service that enables event-driven architectures by routing events from various sources to different handlers.
- Supports publish-subscribe model.
- Offers advanced filtering for subscribers.
- Delivers events reliably with dead-lettering and retry policies.
- Integrates with numerous Azure services and custom webhooks.
Memory trick: The event grid announces news, and interested parties pick what they want.