wasAsked.

What is the difference between Azure Blob, Queue, Table and File storage?

Frequently Asked (All Companies) · Role not specified · technical

Published

Year not specified · Azure

Community answers

Posted by wasAsked editorial collection

An Azure Storage account provides four core data services, each designed for a different type of data. Blob Storage — unstructured objects - Stores files of any type: images, videos, documents, backups, logs, static website assets, data lake files. - Organised into containers; blobs are block blobs (most files), append blobs (logs) or page blobs (VM disks). - Access tiers: Hot, Cool, Cold and Archive to optimise cost; lifecycle policies move data automatically. - Features: versioning, soft delete, immutability policies, SAS tokens for temporary access, static website hosting, CDN integration. - Data Lake Storage Gen2 adds a hierarchical namespace for big data analytics. - Use for: user uploads, media, backups, exports, data lakes. Queue Storage — simple messaging - Stores large numbers of messages (up to 64 KB each) accessed via HTTP or HTTPS. - Used to decouple components: a web app adds a message, and a background worker or Azure Function processes it. - Simple features: visibility timeout (message hidden while being processed), retry via dequeue count, poison handling by the consumer. - Very cheap and simple, but limited: no ordering guarantees, no topics or subscriptions, no sessions or transactions. For enterprise messaging, use Azure Service Bus. - Use for: background jobs, simple work queues (for example image resizing tasks). Table Storage — NoSQL key-attribute store - Stores structured, schemaless entities identified by PartitionKey and RowKey. - Fast lookups by key and cheap storage for large amounts of simple data. - No joins, limited secondary indexing, simple queries. - Use for: logs, user preferences, device metadata, simple lookup data. - Azure Cosmos DB for Table offers the same API with global distribution, automatic indexing and lower latency at higher cost. Azure Files — managed file shares - Fully managed file shares accessible via SMB (and NFS for premium shares) and REST. - Can be mounted by Windows, Linux and macOS machines, VMs and containers like a network drive. - Azure File Sync can cache shares on on-premises Windows servers. - Use for: lift-and-shift applications that expect a file system, shared configuration, shared storage for containers, replacing on-premises file servers. Comparison - Data type: Blob — unstructured files; Queue — messages; Table — structured key-value entities; Files — files in a hierarchical file system. - Access: Blob — REST, SDKs, NFS for some tiers; Queue — REST and SDKs; Table — REST and SDKs (OData); Files — SMB, NFS, REST. - Typical size limits: Blob — very large objects (block blobs up to about 190 TiB); Queue — 64 KB per message; Table — 1 MB per entity; Files — shares up to 100 TiB. Security for all four - Prefer Microsoft Entra ID with managed identities and RBAC roles (for example Storage Blob Data Contributor, Storage Queue Data Contributor) over account keys. - Disable public anonymous access, use private endpoints or firewall rules, and enable encryption (Microsoft-managed or customer-managed keys). - Use SAS tokens with short expiry and minimal permissions when temporary access is needed. Redundancy options apply to the whole account: LRS, ZRS, GRS, GZRS (and read-access variants). Interview summary: "Blob storage holds unstructured files, Queue storage provides simple message queues, Table storage is a cheap NoSQL key-value store, and Azure Files offers managed SMB or NFS file shares. Choose based on the data type and how applications need to access it."

Ravindra Wadile · · 0 likes

Sign in to add your answer

Related interview topics