Skip to content

Designing task logic for Lakeflow Jobs

Lakeflow Jobs (formerly Databricks Jobs) let you orchestrate multi-step workflows by chaining tasks of different types with defined dependencies, conditional logic, and parameter passing. Designing task logic means choosing the right task type, wiring dependencies and run conditions, and passing values between tasks to build reliable, reusable pipelines.

1 · Learn the must-know

  • A job can combine multiple task types in one DAG, including Notebook, Python script, Python wheel, SQL, JAR, dbt, Run Job, Pipeline (DLT), and If/else condition tasks.
  • Task dependencies are set via 'Depends on', and each dependent task's 'Run if dependencies' setting controls execution based on upstream success, failure, or completion (all succeeded, at least one succeeded, all done, at least one failed, all failed).
  • The For Each task lets a single task definition iterate over a list of inputs concurrently, with configurable concurrency limits, avoiding the need to duplicate tasks manually.
  • dbutils.jobs.taskValues.set() and .get() (task values) pass small data outputs between tasks in a DAG, while job/task parameters pass static or dynamic values (including dynamic value references like {{job.start_time}}) into tasks at runtime.
  • Each task can have its own cluster (job cluster or existing all-purpose cluster), retry policy (max retries, retry interval), timeout, and email/webhook notifications, allowing independent tuning per task rather than for the whole job.
  • The Run Job task type lets one job trigger another existing job as a task, enabling modular, reusable pipeline components instead of duplicating logic across jobs.

2 · Check your understanding

Check this objectiveFree · always available

A Lakeflow Job contains three tasks that run in sequence: ingest_data, validate_data, and load_data. The validate_data task must receive the exact number of rows that ingest_data ingested so it can decide whether to proceed with load_data. Which approach correctly implements this task logic?

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