Microsoft Certified: Azure Developer Associate (AZ-204)Develop for Azure storageMedium

A developer is creating an application that processes orders. When an order is placed, a message needs to be sent to a backend processing service that might experience intermittent unavailability. The messages must be guaranteed to be delivered at least once, and the processing service should be able to retrieve messages in the order they were sent. Which Azure service should the developer use?

  1. AAzure Event Hubs
  2. BAzure Cache for Redis
  3. CAzure Service Bus
  4. DAzure Queue Storage
Show answer & explanation

Correct answer: C. Azure Service Bus

Azure Service Bus is a highly reliable message broker that supports advanced messaging patterns, including guaranteed at-least-once delivery and ordered message processing using sessions or FIFO queues. It's well-suited for scenarios where components might be temporarily offline.

Why the other options are wrong

  • A. Azure Event Hubs is for high-throughput event ingestion and streaming, not for reliable, ordered message delivery to individual consumers in a queue-like fashion.
  • B. Azure Cache for Redis is an in-memory data store for caching, not for reliable message queuing.
  • D. Azure Queue Storage provides simple, durable message queuing but does not inherently guarantee ordered delivery without additional application logic, and its features are less robust for complex enterprise messaging scenarios compared to Service Bus.

Azure Service Bus

Azure Service Bus is a fully managed enterprise integration message broker. It can decouple applications and services, offering features like reliable asynchronous message delivery, message sessions for ordered processing, dead-lettering, and publish/subscribe capabilities.

  • Enterprise messaging as a service.
  • Supports both queues and topics.
  • Guaranteed message delivery (at-least-once).
  • Message sessions enable ordered processing.

Memory trick: Service Bus Secures Sequential Sending.

More Develop for Azure storage questions