Home / Guides / Lakeflow Jobs vs Declarative Pipelines

Updated December 2026

Lakeflow Jobs vs Lakeflow Spark Declarative Pipelines in Databricks

A Lakeflow Job runs tasks in the order you define, on the schedule or trigger you set. A Lakeflow Spark Declarative Pipeline builds tables from the queries you declare and works out the order, the incremental processing and the compute by itself. They are not rivals: a job often runs a pipeline as one of its tasks.

Procedural Lakeflow Jobs
Declarative Lakeflow pipelines
16% + 22% of the DE Associate exam

The short version

One sentence each

  • Lakeflow Jobs (formerly Databricks Workflows) is the orchestrator. A job is a graph of tasks (notebooks, Python scripts, SQL, pipelines, if/else and for-each control flow) plus triggers, parameters, retries and notifications. You decide what runs, in what order, and when.
  • Lakeflow Spark Declarative Pipelines (formerly Delta Live Tables, or DLT) is a framework for building tables. You declare streaming tables, materialized views and views as queries; the pipeline infers the dependencies between them, processes data incrementally, and handles data quality through expectations.

Side by side

Lakeflow Jobs vs Declarative Pipelines

Databricks describes jobs as procedural (you specify how) and pipelines as declarative (you specify the result). The rest of the table follows from that.

Lakeflow JobsLakeflow Spark Declarative Pipelines
StyleProcedural: explicit sequence of stepsDeclarative: define the tables you want
Unit of workTask (notebook, script, SQL, pipeline, control flow)Dataset (streaming table, materialized view, view) and the flows that fill it
Who sets the orderYou, with task dependencies in a DAGThe pipeline, from the queries that read each dataset
When it runsTriggers: scheduled, file arrival, table update, continuousTriggered (refresh available data, then stop) or continuous mode
Failure handlingTask retries, Run if conditions, notificationsExpectations: warn, drop the row, or fail the update
Control vs effortFull control, more to write and tuneLess flexible, simpler to build and maintain
Typical useOrchestrating mixed work, custom logicIngestion and transformation into Bronze, Silver and Gold tables

Pipelines

What a declarative pipeline does for you

  • Streaming table: each record is processed exactly once, assuming an append-only source. Use it for ingestion and data that keeps growing.
  • Materialized view: results are recomputed as needed to reflect the current data. Use it for transformations and aggregations, especially when late or corrected rows must be reflected. Incremental refresh of materialized views requires serverless compute.
  • View: evaluated on demand and not persisted. Use it for intermediate steps and checks.

In Python, import dlt becomes from pyspark import pipelines as dp. @dp.table creates a streaming table and @dp.materialized_view creates a materialized view. Old DLT code still works without migration.

Expectations are the data-quality piece. Plain EXPECT (or dp.expect) is the default: it warns and still writes invalid rows. ON VIOLATION DROP ROW (dp.expect_or_drop) drops them before the write. ON VIOLATION FAIL UPDATE (dp.expect_or_fail) stops the update. For change data capture, a pipeline uses AUTO CDC (formerly APPLY CHANGES) instead of a hand-written MERGE.

A triggered pipeline refreshes the data that is available and stops. A continuous pipeline keeps tables fresh as new data arrives.

Jobs

What a job does that a pipeline does not

  • Task dependencies. Each task lists the tasks it depends on. The job runs upstream tasks first and independent tasks in parallel. The result is a directed acyclic graph (DAG).
  • Run if conditions. The default is All succeeded. Others: At least one succeeded, None failed, All done (run after every dependency finishes, whatever its status), At least one failed and All failed.
  • Triggers. Scheduled runs on a timetable. File arrival starts a run when new files land in a watched Unity Catalog storage location. Table update starts a run after source tables change. Continuous starts a new run as soon as the last one ends.
  • Control flow. If/else branches and for-each loops, plus retries and notifications by email, Slack or webhook.

Together

How they work together: the pipeline task

In production you rarely choose one or the other. A common shape is a job with an ingestion step, a pipeline task that refreshes your Bronze, Silver and Gold tables, and then a SQL or dashboard task that depends on it.

  • In a triggered or scheduled job, the pipeline task starts one update and stops when that update completes. You can optionally ask for a full refresh.
  • A pipeline runs only one update at a time. A job that contains a pipeline task is therefore limited to one concurrent run.
  • In a continuous job, the job's schedule decides the execution mode. Databricks recommends leaving the pipeline itself set to triggered.
  • The pipeline keeps its own source code and compute settings in the pipeline definition. The job just starts it.

