Let’s Get Certified
Module 08 / 21 · The platform

The Databricks workspace

Explore Catalog Explorer, run a notebook, and use SQL and notebook utilities to find files, inspect tables, and share work.

The left sidebar

Databricks workspace left sidebar
In the UI. The sidebar as of November 2026: core navigation at the top (Workspace, Recents, Catalog, Jobs & Pipelines, Compute, Marketplace), then the Analytics, Lakehouse (SQL Editor, Queries, Query History, SQL Warehouses), Data Engineering (Runs, Data Ingestion) and AI/ML groups.
The New menu of the Databricks workspace
In the UI. The New button is the shortcut to create anything: notebook, query, dashboard, job, ETL pipeline, alert, or to add and upload data.
ItemWhat it holds
WorkspaceFolders, notebooks, files, Git folders. Personal folder under /Users/<you>; shared area under /Workspace/Shared.
Catalog (Catalog Explorer)Browse catalogs, schemas, tables, views, volumes, functions, models. See schema, sample data, history, lineage, permissions.
Jobs & PipelinesLakeflow Jobs and Lakeflow Declarative Pipelines, plus ingestion
ComputeAll-purpose clusters, job compute, SQL warehouses, pools, policies
SQL Editor, Queries, Dashboards, Genie, AlertsDatabricks SQL tools for analysts
Data ingestion / Marketplace / Partner ConnectUpload files, Lakeflow Connect connectors, partner integrations
Experiments, Models, ServingMachine learning (out of scope)

Notebooks

A notebook is a list of cells with a default language (Python, SQL, Scala, R). Attach it to compute to run it. Notebooks autosave and keep a revision history. Databricks notebooks are Jupyter-like but are their own format; they import and export .ipynb. They can be exported as source files (.py, .sql), .ipynb, HTML, or .dbc archives.

Working in the notebook UI

A Databricks notebook running a SQL cell on serverless compute
In the UI. A notebook whose default language is Python (top left) attached to Serverless compute. The cell starts with %sql, so its language badge switched to SQL. The result grid notes that the output is stored as _sqldf for later Python and SQL cells. Run all, the compute selector, Schedule and Share sit in the top right.
  • Shift+Enter runs the cell and moves to the next one (creating a new cell at the end). Interrupt stops a running cell.
  • The Schedule button in a notebook creates a job that runs that notebook.
  • You can also develop locally with the Databricks extension for VS Code (Databricks Connect) and run code on remote compute.
  • Result limits: display() renders the first 10,000 rows; the SQL editor applies a 1,000-row limit by default. Add your own LIMIT when exploring big tables.

Magic commands

CommandEffect
%python, %sql, %scala, %rRun this cell in another language
%mdMarkdown documentation cell
%run ./other_notebookRuns another notebook inline, in the same session: its functions and variables become available. Used to share setup code.
%pip install pkgNotebook-scoped Python library. Put it at the top; it restarts the Python process.
%shShell command on the driver only
%fs ls /Volumes/...Shorthand for dbutils.fs

Typing a magic command such as %sql on the first line switches the cell's language selector.

Languages share data through tables and temporary views, not variables. A Python variable is not visible in a %sql cell, but a temp view created with df.createOrReplaceTempView("v") is.

%fs, %sh and %run gotchas

  • %fs takes space-separated arguments, no parentheses and no quotes: %fs mkdirs /Volumes/main/default/my_volume/new_folder. Writing %fs mkdirs("x") fails.
  • Relative %fs paths resolve against dbfs:/, not your notebook folder, and writing to the DBFS root may be blocked. Use full /Volumes/... paths.
  • %sh works on the driver's local filesystem; %sh pwd shows the notebook's folder (for example /Workspace/Users/you). A folder made with %fs does not appear there.
  • %run takes a relative (./child, ../lib/setup) or absolute workspace path, no extension, no quotes, and must be the only command in its cell.

dbutils

