Connect to and consume Azure services and third-party services →mediumMultiple SelectObjective-mapped
AZ-204 Practice Question: Connect to and consume Azure services and third-party services
Which TWO Azure services can be used to implement a pub/sub messaging pattern?
⚠ Common exam trap
Many candidates confuse Azure Event Hubs (a streaming ingestion service) with a pub/sub broker, but Event Hubs uses consumer groups for load-balanced consumption, not independent subscriptions, making it unsuitable for traditional pub/sub patterns.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Azure Service Bus Topics
Azure Service Bus Topics supports a publish/subscribe pattern through its topic and subscription model. Publishers send messages to a topic, and multiple subscriptions can independently receive copies of each message, enabling fan-out delivery to multiple consumers. This is the core pub/sub mechanism in Azure Service Bus.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Azure Service Bus Topics
Why this is correct
Azure Service Bus Topics enable a pub/sub pattern through topic subscriptions, where each subscriber receives its own copy of every message sent to the topic, satisfying the requirement for one-to-many asynchronous decoupling. This contrasts with queues, which implement point-to-point messaging, making Topics the correct choice for broadcast-style distribution.
- ✗
Azure Blob Storage
Why it's wrong here
Blob Storage is for storage, not messaging.
- ✗
Azure Event Hubs
Why it's wrong here
Event Hubs is for event streaming; it can be used for pub/sub but it's not the primary pattern.
- ✗
Azure Queue Storage
Why it's wrong here
Queue Storage is for point-to-point messaging, not pub/sub.
- ✓
Azure Event Grid
Why this is correct
Event Grid supports pub/sub with event subscriptions.
Go deeper
Related to this question
Learn chapter
Azure Functions Development
Key term
Azure Service Bus
Azure Service Bus is a cloud-based message broker that allows applications, services, and devices to send and receive messages reliably, even when they are not all running at the same time.
Key term
Azure Relay
Azure Relay is a cloud service that securely exposes on-premises web services to the public internet or other cloud applications without opening firewall ports.
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.