CertLumen

Databricks Data Engineer Professional · Section 1 · 23% of the exam

Create and automate ETL workloads using Lakeflow Jobs via the UI, API, and CLI.

One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Developing Code for Data Processing using Python and SQL”. Here is what it covers, the points to remember and a question to try.

What it covers

Create, run and automate the same Lakeflow Job from the UI, the Jobs REST API 2.2, the Databricks CLI, the Python SDK and bundles, choose the right trigger, and build control flow with If/else condition tasks, For each loops, task values and run-if rules.

Points to remember

  • Jobs API 2.2: create, update (replaces sent top-level fields, merges tasks by key), reset (replace everything), run-now (saved job), runs/submit (one-time run, not saved, no retries).
  • CLI: databricks jobs create --json @job.json; run-now <JOB_ID> waits up to 20 minutes by default; --no-wait returns immediately.
  • UI path: Jobs & Pipelines > Create > Job; Switch to code version (YAML) shows the job as code; bundles are the recommended production path.
  • Triggers: cron schedule, periodic, file_arrival, table_update (ANY_UPDATED/ALL_UPDATED), continuous; max_concurrent_runs defaults to 1 and queueing is on by default.
  • run-now accepts job_parameters, only (with + for upstream/downstream), idempotency_token, performance_target, pipeline_params.

Try a question

A job's first task builds a JSON array describing 400 tables to load, about 30,000 characters long, and the list changes every day. The engineer pastes a copy into the For each task's Inputs field, and the job can't be saved because the value is too long. What should the engineer do?

  1. ASplit the list into two halves and run them in two For each tasks nested one inside the other
  2. BStore the array in a job parameter, since job parameter values have no length limit
  3. CSet the For each task's concurrency to 100 so that the Inputs field accepts a longer array
  4. DPublish the array with dbutils.jobs.taskValues.set and reference that task value in Inputs
Show the answer

D. The Inputs field holds up to 5,000 characters, while a task value reference can resolve to a value of up to 48 KB. Publishing the list from the upstream task and referencing it as {{tasks.<task>.values.<name>}} also keeps it current every day, instead of a pasted copy.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Lakeflow Jobs: UI, REST API, CLI and Control Flow teaches this objective (about 50 minutes), and 13 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

← Previous objective · All 45 objectives · Next objective →