CertLumen

Databricks Data Engineer Professional · Section 8 · 10% of the exam

Analyze the errors and remediate the failed job runs with job repairs and parameter overrides.

One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Debugging and Deploying”. Here is what it covers, the points to remember and a question to try.

What it covers

Match each symptom to the evidence that explains it (task run details, Spark UI, driver logs, the compute event log, query profiles and system tables), then finish the run cheaply with a repair, parameter overrides and idempotent tasks.

Points to remember

  • Open Task run details first: the error class (TABLE_OR_VIEW_NOT_FOUND, CAST_INVALID_INPUT, ...) usually names the failure family.
  • Serverless and SQL warehouses have no Spark UI or Spark logs; use the query profile (See performance, run timeline view, Query History).
  • Spark UI path: jobs timeline, longest job, longest stage; skew = Max task duration 50% or more above the 75th percentile; spill shows in stage details.
  • Removed executors: check the compute event log (spot loss, autoscaling) before assuming OOM; the event log keeps 60 days.
  • Driver logs = stdout, stderr and Log4j, visible to CAN MANAGE by default; log delivery to a UC volume every 5 minutes into <dest>/<cluster-id>/driver and /executor.

Try a question

A job on classic compute with spot workers sometimes takes twice as long. During the slow runs, the Spark UI jobs timeline shows several executors removed (in red), and stages rerun their unfinished tasks. Before changing any memory settings, what should the engineer check first?

  1. AThe SQL/DataFrame tab, to see whether the physical plan changed between slow and fast runs
  2. BThe compute event log, for spot instance losses or autoscaling events at those times
  3. CThe system.billing.usage table, to compare the DBUs of slow runs and fast runs
  4. DThe Environment tab of the Spark UI, to confirm the Spark version did not change
Show the answer

B. When an executor is removed, Spark reruns its unfinished tasks. The Databricks guide lists three common causes: autoscaling (expected), spot instance loss and out-of-memory. The compute event log shows resizing and lost spot nodes, so check it before assuming a memory problem; if it shows nothing, open the Executors tab to read the failed executors' logs.

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

In the course

The lesson Diagnosing Failures and Repairing Job Runs teaches this objective (about 50 minutes), and 17 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 →