Microsoft Certified: Azure Developer Associate (AZ-204)Develop for Azure storageEasy
A developer is implementing a feature that requires a temporary, shared storage for small, structured messages that need to be processed asynchronously by multiple worker roles. The messages should be simple text and not exceed 64 KB in size. The solution needs to be highly available and durable, but the order of processing is not strictly critical. Which Azure storage service is the most appropriate and cost-effective for this scenario?
- AAzure Service Bus Queues
- BAzure Event Hubs
- CAzure Cosmos DB
- DAzure Queue Storage
Show answer & explanationAnswer & explanation
Correct answer: D. Azure Queue Storage
Azure Queue Storage is a simple, highly scalable, and durable message queuing service ideal for storing large numbers of small, text-based messages for asynchronous processing. It's cost-effective for basic message queuing where strict ordering or advanced enterprise messaging features are not required.
Why the other options are wrong
- A. Azure Service Bus Queues offer more advanced features like message sessions, transactions, and dead-lettering, which are overkill and more expensive if only basic queuing is needed and strict order is not critical.
- B. Azure Event Hubs is designed for high-throughput event ingestion and streaming, not for durable, individual message queues for worker roles.
- C. Azure Cosmos DB is a NoSQL database, not designed for message queuing, and would be significantly more expensive and complex for this purpose.
Azure Queue Storage
Azure Queue Storage is a service for storing large numbers of messages. You access messages from anywhere in the world via authenticated calls using HTTP or HTTPS. A queue message can be up to 64 KB in size, and a queue can contain millions of messages, up to the total capacity limit of a storage account.
- Simple, scalable, durable message queuing.
- Messages up to 64 KB.
- Accessed via REST API (HTTP/HTTPS).
- Ideal for decoupling application components and asynchronous processing.
Memory trick: Queue for Quick, Simple Messages.