Azure Queue Storage Interview Questions
Published on

Azure Queue Storage Interview Questions


What is 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. A queue may contain millions of messages, up to the total capacity limit of a storage account. Queues are commonly used to create a backlog of work to process asynchronously.

Single queue operations are atomic.

What is the maximum size of the message?

64 KB

Does Azure Queue Storage support FIFO?

Azure Queue Storage does not have support for FIFO. On the other hand, Azure Service Bus is the complete ESB offer from Azure that comes with the solid backing for FIFO.

What is Azure Service Bus Queue?

Microsoft Azure Service Bus is a fully managed enterprise message broker with message queues and publish-subscribe topics. Service Bus is used to decouple applications and services from each other, providing the following benefits: Load-balancing work across competing workers.

What is the dead-letter queue?

The dead-letter queue (or undelivered-message queue) sends messages if they cannot be routed to their correct destination.

Does Azure Queue Storage support a dead-letter queue?

No, but Azure Service Bus Queue supports.

What is the default TTL (time-to-live) for messages?

7 days

How do we set a message to non-expiring TTL?

TTL of -1

Why do we need a service like Azure Queue Storage?

Say we have a few Web App instances which are interacting with the database. But our database is unable to process the requests in run time. Then we can make all requests to be sent to the queue, and then we can have Azure functions to process the queue message one at a time or with added parallelism.

What are the Role-Based Access Controls for Azure Storage Queue?

  • Contributor
  • Reader
  • Message Processor
  • Message Sender

Does Azure queue support Transactions?

No, it doesn’t support.