Courseiva

AZ-204 Publish-Subscribe Pattern Practice Question

An application publishes order events that multiple independent subscribers must process. Subscribers may be added later without changing the publisher. Which Azure messaging service should be used? The design must avoid adding custom operational scripts.

⚠ Common exam trap

Many exam-takers confuse a point-to-point queue (Storage Queue) with a publish-subscribe topic (Service Bus), where the requirement for multiple independent subscribers and future extensibility without scripts directly points to the topic's subscription model.

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 topic

Azure Service Bus topics support a publish-subscribe pattern where multiple independent subscribers each receive a copy of every published message. This decouples the publisher from subscribers, allowing new subscribers to be added later without modifying the publisher. The built-in subscription entities eliminate the need for custom operational scripts.

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 Blob Storage lifecycle policy

    Why it's wrong here

    An Azure Blob Storage lifecycle policy is designed to manage the tiering, expiration, and deletion of blobs within a storage account based on rules like age or access patterns. It operates on data at rest and is a data management feature, not a messaging service. It provides no mechanism for real-time event publishing or distributing messages to multiple independent subscribers.

  • Azure Storage Queue

    Why it's wrong here

    Azure Storage Queues provide a simple, durable, and scalable message queueing service primarily for point-to-point communication. Each message is intended to be consumed by a single receiver and then removed from the queue. This service fundamentally lacks the publish-subscribe model required for multiple independent subscribers to simultaneously receive and process the same event.

  • Azure Cache for Redis list only

    Why it's wrong here

    While Azure Cache for Redis supports various data structures, including lists (which can be used for basic queueing) and a built-in Pub/Sub mechanism, using a Redis list alone is not the appropriate managed Azure service for enterprise-grade event distribution to multiple independent subscribers. Redis lists are primarily for ordered collections, and Redis Pub/Sub is generally for transient, in-memory messaging, lacking the durable, guaranteed delivery, and advanced subscription management features of a dedicated messaging broker.

  • Azure Service Bus topic

    Why this is correct

    Azure Service Bus Topics are specifically engineered for enterprise-grade publish-subscribe messaging scenarios, making them ideal for distributing order events to multiple independent applications. Publishers send messages to a topic, and each attached subscription receives a copy of the message, allowing for decoupled processing. This service provides advanced features like message filtering, durable message storage, and dead-lettering, ensuring reliable event distribution to all interested parties.

Go deeper

Related to this question

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.