Databricks Data Engineer Professional · Section 2 · 12% of the exam
Configure incremental CDC pipelines using Lakeflow Pipelines with Delta or Iceberg as the target table format.
One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Data Ingestion & Acquisition”. Here is what it covers, the points to remember and a question to try.
What it covers
Build incremental change data capture two ways: with AUTO CDC flows in Lakeflow Pipelines over a change feed or snapshots, writing Delta streaming tables that Iceberg clients can also read; and with Lakeflow Connect managed connectors that capture changes from SQL Server, MySQL and PostgreSQL for you.
Points to remember
- AUTO CDC (formerly APPLY CHANGES) applies a change feed to a streaming table:
KEYS,SEQUENCE BY,APPLY AS DELETE WHEN,COLUMNS * EXCEPT,STORED AS SCD TYPE 1|2,TRACK HISTORY ON. - A Delta CDF source needs
readChangeFeed, a filter onupdate_preimage, and_commit_versionas the sequence column. - AUTO CDC FROM SNAPSHOT diffs full snapshots (table name or a version function); it allows no expectations and has a SQL form too.
- To stream from an AUTO CDC target, read its change feed;
APPLY AS TRUNCATEis SCD type 1 only. - Iceberg-readable pipeline tables: external metadata plus Iceberg v3 properties (DBR 17.3+), readers need EXTERNAL USE SCHEMA and SELECT;
USING ICEBERGMVs and compatibility mode are Public Preview.
Try a question
A team deleted a Lakeflow Connect PostgreSQL ingestion pipeline after a proof of concept. Weeks later, the source database's disk is filling up with WAL files, although no Databricks pipeline reads from the database anymore. What should the DBA do?
- ARun a full refresh of another pipeline on the same connection so that it acknowledges the retained WAL
- BDrop the Unity Catalog connection, which releases the WAL that PostgreSQL retains for Databricks
- CDrop the replication slot the pipeline created, because deleting a pipeline doesn't remove it
- DSet
wal_levelback toreplica, which deletes the retained WAL files at the next checkpoint
Show the answer
C. The connector reads changes through a logical replication slot on the source. Deleting the ingestion pipeline leaves the slot in place, and an unused slot makes PostgreSQL keep WAL indefinitely. Drop it with pg_drop_replication_slot(...) as a user with the REPLICATION privilege; setting max_slot_wal_keep_size limits the damage a lagging slot can do in the future.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Incremental CDC Pipelines and Lakeflow Connect Database Connectors teaches this objective (about 50 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Develop data ingestion pipelines to ingest a variety of data formats, including Delta Lake, Parquet, JSON, Iceberg, CSV, and Binary from diverse sources such as message buses (Kafka, Kinesis, Pub/Sub) and cloud storage.
- Configure CDC ingestion pipelines from relational database sources, including SQL Server, MySQL, and PostgreSQL, using Lakeflow Connect.
- Implement OpenSharing (D2D and Databricks-to-Open) and Clean Rooms for privacy-preserving collaboration.
- Configure Lakehouse Federation with governance across supported source systems, applying UC permissions and connection-level credentials.