Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesHard
A company is migrating an existing on-premises application that sends messages to MSMQ (Microsoft Message Queuing) to Azure. The new solution requires a cloud-based messaging service that supports transactional send/receive operations across multiple operations to ensure atomicity and reliable delivery. Which Azure service should be used?
- AAzure Service Bus
- BAzure Event Grid
- CAzure Queue Storage
- DAzure Event Hubs
Show answer & explanationAnswer & explanation
Correct answer: A. Azure Service Bus
Azure Service Bus is a robust enterprise messaging service that explicitly supports atomic transactional operations for sending and receiving messages. This capability is crucial for ensuring atomicity across multiple operations, a key requirement for migrating from systems like MSMQ where transactional guarantees are important.
Why the other options are wrong
- B. Azure Event Grid is an event routing service for reactive architectures and does not provide transactional messaging guarantees.
- C. Azure Queue Storage provides simple, durable message queues but does not support transactional send/receive operations across multiple messages or operations.
- D. Azure Event Hubs is a big data streaming platform for high-throughput event ingestion and does not provide transactional messaging capabilities.
Azure Service Bus Transactions
A feature in Azure Service Bus that allows you to group multiple send and receive operations into an atomic unit, ensuring that all operations succeed or all fail together.
- Guarantees atomicity for a sequence of operations.
- Crucial for reliable messaging scenarios where data consistency is paramount.
- Supports sending to queues/topics and receiving from queues/subscriptions within a single transaction.
Memory trick: Service Bus is the 'banker' of messages, ensuring all transactions are atomic.