CertLumen

Databricks Data Analyst Associate · Section 5 · 15% of the exam

Identify poorly performing queries in the Databricks Intelligence platform, such as Query Insights, Query Profiler log, etc.

One of the objectives of the Databricks Certified Data Analyst Associate exam, in the section “Analyzing Queries”. Here is what it covers, the points to remember and a question to try.

What it covers

Find poorly performing queries with Query History, the duration breakdown, performance insights and the query profile, choose the right fix (query, warehouse or layout), and use liquid clustering so filters on large tables skip most files.

Points to remember

  • Triage: Query History (filter by duration) → duration breakdown → query profile Top operators → performance insights → fix → re-run and compare.
  • Wall-clock duration = scheduling + optimization and file pruning + execution; aggregated task time sums all cores and can exceed wall-clock time.
  • Query profile: Details, Top operators and Query text tabs; graph metrics Time spent, Memory peak, Rows; needs ownership or CAN MONITOR; Download JSON to share beyond CAN MANAGE.
  • Exploding join (rows out far above rows in) → fix the join keys; spill → scale up (size); queuing → scale out (max clusters).
  • Performance insights are ranked by projected impact; Optimize opens Genie Code (formerly Databricks Assistant); Accelerated insights need no action.

Try a question

A platform analyst needs a weekly report of the 50 longest-running statements across all SQL warehouses in every workspace in the account's region, including how many files each scan pruned and whether results came from cache. What is the best source?

  1. AThe system.query.history system table, ordered by total_duration_ms
  2. BThe Query History page of each workspace, sorted by duration and exported manually
  3. CThe output of DESCRIBE HISTORY on every table that the warehouses read
  4. DThe system.lakeflow.job_run_timeline system table, ordered by run duration
Show the answer

A. system.query.history records statements from SQL warehouses, serverless compute and pipelines for all workspaces in the region, with columns such as total_duration_ms, waiting_at_capacity_duration_ms, read_files, pruned_files, spilled_local_bytes and from_result_cache. It keeps 365 days and is admin-only by default, so access is usually shared through views.

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

In the course

The lesson Query Insights, the query profile and liquid clustering teaches this objective (about 45 minutes), and 15 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 39 objectives · Next objective →