AZ-305 practice question 10 of 10
You have an Azure subscription that contains two applications named App1 and App2. App1 is a sales processing application. When a transaction in App1…
Full set: 396 questionsDomain Design infrastructure solutions
The requirement is for multiple, distinct applications to process messages based on specific transaction details. An Azure Service Bus topic utilizes a publish/subscribe (pub/sub) pattern, which is ideal for this one-to-many communication scenario. The sales application (App1) can publish all shipping messages to a single topic. Each consuming application, including App2 and any future applications, can create its own subscription to that topic. Crucially, each subscription can have filter rules based on message properties (e.g., shipping destination, item type). This ensures that each application receives only a copy of the messages relevant to its function, fulfilling the core requirement in a scalable and decoupled manner.
A. one Azure Service Bus queue: A queue follows a competing consumer pattern where a message is processed by only one receiver, which fails the requirement for multiple applications to process messages.
C. one Azure Data Factory pipeline: Azure Data Factory is a data integration and ETL/ELT orchestration service, not a real-time messaging system designed for application decoupling.
D. multiple storage account queues: This approach would require the producer (App1) to know which queue to send a message to, creating tight coupling and making the system difficult to modify when new applications are added. ---
1. Microsoft Documentation | Azure Service Bus | Topics and subscriptions: "In contrast to queues, in which each message is processed by a single consumer, topics and subscriptions provide a one-to-many form of communication, in a publish/subscribe pattern. It's useful for scaling to a large number of recipients." This directly supports the need for multiple applications to receive messages.
2. Microsoft Documentation | Azure Service Bus | Subscription filters and actions: "Subscribers can define which messages they want to receive from a topic. These messages are specified in the form of one or more named subscription rules. Each rule consists of a filter condition that selects particular messages...". This directly addresses the requirement for applications to process messages "based on the specific details of the transactions."
3. Microsoft Documentation | Compare Azure messaging services: In the "Service Bus" section, it recommends using "Topics and subscriptions" for a "publish/subscribe" model. It contrasts this with queues, which are for "point-to-point" communication. This comparison clarifies why a topic is superior to a queue for this scenario.
Question breakdown
Key idea: Service Bus topics with filtered subscriptions deliver a copy of each relevant message to many independent consumers (publish/subscribe).
How to reach the answer
- Today one consumer reads a storage queue, but more applications will be added later.
- Each new application must read the transactions relevant to it, which is a one-to-many requirement.
- Queues use competing consumers, so each message is processed only once.
- A Service Bus topic lets each application have its own subscription with filter rules on message properties.
Each option
Common trap: Choosing a Service Bus queue because it is a richer upgrade from a storage queue, while overlooking that queues are point-to-point.
In practice: Order and shipping systems commonly publish events to a Service Bus topic. Warehouse, billing, and notification services each subscribe with SQL or correlation filters.
Remember: Choose a queue when one consumer should process each message, and a topic when multiple filtered subscribers each need a copy.
Official documentation: Service Bus queues, topics, and subscriptions · Topic filters and actions
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free AZ-305 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AZ-305 practice questions
- Question 1You have five datacenters across North America and Europe. You have an Azure subscription…
- Question 2Note: This section contains one or more sets of questions with the same scenario and prob…
- Question 3Your company has 300 virtual machines hosted in a VMware environment. The virtual machine…
- Question 4Your company plans to deploy various Azure App Service instances that will use Azure SQL …
- Question 9You have an on-premises Microsoft SQL Server 2016 database named DB1. You have an Azure s…
