Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.2.4. Mirroring: Database vs. Metadata

đź’ˇ First Principle: Mirroring replicates external data into Fabric, but what gets replicated depends on the source. Database mirroring copies actual data rows; metadata mirroring copies only the catalog information (table names, schemas). Understanding this distinction is critical for choosing the right approach.

Scenario: Your organization uses Azure SQL Database for operational systems and Databricks for data science. You want both available in Fabric without duplicating data unnecessarily.

Mirroring Types

TypeWhat's ReplicatedUse Case
Database MirroringActual data (CDC-based)Azure SQL, Cosmos DB, Snowflake
Metadata MirroringCatalog information onlyAzure Databricks Unity Catalog

Mirroring Selection

  • Azure Cosmos DB: Database mirroring (replicates documents)
  • Azure SQL Database: Database mirroring (replicates tables)
  • Azure Databricks: Metadata mirroring (replicates catalog, not data)

Database Mirroring: How It Works

Database mirroring uses Change Data Capture (CDC) to continuously replicate changes:

Source Database → CDC captures INSERT/UPDATE/DELETE → Fabric syncs changes → OneLake Delta tables
AspectBehavior
Initial syncFull snapshot of selected tables
Ongoing syncNear real-time CDC replication
Data formatConverted to Delta tables in OneLake
LatencyTypically seconds to minutes
Schema changesPropagated automatically

Metadata Mirroring: How It Works

Metadata mirroring syncs the catalog without copying data:

Databricks Unity Catalog → Fabric syncs table/view definitions → Queries route to Databricks
AspectBehavior
What syncsTable names, schemas, locations
What doesn't syncActual data rows
Query executionRuns against Databricks compute
BenefitUnified catalog without data duplication

When to Use Which

ScenarioMirroring TypeWhy
Need data in Fabric for fast queriesDatabase mirroringData is local
Want unified catalog, data stays in placeMetadata mirroringAvoids duplication
Source is Azure SQL/CosmosDatabase mirroringOnly option available
Source is DatabricksMetadata mirroringOnly option available

⚠️ Exam Trap: Databricks uses metadata mirroring, not database mirroring. The data stays in Databricks storage; only the Unity Catalog metadata is synchronized to Fabric. Questions that mention "mirroring Databricks data" are testing whether you understand this distinction.

⚠️ Common Pitfall: Expecting real-time data with metadata mirroring. Queries still execute against the source system—if Databricks is slow, your queries are slow.

Reflection Question: Your company wants to use data from both Azure Cosmos DB (operational data) and Azure Databricks (ML features). What mirroring type would you use for each?

Alvin Varughese
Written byAlvin Varughese
Founder•15 professional certifications