Wiring notebook, SQL, dashboard, and pipeline tasks into a job's task graph
Lakeflow Jobs orchestrate multi-task workflows as a DAG, where each node is a task (notebook, SQL query, dashboard refresh, pipeline, Python script, etc.) and edges define dependencies via 'Depends on'. Tasks run on job clusters or serverless compute, and a task only fires once all its upstream dependencies finish successfully, enabling fan-out/fan-in patterns and conditional branching.
1 · Learn the must-know
- A task's 'Depends on' field can list multiple upstream tasks, and by default all of them must succeed for the downstream task to run.
- Task run conditions can be changed from 'All succeeded' to options like 'At least one succeeded', 'All done', or 'At least one failed' to control branching on failure.
- Notebook, SQL, dashboard, and pipeline tasks each require a compute target: notebook and SQL script tasks can run on job/all-purpose clusters or serverless, SQL query/dashboard tasks run against a SQL warehouse, and pipeline tasks trigger a Lakeflow Declarative Pipelines update rather than running on a job cluster.
- A dashboard task refreshes a Lakeview dashboard and depends on the SQL warehouse and underlying queries being current, so it's commonly chained after notebook/pipeline tasks that update the source tables.
- Parameters and values can be passed between tasks using task values (dbutils.jobs.taskValues) or job/task parameters referenced with {{}} syntax, letting downstream tasks consume upstream outputs.
- The DAG structure is visualized in the Jobs UI graph view, and a job run fails overall if any task without a satisfied alternate condition fails, though 'Repair run' lets you rerun only the failed and downstream tasks.
2 · Check your understanding
A team wants a Lakeflow Job where a dashboard task, Sales_Dashboard, refreshes only after two independent SQL query tasks, Revenue_Query and Returns_Query, have both completed successfully, but those two query tasks have no dependency on each other and should run concurrently to save time. How should the task graph be configured?
What you have tried across Databricks DEA's objectives, not a readiness score.
Databricks Intelligence Platform6% of the exam0 of 2 tried
Data Ingestion and Loading21% of the exam0 of 7 tried
Data Transformation and Modeling22% of the exam0 of 7 tried
Working with Lakeflow Jobs16% of the exam0 of 4 tried
Implementing CI/CD10% of the exam0 of 4 tried
Troubleshooting, Monitoring, and Optimization10% of the exam0 of 5 tried
Governance and Security15% of the exam0 of 4 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.