dbutils.fs.ls("/Volumes/main/raw/landing")       # list files
dbutils.fs.cp(src, dst, recurse=True)              # copy
dbutils.fs.rm(path, recurse=True)                  # delete
dbutils.secrets.get(scope="kv", key="api-token")   # read a secret
dbutils.widgets.text("run_date", "2026-01-01")     # create a parameter widget
dbutils.widgets.get("run_date")                    # read it
dbutils.notebook.run("./child", 600, {"p": "1"})   # run as a separate job, returns exit value
dbutils.notebook.exit("done")                      # return a value to the caller
dbutils.jobs.taskValues.set("rows", 1200)          # pass values between job tasks
dbutils.library.restartPython()                    # restart Python after installs
display(df)                                        # rich table and chart output

More dbutils.fs commands:

dbutils.fs.mkdirs("/Volumes/main/raw/landing/2026")   # note the plural
dbutils.fs.mv(src, dst)                               # move or rename
dbutils.fs.head(path, 1024)                           # first bytes of a file
dbutils.fs.put(path, "text", overwrite=True)          # write a small file
dbutils.fs.mount(...) / unmount(...)                  # legacy, use volumes instead
dbutils.fs.help()                                     # list all commands
%run vs dbutils.notebook.run

%run includes the other notebook in the current context, so you get its variables, and it cannot take dynamic parameters easily. dbutils.notebook.run launches the notebook as a separate ephemeral run with its own context, passes parameters as widgets, has a timeout, and returns only the string passed to dbutils.notebook.exit.

Widgets and parameters

Widgets (text, dropdown, combobox, multiselect) parameterize notebooks. When a notebook runs as a job task, task parameters fill the widgets with the same names. In SQL, reference parameters with :param_name (named parameter markers).

Finding data and files with SQL

information_schema

Every Unity Catalog catalog has an information_schema schema with views describing its objects (tables, columns, schemata, table_privileges, tags and more), for example SELECT * FROM main.information_schema.tables WHERE table_schema = 'sales'.

Listing files in SQL

LIST 's3://acme-landing/orders/';             -- needs READ FILES on the external location covering the path
LIST '/Volumes/main/raw/landing/';            -- needs READ VOLUME on the volume

LIST takes a path URL, not the name of an external location. A path without a scheme is resolved against DBFS, which gives errors such as "Public DBFS root is disabled" in Unity Catalog workspaces.

Other workspace features

Catalog Explorer showing the samples.nyctaxi.trips table
In the UI. Catalog Explorer on samples.nyctaxi.trips. The tree on the left reads catalog (samples), schema (nyctaxi), table (trips). The table page has the tabs Overview, Sample Data, Details, Permissions, History, Lineage, Insights and Quality, and the right panel shows the owner, the type (Managed) and the data source (Delta).
  • Databricks Assistant: AI helper for writing, explaining and fixing code. In the SQL editor and notebooks, generate or edit DDL from a prompt, and use Diagnose error (or /fix) to explain and fix a failing cell. The video stresses the exam expects you to know the Assistant can debug errors.
  • Saved queries: naming a SQL editor tab saves it as a query you can reopen or move to a folder.
  • Files in the workspace: you can store .py modules next to notebooks and import them.
  • Catalog Explorer table page: Overview (columns, comments, tags), Sample data, Details, Permissions, History (Delta versions), Lineage, Insights.
  • Add data UI: upload a CSV, JSON or Parquet file to create a table or to a volume. The Add data page can also create a table from files in cloud storage: pick an external location, select files, preview, and create the table.
  • Visualizations: from display() output or SQL results, build charts; add them to an AI/BI dashboard.
  • Admin settings: workspace admins manage users, groups, feature previews and workspace settings.

Inspect the sample data

Open samples.nyctaxi.trips in Catalog Explorer. Inspect its schema, then run SELECT COUNT(*) FROM samples.nyctaxi.trips in a notebook attached to supported compute.

Check your reasoning

The namespace identifies the catalog samples, the schema nyctaxi, and the table trips. COUNT(*) returns one row with the number of trips.

Product reference

Databricks notebooks in the Databricks documentation

Knowledge check

The Databricks workspace quiz

Answer 7 questions. Check each answer for an explanation.