(+351) 21 24 10006  ·  info@bconcepts.pt
Carnaxide, Lisbon

DP-700: how to implement table snapshots and versioning in Fabric

João Barros 30 de November de 2026 4 min read

I will teach how to implement table snapshots and versioning in Microsoft Fabric (OneLake / Lakehouse) — a useful capability to recover data, support auditing and build reproducible pipelines. This technique is relevant to the DP-700 exam because it demonstrates knowledge of data management and operations practices in analytics solutions.

What you need to know

Table versioning and snapshots mean keeping immutable copies of data at a point in time. In Fabric, this supports: data recovery after errors, historical comparisons, and pipelines that use consistent data. There are two common approaches:

  • Periodic snapshots: export or copy the table to a location/partition with a timestamp.
  • Transactional versioning: use formats that support change history (for example Delta) and version metadata.

Simple example: in a sales table, create a daily snapshot that contains all rows in a directory named by date. Alternatively, use Delta Lake (OneLake/Delta in Fabric) to keep versions and allow time travel to a previous version.

How it works (practical step-by-step)

I will show two practical approaches: Copy snapshot and Versioning with Delta (Time Travel). Examples assume you work in a Fabric Workspace with permissions to read/write in a Lakehouse.

1) Copy snapshot (easy, portable)

# Pseudocode / T-SQL or Spark SQL commands in a Fabric Notebook
-- Create snapshots directory (e.g.: /oneLake/ProjecX/snapshots/sales/)
-- Export/place data with YYYYMMDD timestamp
CREATE TABLE IF NOT EXISTS snapshots.sales_20261130 AS
SELECT * FROM lakehouse.sales;

-- Or using COPY/INSERT to CSV/Parquet
COPY INTO '/oneLake/ProjectX/snapshots/sales/20261130/sales.parquet'
FROM (SELECT * FROM lakehouse.sales);

Advantages: simple, easy to understand; Disadvantages: uses more space, not efficient for large volumes without incremental compaction.

2) Versioning with Delta (preferred for production)

# Spark SQL example in a Fabric Notebook
-- Create Delta table (if it does not exist yet)
CREATE TABLE IF NOT EXISTS lakehouse.sales_delta
USING DELTA
LOCATION '/oneLake/ProjectX/delta/sales';

-- Write data (append/merge) preserving transactions
MERGE INTO lakehouse.sales_delta AS target
USING staging.new_sales AS source
ON target.order_id = source.order_id
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT *;

-- Query versions (time travel)
SELECT * FROM table_delta_version('lakehouse.sales_delta', 5); -- version 5
-- Or using timestamp
SELECT * FROM lakehouse.sales_delta VERSION AS OF 2026;

Note: the exact commands for "time travel" depend on experience in Fabric; the principle is that Delta keeps version metadata that allow querying the state at a point in time or version.

In practice: policies and automation

To make this robust in production, implement these key points:

  • Scheduling: use Power Automate, Synapse pipelines or job scheduling in Fabric to create regular snapshots (daily/hourly according to RPO).
  • Metadata: record metadata (source, commit_id, user, reason) in a control table for each snapshot/versioning.
  • Retention: define retention policies for old snapshots — keep only what is needed for auditing and recovery (e.g.: 90 days), archive the rest to cold storage.
  • Restore tests: periodically test restore from snapshot/version to ensure integrity and clear recovery processes.

Common mistakes

Some frequent pitfalls when implementing snapshots/versioning:

  • Storing snapshots without metadata: without recording origin and context, it is hard to know which snapshot to use for recovery or audit.
  • Ignoring storage costs: full regular snapshots can inflate costs; consider compression, partitioning and retention policies.
  • Assuming every table needs the same level of versioning: use criteria (RPO/RTO, data criticality) to decide between simple snapshot or Delta versioning.

How to practice

Practice these tasks in a Fabric Workspace with a small sample dataset: create a source table, make changes, and implement both approaches (copy snapshot and Delta time travel). To prepare for the DP-700 exam, use the OFFICIAL Microsoft Practice Assessment free resource and the official study guide (both free) — these are the recommended sources to validate practical knowledge. Do not use or trust exam dumps.

In summary

  • Snapshots keep immutable images of data; versioning (Delta) maintains transactional history and enables time travel.
  • Choose the approach based on RPO/RTO, volumes and costs: simple snapshots for ease, Delta for efficiency and consistency.
  • Automate, record metadata and define retention policies; regularly test restores.
  • Practice in Fabric and validate your knowledge with the official Practice Assessment and the free Microsoft study guide.