Microsoft - DP-700 Study Guide

    2: Ingest and transform data

    This chapter covers the data movement and shaping surfaces of Microsoft Fabric, including full and incremental loading patterns, batch and streaming transformations across PySpark, SQL, and KQL, dimensional modeling, OneLake shortcuts, mirroring, and pipeline orchestration. It explains the decisions a data engineer makes when selecting a data store, a transformation engine, a streaming engine, and a windowing pattern.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Design and implement full and incremental data loads
    • Prepare data for loading into a dimensional model
    • Design and implement a loading pattern for streaming data
    • Choose an appropriate data store
    • Choose between Dataflows Gen2, notebooks, KQL, and T-SQL for data transformation
    • Create and manage OneLake shortcuts
    • Implement mirroring
    • Ingest data by using pipelines

    Executive Summary

    • Full loads truncate and replace, incremental loads use watermarks or change feeds to add only what changed, and merge operations resolve inserts, updates, and deletes against a target Delta table.
    • Dimensional preparation in Fabric centers on conformed dimensions and slowly changing dimension (SCD) patterns, executed in PySpark MERGE statements for Lakehouse tables, T-SQL MERGE for Warehouse tables, and update policies for KQL.
    • Streaming ingestion uses Eventstreams, Spark Structured Streaming, and KQL Database update policies, each with its own windowing semantics and latency profile.
    • Data store choice (Lakehouse, Warehouse, Eventhouse, SQL Database, OneLake shortcut, mirrored database) follows from workload type, write pattern, schema enforcement need, and SQL surface required.
    • OneLake shortcuts virtualize remote data without copying, while mirroring replicates remote databases into OneLake as Delta tables for analytics and join-friendly access.

    Assumptions

    • The reader has hands-on experience with a Fabric workspace, the Lakehouse explorer, and the workspace permission model from the previous chapter.
    • The reader can read PySpark, SQL, and KQL syntax at a working level.
    • All examples assume a workspace named wks-fabric-prod and a Lakehouse named lkh_sales unless otherwise noted.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account