CertLumen

Databricks Data Engineer Professional · Section 2 · 12% of the exam

Configure CDC ingestion pipelines from relational database sources, including SQL Server, MySQL, and PostgreSQL, using Lakeflow Connect.

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 on update_preimage, and _commit_version as 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 TRUNCATE is 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 ICEBERG MVs and compatibility mode are Public Preview.

Try a question

In the gateway-based architecture of the Lakeflow Connect SQL Server connector, which component runs continuously on classic compute to read snapshots and change data from the source database before the source purges them?

  1. AThe ingestion pipeline, which a Lakeflow Jobs schedule starts on serverless compute
  2. BThe Unity Catalog connection, which holds the database credentials as a securable
  3. CThe ingestion gateway, which writes the extracted data to a staging volume
  4. DThe destination streaming tables, which refresh each time the source database commits
Show the answer

C. In the standard architecture the ingestion gateway is a pipeline on classic compute that runs continuously, capturing snapshots and change data into a Unity Catalog staging volume so nothing is lost when the source truncates its change tables or logs. The separate ingestion pipeline runs on serverless compute, usually on a job schedule, and applies the staged changes to the destination streaming tables. The connection only stores the credentials.

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

← Previous objective · All 45 objectives · Next objective →