Study Azure AZ-204 Event Grid and Hubs: key concepts, common traps, and exam decision cues.
This lesson is about not confusing Azure’s two major event-based patterns. Microsoft expects you to separate reactive event routing from large-scale event ingestion and streaming. If you read the stem too quickly, both can look like “event-driven architecture,” but they solve very different problems.
Use this lesson to answer one question first: is the system mainly reacting to events, or is it mainly ingesting and retaining a stream for consumers?
| If the stem is really about… | Strongest first |
|---|---|
| resource changes or app events triggering handlers | Azure Event Grid |
| telemetry or event stream ingestion at scale | Azure Event Hubs |
| commands, workflows, retries, sessions, or dead-letter handling | Azure Service Bus |
| simple queued work with basic queue semantics | Azure Queue Storage |
| If the question emphasizes… | Think first | Why this fits |
|---|---|---|
| notification that something changed and multiple handlers may react | Event Grid | It is the reactive routing lane. |
| very high-throughput event ingestion and downstream stream readers | Event Hubs | It is the ingestion and streaming lane. |
| buffering routed events before consumers process them | Event Grid to Event Hubs | Event Grid can route to Event Hubs when processing must decouple from the event source pace. |
| replay, partitions, or consumer processing at scale | Event Hubs | Those are stream-ingestion clues, not basic routing clues. |
flowchart LR
A["Event happens"] --> B{"What is the real need?"}
B -->|Route to handlers when something changed| C["Event Grid"]
B -->|Ingest large streams for downstream consumers| D["Event Hubs"]
C --> E["Functions, Logic Apps, webhooks, queues, topics, Event Hubs"]
D --> F["Partitions, consumer groups, retained event stream"]
| Trap | Better reading |
|---|---|
| “It says event-driven, so Event Hubs is always right.” | Event-driven could mean simple reactive routing, which is often Event Grid. |
| “It says publish and subscribe, so it must be Service Bus.” | The exam often uses Event Grid for event routing and Service Bus for durable business messaging. |
| “Event Grid replaces Event Hubs.” | Event Grid can route to Event Hubs, but they solve different problems. |
| “Need to notify handlers about Blob changes, so use Event Hubs first.” | Resource-change notification is a strong Event Grid signal. |
A platform receives telemetry from many devices and must let several analytics consumers read the event stream independently. At the same time, some resource-change notifications should trigger near-real-time handlers. The strongest answer usually separates the lanes: Event Hubs for large-scale ingestion and independent consumers, and Event Grid for reactive routing when something changed.