Skip to content

Building a notebook pipeline with precedence constraints

In Azure Databricks, data pipelines are built using Workflows (Jobs), where notebooks are added as Tasks that execute your ETL/ELT logic. Precedence constraints define the execution order and dependency logic between tasks, allowing you to control which tasks run sequentially or conditionally based on the outcome of prior tasks.

1 · Learn the must-know

  • A Job can contain multiple Tasks, and each Task can run a notebook, JAR, Python script, SQL file, or dbt task, with notebooks being the most common for data engineering pipelines.
  • Task dependencies are configured via the 'Depends on' setting in the Jobs UI, which creates a directed acyclic graph (DAG) determining execution order.
  • Run conditions (precedence constraints) can be set to control when a downstream task runs, such as 'All succeeded', 'At least one succeeded', 'None failed', 'All done', or 'At least one failed'.
  • Parameters and values can be passed between dependent notebook tasks using task values (dbutils.jobs.taskValues.set/get), enabling dynamic pipeline behavior based on upstream results.
  • If a task fails and no alternate run condition is configured, all downstream tasks that depend on it are skipped by default, halting that branch of the pipeline.
  • Each notebook task can specify its own cluster (job cluster or existing all-purpose cluster) and can be configured independently, allowing different tasks in the same pipeline to use different compute resources.

2 · Check your understanding

Check this objectiveFree · always available

A data engineer creates a Databricks job that contains three notebook tasks: Extract, Transform, and Load. The requirement is that Transform must not start until Extract has completed successfully, and Load must not start until Transform has completed successfully. Which configuration correctly enforces this precedence?

Your objective map0 tried · 0 answered correctly · 77 untouched

What you have tried across DP-750's objectives, not a readiness score.

Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried

3 · Keep going