Databricks Data Engineer Associate · Section 4 · 16% of the exam
Choose between time-based and data-driven triggers based on data availability and pipeline dependencies.
One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Working with Lakeflow Jobs”. Here is what it covers, the points to remember and a question to try.
What it covers
Pick the trigger from when the data becomes ready, and pick the dependency mechanism from who owns the upstream work. This lesson also covers repairing and re-running jobs safely, and running production jobs under the right identity.
Points to remember
- Time-based triggers suit fixed deadlines with reliably on-time data. Data-driven triggers (file arrival, table update) suit unpredictable arrival and cross-pipeline dependencies.
- Scheduling downstream work with a time buffer after the upstream is an anti-pattern. React to the data or declare the dependency instead.
- Within one team, use task dependencies or a Run Job task (
run_job_taskwithjob_parameters). Across teams, use a table update trigger, which needs only SELECT on the table. - Use *All tables updated* when a job needs several inputs to be fresh, and *Any table updated* when any change is enough.
- Retries are automatic and per task during the run. Repair is manual after the run and re-runs only unsuccessful tasks and their dependents, with the current settings.
Try a question
In a run of a nine-task job, tasks 1 to 5 succeeded and task 6 failed because of a bug in its notebook. Tasks 7 to 9 were marked Upstream failed. The engineer has fixed the notebook. How can the run be completed without re-running tasks 1 to 5?
- ARepair the run, which re-runs task 6 and its dependent tasks 7 to 9
- BClick Run now, which automatically skips the tasks that succeeded earlier
- CIncrease
max_retrieson task 6 and wait for the failed run to retry - DUse Run now with different parameters and set the start task to 6
Show the answer
A. A repair run re-runs only the unsuccessful tasks and their dependents, using the current job and task settings. The fixed notebook is picked up, and tasks 1 to 5 keep their results.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Time-based vs Data-driven Orchestration teaches this objective (about 45 minutes), and 8 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
- Implement control flows (retries and conditional tasks such as branching and looping) using Lakeflow Jobs for pipeline orchestration.
- Configure common tasks (notebook, SQL query, dashboard, and pipeline tasks) and their dependencies using Lakeflow Jobs and its DAG-based task graph.
- Implement job schedules using Lakeflow Jobs with an understanding of trigger types (scheduled, file arrival, and table update).