Courseiva
Question 84 of 881

AZ-204 Practice Question: Connect to and consume Azure services and third-party services

You are developing a microservices application that needs to send messages between services asynchronously. Which Azure service should you use to decouple the components and ensure reliable message delivery?

⚠ Common exam trap

The trap is choosing Azure Queue Storage for its simplicity and cost when the requirements for 'microservices application' and 'reliable message delivery' often imply a need for the more advanced features and robust guarantees provided by Azure Service Bus, such as dead-lettering, message sessions, and transactional capabilities.

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

Azure Service Bus is a fully managed enterprise message broker that provides advanced features crucial for robust microservices architectures, such as message sessions for guaranteed ordering (FIFO), dead-lettering for error handling, duplicate detection, and transactional processing. These features enhance reliability and manageability beyond the basic at-least-once delivery offered by Azure Queue Storage, making it a more comprehensive solution for decoupling components and ensuring reliable message delivery in complex microservices applications.

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 Cosmos DB

    Why it's wrong here

    Azure Cosmos DB is a globally distributed, multi-model database service designed for storing and querying data with low latency and high availability. It is fundamentally a data persistence layer, not a messaging queue or broker. While it could technically be used to store messages, it lacks the native queuing semantics like message visibility timeouts, automatic deletion upon processing, and efficient consumer polling mechanisms inherent in dedicated messaging services, making it an unsuitable and inefficient choice for asynchronous microservice decoupling.

  • Azure Service Bus

    Why this is correct

    Azure Service Bus is an enterprise-grade message broker offering advanced features like message sessions, topics for publish/subscribe patterns, transactions, and dead-lettering. While excellent for complex integration scenarios requiring guaranteed message delivery and sophisticated routing, it introduces more overhead and cost than necessary for simple asynchronous decoupling between microservices. For basic point-to-point message queuing, its extensive feature set is often overkill, making it a less optimal choice when simplicity is paramount.

  • Azure Queue Storage

    Why it's wrong here

    Azure Queue Storage provides a simple, highly scalable, and cost-effective cloud messaging service for large volumes of messages. It is specifically designed for asynchronous message passing, enabling microservices to communicate without direct dependency, thus achieving effective decoupling. Messages are stored in a queue and retrieved by a single consumer, making it ideal for basic task distribution, work item queues, and simple asynchronous workflows where message order is not strictly guaranteed across all messages but individual message processing is robust.

  • Azure Event Hubs

    Why it's wrong here

    Azure Event Hubs is a highly scalable data streaming platform and event ingestion service optimized for capturing, retaining, and processing millions of events per second. It is designed for scenarios involving telemetry, log aggregation, and real-time analytics where multiple consumers might read the same stream of events. Unlike a traditional queue, Event Hubs does not remove messages upon consumption; instead, it retains them for a configurable period, making it unsuitable for simple task-based decoupling where messages are processed once and then logically removed.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.