CertLumen

Databricks Data Engineer Associate · Section 6 · 10% of the exam

Diagnose cluster startup failures, library conflicts, and out-of-memory issues.

One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Troubleshooting, Monitoring, and Optimization”. Here is what it covers, the points to remember and a question to try.

What it covers

Classify a failure as a compute startup problem, a library conflict or an out-of-memory error, find the evidence in the right log, and apply the fix that matches: capacity vs quota, init scripts, notebook-scoped and pinned libraries, serverless environments, driver vs executor OOM.

Points to remember

  • Startup failures: read the termination code in the compute event log before changing anything.
  • Capacity (stockout) is not quota: capacity means another zone, instance type or on-demand; quota means request an increase or launch fewer VMs.
  • INIT_SCRIPT_FAILURE: read the init script logs (path, permissions, failing command, CRLF line endings); global init scripts need an admin.
  • %pip is notebook-scoped; call dbutils.library.restartPython() after installing and pin pkg==version.
  • Serverless: no init scripts, no compute-scoped libraries, no Maven; use the Environment panel or job environments, and never install pyspark.

Try a question

A join stage fails after repeated task retries with ExecutorLostFailure and java.lang.OutOfMemoryError on executors. Stage metrics show a median shuffle read of 210 MB and a max of 14 GB, and the failed attempts always involve the same partition. The driver is healthy, and the cluster's Spark config still sets spark.sql.adaptive.enabled to false from an old migration. Which change is most likely to fix the failure?

  1. ADouble the driver node size to give the job more memory
  2. BIncrease spark.driver.maxResultSize so larger task results fit
  3. CReduce spark.sql.shuffle.partitions from 200 to 50 to cut task retries
  4. DFix the skew (re-enable AQE skew-join handling or salt the hot key)
Show the answer

D. The OOM is on the executors and always hits the one partition that is about 65 times the median, so skew is the root cause. Re-enabling AQE so its skew-join handling splits that partition, or spreading the hot key with salting, brings each task's data back within executor memory. Bigger executors might mask the problem, but driver changes and fewer partitions cannot help.

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

In the course

The lesson Diagnosing Failures teaches this objective (about 40 minutes), and 10 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 29 objectives · Next objective →