The big picture: two planes
Think of a restaurant. The control plane is the front desk: it takes orders, plans and tells the kitchen what to cook. The compute plane is the kitchen, where the actual cooking (data processing) happens. The ingredients (your data) are kept in your own storeroom: cloud storage.
Control plane
Run by Databricks
Web app & notebooks
Where you write code
Job scheduler
Starts jobs on time
Cluster manager
Creates and stops machines
Unity Catalog metadata
Table names, permissions, lineage
Compute plane
Classic: your cloud account · Serverless: Databricks' account
Clusters (driver + workers)
Run Spark
SQL warehouses
Run SQL for dashboards
☁️ Your cloud storage
S3 / ADLS / GCS: the actual data files
Account, workspace and what's inside
Account
Your company: billing, users and groups, Unity Catalog metastores
Workspaces
One per team or environment, e.g. dev and prod
Notebooks
Code + results
Git folders
Code from GitHub/Azure DevOps
Compute
Clusters, SQL warehouses
Jobs & pipelines
Scheduled work
Catalog Explorer
Browse tables
Notebooks: where you write code
A notebook is a page of cells. Each cell holds code; run it and the result appears right below. A notebook has a default language (Python, SQL, Scala or R), and a magic command at the top of a cell switches language for that cell. A spark object is already created for you.
# Cell 1 (Python, the notebook's default language)
df = spark.read.table("samples.nyctaxi.trips") # built-in sample data
display(df) # nice table + charts
# Cell 2: switch this one cell to SQL
%sql
SELECT COUNT(*) FROM samples.nyctaxi.trips
# Cell 3: write notes in Markdown
%md
## Revenue checks
# Cell 4: run another notebook (shares its variables)
%run ./helpers
# Cell 5: dbutils = Databricks utilities
dbutils.fs.ls("/Volumes/shopkart/raw/landing/") # list files| Command | What it does |
|---|---|
| display(df) | Show a DataFrame as a table with charts |
| %sql / %python / %md | Change the language of one cell |
| %run ./notebook | Run another notebook inline (its functions become available) |
| dbutils.fs | Work with files: ls, cp, mv, rm |
| dbutils.widgets | Notebook parameters (lesson 10) |
| dbutils.secrets | Read passwords and keys safely, never hard-coded |
Compute: the machines
A cluster is a group of virtual machines that run Spark together: one driver (the boss that plans the work) and several workers (which run executors that do the work). You'll meet them properly in the next lesson.
| Compute type | Use it for | Good to know |
|---|---|---|
| All-purpose compute | Interactive notebooks, exploring | Shared by people; most expensive DBU rate |
| Job compute | Scheduled jobs | Created for the run, deleted after; cheaper |
| Serverless compute | Notebooks, jobs and pipelines | Starts in seconds, no settings to tune; Databricks manages the VMs |
| SQL warehouse | SQL queries, dashboards, BI tools | Classic, Pro or Serverless; built for SQL with Photon |
| Pipeline compute | Lakeflow Declarative Pipelines (lesson 9) | Managed for the pipeline |
The settings that matter on a cluster
- Databricks Runtime (DBR): the software bundle: Spark, Delta Lake, Python and libraries. Pick an LTS (long-term support) version for production.
- Worker type and count: how big and how many machines. Autoscaling adds or removes workers between a min and max.
- Auto-termination: shut down after N idle minutes. Always set it; idle clusters are the #1 surprise bill.
- Access mode: Standard (many users share it safely, formerly “shared”) or Dedicated (one user or group, formerly “single user”). Both work with Unity Catalog.
- Photon: switch on the faster C++ engine.
- Spot instances: cheaper spare cloud capacity for workers; the cloud can take them back, and Spark retries the lost work.
- Cluster policies: rules admins set (max size, required tags) so teams can't create huge clusters by accident.
How you pay: DBUs
A DBU (Databricks Unit) measures processing power per hour. Bigger machines burn more DBUs per hour, and each compute type has its own price per DBU (job compute is cheaper than all-purpose).
Classic compute: cost = DBUs used × price per DBU + cloud VM cost (paid to AWS/Azure/GCP)
Serverless compute: cost = DBUs used × price per DBU (VMs included)🎯 Interview questions on this topic
Try to answer out loud first, then tap to check.
Q1Explain the Databricks architecture.Fresher
Q2Difference between an all-purpose cluster and a job cluster?Fresher
Q3When would you choose serverless compute?1–3 yrs
Q4What is a DBU and how would you reduce Databricks cost?1–3 yrs
Q5What is the Databricks Runtime?1–3 yrs
Q6Standard vs Dedicated access mode?3+ yrs
Key takeaways
- The control plane plans; the compute plane processes; your storage keeps the data.
- A workspace holds notebooks, Git folders, compute, jobs and the catalog browser.
- Pick compute by job: interactive, scheduled, SQL, or serverless for zero setup.
- DBUs measure usage. Auto-termination and job compute save the most money.
Frequently asked questions
What is the control plane in Databricks?
The control plane is the part Databricks runs for you: the web app, notebooks, the job scheduler, the cluster manager and Unity Catalog's metadata. It decides what should run, but it doesn't hold your table data.
What is the compute plane?
The compute plane is where your data is actually processed. With classic compute, the virtual machines run in your own cloud account. With serverless compute, they run in Databricks' cloud account, still isolated per customer.
What is a DBU?
A Databricks Unit is how Databricks measures processing time. A bigger machine burns more DBUs per hour. Your bill is DBUs times a price that depends on the compute type; with classic compute you also pay your cloud provider for the VMs.
All-purpose cluster or job cluster?
Use all-purpose compute for interactive work in notebooks. Use job compute for scheduled jobs: it's created for the run, shut down after, and its DBU price is lower.
What is Photon?
Photon is Databricks' faster query engine, written in C++. It runs the same Spark SQL and DataFrame code, often several times faster for SQL-heavy work. It costs more DBUs per hour, so it pays off when it shortens the job enough.
🧠 Quick check: Databricks architecture
1. Where does your table data live?
2. Which compute should a nightly scheduled job use?
3. A cluster has 1 driver and 4 workers. Who runs the tasks?
4. What does auto-termination do?