Domain 3 β€” Module 5 of 5 100%
19 of 27 overall
Domain 3: Non-Relational Data on Azure Free ⏱ ~10 min read

Choosing Non-Relational Storage

Azure offers Blob Storage, Files, Table Storage, and Cosmos DB for non-relational data. This decision guide helps you pick the right one.

The non-relational decision framework

Simple explanation

Four services, four different jobs.

Need a warehouse for boxes? Blob Storage. Need a shared filing cabinet? Azure Files. Need a simple phone book? Table Storage. Need a high-tech, global-scale smart warehouse? Cosmos DB.

Picking the right one depends on what your data looks like and how you need to access it.

Decision tree

1. Is the data unstructured files (images, videos, backups, documents)?

  • Yes β†’ Azure Blob Storage

2. Do applications need to mount a file share (like a network drive)?

  • Yes β†’ Azure Files

3. Is it simple key-value data with basic lookups (no complex queries)?

  • Yes, budget-sensitive β†’ Azure Table Storage
  • Yes, needs global distribution or guaranteed performance β†’ Cosmos DB (Table API)

4. Is it flexible JSON documents needing rich queries?

  • Yes β†’ Azure Cosmos DB (NoSQL API)

5. Is it graph data (nodes and relationships)?

  • Yes β†’ Azure Cosmos DB (Gremlin API)

6. Migrating from MongoDB or Cassandra?

  • MongoDB β†’ Cosmos DB (MongoDB API)
  • Cassandra β†’ Cosmos DB (Cassandra API)

Complete comparison

All non-relational Azure storage services compared
FeatureBlob StorageAzure FilesTable StorageCosmos DB
Data typeAny file (binary objects)Files in shared foldersKey-value entitiesDocuments, key-value, graph, column-family
AccessREST API, SDKs, URLsSMB/NFS mountREST API, ODataMultiple APIs (NoSQL, MongoDB, Gremlin...)
SchemaNoneFile systemFlexibleFlexible (depends on API)
Global distributionGRS replicationGRS replicationGRS replicationActive multi-region with writes
Query powerMetadata onlyFile names/pathsPartition + Row keyRich queries, aggregation, joins within collections
CostVery lowLow-MediumVery lowHigher (pay for RU/s throughput)
Best forMedia, backups, data lakesFile shares, lift-and-shiftConfig data, simple lookupsGlobal apps, flexible data, high scale

Scenario practice

ScenarioBest ServiceWhy
Store security camera footage (TB/day)Blob StorageUnstructured binary data, huge volumes, tiered pricing
Replace an on-premises file serverAzure FilesSMB mount, familiar file system access
Store IoT device config (10,000 devices)Table StorageSimple key-value lookups, very cheap
E-commerce product catalogue (global)Cosmos DB (NoSQL API)Flexible JSON documents, global distribution
Social network friend connectionsCosmos DB (Gremlin API)Graph model for relationship traversal
Data lake raw zone for analyticsBlob Storage (+ ADLS Gen2)Foundation for Microsoft Fabric and Databricks
Exam tip: the non-relational scenario pattern

The exam gives you a scenario with data characteristics and asks which service to use. Pattern match:

  • β€œFiles, images, videos, backups” β†’ Blob Storage
  • β€œMount as a drive,” β€œSMB,” β€œfile server replacement” β†’ Azure Files
  • β€œSimple lookups by key,” β€œdevice configuration,” β€œcheap” β†’ Table Storage
  • β€œGlobal distribution,” β€œlow latency,” β€œflexible JSON” β†’ Cosmos DB
  • β€œGraph traversal,” β€œconnected entities” β†’ Cosmos DB (Gremlin)
  • β€œExisting MongoDB/Cassandra app” β†’ Cosmos DB (matching API)

Flashcards

Question

When should you choose Blob Storage over Cosmos DB?

Click or press Enter to reveal answer

Answer

Choose Blob Storage for unstructured files (images, videos, backups, data lake files) that don't need complex querying. Choose Cosmos DB for semi-structured data that needs rich queries, global distribution, or guaranteed latency.

Click to flip back

Question

When should you choose Azure Files over Blob Storage?

Click or press Enter to reveal answer

Answer

When applications need to mount a file share as a network drive (SMB/NFS). Blob Storage is accessed via REST APIs and URLs; Azure Files is accessed like a traditional file server.

Click to flip back

Question

When should you choose Table Storage over Cosmos DB?

Click or press Enter to reveal answer

Answer

When you need simple key-value lookups at the lowest possible cost and don't need global distribution, guaranteed latency, or complex queries. Table Storage is a fraction of the cost of Cosmos DB.

Click to flip back

Knowledge check

Knowledge Check

A hospital needs to store millions of medical images (X-rays, MRIs). Each image is 5-50 MB. They need cheap storage with tiered pricing (recent images accessed frequently, older ones rarely). Which service?

Knowledge Check

A smart home company needs to store configuration settings for 100,000 IoT devices. Each device has a simple key-value pair (device ID β†’ settings JSON). No complex queries needed. Budget is extremely tight. Which service?

You’ve completed Domain 3! πŸŽ‰ You now understand Azure Blob Storage, Files, Table Storage, and Cosmos DB β€” and when to use each.

Next up: Data Ingestion & Processing β€” let’s explore the analytics domain and how data flows into insights.