Decide

When to use which

Use a declarative pipeline when

You are building tables: ingesting with Auto Loader into streaming tables, cleaning into Silver, aggregating into Gold, applying CDC with AUTO CDC, or enforcing data-quality rules. Databricks says declarative fits when simplified development and maintenance are priorities.

Use a job when

You need to decide the sequence yourself, mix different kinds of work (a pipeline, a notebook, a SQL alert, a dashboard refresh), start work on a schedule or on new files, or branch and retry. Databricks says procedural fits when fine-grained control over execution logic is required.

The exam shortcut

If the question is about what a table contains or how bad rows are handled, the answer is usually a pipeline feature. If it is about when something starts, what runs after what or what happens on failure, it is usually a job feature.

Worked examples

Four exam-style questions

All four are from our free Data Engineer Associate practice test. Try each before reading the answer.

1. Ordering four tasks

A Lakeflow Job has four tasks: ingest_bronze, clean_silver, aggregate_gold and refresh_dashboard. clean_silver must start only after ingest_bronze, refresh_dashboard only after aggregate_gold, and independent branches should run in parallel. How should the job be structured?

Answer: give each downstream task a depends_on reference to its upstream task, so the job builds a DAG.

Why: ordering comes from task dependencies, and independent branches run in parallel by themselves. Full question and explanation

2. An alert that must always run

A notification task must run after three upstream tasks whether they succeed or fail. Which Run if condition fits?

Answer: ALL_DONE.

Why: All done runs once every dependency has finished, whatever its status. The default, All succeeded, skips the task when anything upstream fails. None failed is the opposite of what is needed. At least one succeeded is skipped if all three fail. Full question and explanation

3. A Gold table that must reflect corrections

In a declarative pipeline, a Bronze streaming table ingests append-only clickstream events. A Gold object must show hourly revenue that always reflects the current upstream data, including late corrections. Which object type?

Answer: a materialized view.

Why: a materialized view recomputes from the current state of its sources, so corrections flow into the totals. A streaming table processes each input row once, which suits ingestion, not aggregates that must be corrected. Full question and explanation

4. Drop bad rows, keep running

A data engineer wants a pipeline table to discard any record that fails a constraint before it is written, while the update keeps running. Which clause?

Answer: CONSTRAINT valid_id EXPECT (id IS NOT NULL) ON VIOLATION DROP ROW.

Why: drop row removes failing records and lets the update continue. EXPECT without a clause only warns and keeps the rows. FAIL UPDATE stops the update. RESCUE ROW is not an expectation policy; _rescued_data belongs to Auto Loader. Full question and explanation

On the exam

Where this shows up

In the current Data Engineer Associate exam guide, Working with Lakeflow Jobs is 16%: control flow, retries, common tasks including pipeline tasks, the DAG-based task graph, and trigger types. Data Transformation and Modeling is 22% and includes building Gold objects such as materialized views, views and streaming tables. The exam has 45 scored questions in 90 minutes.

Study by topic: productionizing data pipelines, data processing and transformations, and, for the Professional exam, developing code for data processing. For a full plan, read how to pass the Data Engineer Associate exam.

Start the free 45-question test →

FAQ

Frequently asked questions


What is the difference between Lakeflow Jobs and Lakeflow pipelines?

Lakeflow Jobs are procedural: you define the tasks, their order and their triggers. Lakeflow Spark Declarative Pipelines are declarative: you define the tables you want, and the pipeline works out dependencies, incremental processing and compute.

Is Delta Live Tables the same as Lakeflow Spark Declarative Pipelines?

Yes. Databricks renamed Delta Live Tables (DLT) to Lakeflow pipelines. Existing DLT code still works, and in Python <code>import dlt</code> can be replaced with <code>from pyspark import pipelines as dp</code>.

Can a Lakeflow Job run a declarative pipeline?

Yes. A job can include a pipeline task. In a triggered or scheduled job, the task starts one pipeline update and stops when that update completes.

Are Databricks Workflows and Lakeflow Jobs the same thing?

Yes. Lakeflow Jobs is the current name for what was called Databricks Workflows. The Data Engineer Associate exam uses the new name and gives it its own section, worth 16%.

Should I use a job or a pipeline for a new ETL workload?

Use a declarative pipeline when you want simpler development and maintenance and are building tables. Use a job when you need fine-grained control over execution, or to schedule and connect pipelines, notebooks, SQL and other tasks.

See how you'd score today

A full-length, timed Data Engineer Associate practice test — free, with an explanation for every answer.

Start the free practice test →