Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesEasy
A company is developing a new microservices application. They need to implement a solution that allows multiple independent services to asynchronously process the same event without knowledge of each other. The solution must ensure reliable delivery and support complex routing based on event content. Which Azure service should they use?
- AAzure Event Grid
- BAzure Queue Storage
- CAzure Event Hubs
- DAzure Service Bus
Show answer & explanationAnswer & explanation
Correct answer: A. Azure Event Grid
Azure Event Grid is designed for event-driven architectures, enabling multiple subscribers to react to events published by various sources. It supports content-based filtering and reliable delivery to registered endpoints, making it ideal for decoupled microservices processing the same event.
Why the other options are wrong
- B. Azure Queue Storage is primarily for simple message queuing between a single producer and consumer, not for fan-out scenarios.
- C. Azure Event Hubs is optimized for high-throughput data streaming and ingestion, not for event distribution to multiple independent subscribers.
- D. Azure Service Bus is a robust messaging service, but Event Grid is more specialized for event distribution and fan-out patterns.
Azure Event Grid
A fully managed event routing service that enables applications to react to events from Azure services and custom sources in near real-time.
- Supports event-driven architectures.
- Enables fan-out to multiple subscribers.
- Offers content-based filtering and reliable delivery.
Memory trick: Event Grid is like a smart post office for events, delivering to many.