Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Data Engineer Professional

System tables and event logs

Databricks Data Engineer Professional · Lesson 12 of 21 · 1:40:03

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Databricks Certified Data Engineer Professional exam. In this lesson: system tables for jobs, compute, and costs, the event log of Lakeflow pipelines, and answering operational questions with SQL. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Questions without answers

Finance asks what the nightly ETL costs per job, security asks who changed the permissions on a gold schema, and the data team asks why a pipeline dropped rows last night. Today, the answers are spread across several screens, and nobody can query them. This lesson covers system tables and pipeline event logs, which turn all of this into tables that SQL can answer.

System tables

System tables are tables that Databricks manages in the system catalog of Unity Catalog, and they hold the operational data of your account. system.billing.usage holds the DBUs consumed, with the SKU, the date, custom tags, and usage metadata, like the job ID or the warehouse ID, and system.billing.list_prices gives the price of each SKU. The system.compute tables describe clusters, SQL warehouses, and the use of their nodes over time. system.access.audit, in public preview, keeps audit events with the user, the service, and the action, and the lineage tables show which tables feed which. The system.lakeflow tables hold jobs, job runs, task runs, and pipeline updates, so durations and failures can be compared across workspaces. Access is governed by Unity Catalog, so admins grant the system schemas to the teams that need them.

Pipeline event logs

Each Lakeflow pipeline writes an event log, a hidden Delta table that you query with the event_log function and the pipeline ID, or that you publish under a name in the pipeline settings. Its event types include create_update, update_progress, flow_progress, and user_action. flow_progress events carry the data quality results: for each expectation, how many rows passed, and how many failed. Databricks recommends the pipeline_events system table, in beta, which gathers the events of all pipelines across the workspaces of a region. To give other users access, create a view over the event log, and grant the view, rather than the table itself. And never delete the event log, or the catalog or schema that holds it, since the pipeline can then fail to update.

Answering with SQL

Custom tags on jobs, pipelines, and compute flow into the custom tags column of usage, so costs can be split by team or by product. To estimate the cost of each job, join usage with list prices on the SKU and the time, then group by the job ID in the usage metadata. To find slow or failed runs, query the job run timeline in system.lakeflow, by result state and by duration. And since system tables are tables, alerts and dashboards can query them on a schedule, as lesson thirteen shows.

Recap

Let's recap. System tables sit in the system catalog of Unity Catalog, and admins grant them to the teams that need them. system.billing.usage and list_prices give consumption and cost, with tags and job IDs. system.access.audit shows who did what, and system.lakeflow and system.compute describe jobs, pipelines, and compute. Each pipeline writes an event log, and its flow_progress events carry the expectation results. And share the event log through a view, and never delete it.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Security must find out which user changed the permissions on the gold schema last week, with a SQL query. Which table fits?

    • system.billing.usage
    • system.lakeflow.job_run_timeline
    • system.compute.clusters
    • system.access.audit
    Show the answer

    system.access.audit

    The audit table keeps each action with the user who did it, the service, and the time. “system.billing.usage” holds consumption and cost, not actions. “system.lakeflow.job_run_timeline” holds job runs, not permission changes. And “system.compute.clusters” describes clusters, not who changed a grant.

  2. The data team wants the number of rows that each expectation of the silver pipeline dropped during last night’s update. Where should it look?

    • The Spark UI of the last update
    • The flow_progress events of the event log
    • system.billing.usage
    • system.access.audit
    Show the answer

    The flow_progress events of the event log

    Flow_progress events in the event log carry, for each expectation, the rows that passed and the rows that failed. “The Spark UI of the last update” shows the stages and tasks of Spark, not the expectations of a pipeline. “system.billing.usage” holds consumption and cost. And “system.access.audit” shows who did what, not data quality results.

  3. Analysts must query the event log of the orders pipeline, which only the run-as user of the pipeline can read today. What should the data engineer do?

    • Create a view over the event log, and grant SELECT on it
    • Grant SELECT on the event log table itself
    • Delete the event log, then publish it again
    • Export the event log to CSV files in a volume
    Show the answer

    Create a view over the event log, and grant SELECT on it

    Databricks recommends a view over the event log, and a grant on that view, instead of sharing the table directly. “Grant SELECT on the event log table itself” would share the table itself, which can expose more metadata than intended. “Delete the event log, then publish it again” would make the pipeline fail to update, since the event log must not be deleted. And “Export the event log to CSV files in a volume” would create a stale copy, and lose the governance of Unity Catalog.