Databricks compute comes in two flavors: classic, where you manage the cluster yourself, and serverless, where Databricks handles everything for you. Since 2024, Serverless Compute has expanded beyond SQL Warehouse to cover Notebooks and Jobs as well. This article walks through how Serverless Compute works, the differences between the three SQL Warehouse types, pricing, limitations, security, and the criteria for deciding when to choose Serverless.
Databricks SQL Warehouse comes in three types, each with different cost, performance, and management characteristics. Exams ask about these differences directly, so being able to distinguish them precisely is essential.
| Comparison | Classic | Pro | Serverless |
|---|---|---|---|
| Startup time | 5-10 minutes | 5-10 minutes | Seconds |
| Infrastructure management | User-managed (set size and count) | User-managed (set size and count) | Fully managed by Databricks |
| Photon engine | Supported | Supported | Supported (always on) |
| Pricing model | DBU × time (billed while running) | DBU × time (billed while running, higher rate than Classic) | DBU × time (no charge while idle) |
| Scaling | Manual (specify min/max cluster count) | Manual (specify min/max cluster count) | Automatic (scales instantly with load) |
| Query queueing | Yes | Yes | Minimized via autoscaling |
| Predictive I/O | Not supported | Not supported | Supported |
| Intelligent Workload Management | Not supported | Supported | Supported |
The single point exams hammer on most is whether you are billed while idle. Classic and Pro accrue DBUs whenever the warehouse is running, even when idle. Serverless only bills you while queries are actively running. For workloads like BI dashboards that fire queries intermittently, Serverless is dramatically more cost-efficient.
Serverless Notebooks runs interactive notebook execution on serverless compute. Traditionally you had to spin up an All-Purpose Cluster to use a notebook, with several minutes of wait time. With Serverless Notebooks, you simply pick "Serverless" as the compute attached to your notebook, and cells start executing within seconds.
Supported languages are Python, SQL, and Scala. R is not supported at this time. In Python you can install PyPI packages via %pip install, but installations are session-scoped — you'll need to reinstall after the session ends.
Under the hood, Serverless Notebooks runs on short-lived compute resources managed in the Databricks control plane. You never specify a cluster size or instance type — Databricks allocates resources automatically based on the workload's characteristics.
Jobs (workflows) can also run on serverless compute. When you set a job task's compute type to "Serverless," Databricks automatically provisions compute at job execution time.
The biggest difference from traditional Job Clusters is that cluster startup overhead drops to nearly zero. In overnight batch workflows that run dozens of tasks sequentially, the cluster-startup wait per task used to accumulate and significantly extend total job runtime. Serverless Jobs eliminates that overhead.
That said, Serverless Jobs still does not support custom init scripts or cluster-level library configuration. You specify dependent libraries inside the task definition via %pip install or requirements.txt.
The case for adopting Serverless Compute boils down to four main benefits.
Serverless Compute is not a silver bullet. You need to understand the following limitations before deciding to adopt it.
| Limitation category | Details | Impact / workaround |
|---|---|---|
| Custom libraries | Cluster-level JAR installation unavailable, init scripts not supported | Use %pip install or requirements.txt. For workloads with native dependencies, use Classic Compute |
| Networking | Cannot directly configure VPC Peering or PrivateLink | Use Private Connectivity (NCC) for Serverless. Requires a different approach than classic VPC Peering |
| Language support | R is not supported on Serverless Notebooks | Use an All-Purpose Cluster for R workloads |
| Cluster configuration | Cannot customize instance type, node count, or Spark configuration | Databricks auto-optimizes. Use Classic Compute for workloads requiring fine-grained tuning |
| GPU | Cannot specify GPU nodes on Serverless Compute | Use Classic Compute for ML training and inference that require GPUs |
| Storage | Writing to DBFS root storage is not supported | Use Unity Catalog-managed Volumes or external locations |
Serverless Compute pricing is consumption-based on DBUs (Databricks Units). The biggest difference from classic compute is that cloud infrastructure cost is built into the DBU rate.
From a cost optimization standpoint, workloads that run under sustained heavy load 24/7 may be cheaper on Classic or Pro. On the other hand, BI dashboards that fire queries a few times a day and intermittent ETL jobs come out ahead on Serverless.
Serverless Compute uses a different security architecture than classic compute.
Choosing between Serverless and classic compute comes down to workload characteristics. Use the following flow to decide.
Databricks certification exams (especially Data Engineer Associate) typically ask about Serverless Compute in the following patterns.
The key to exam prep is to know not just what Serverless can do, but exactly what it cannot do. When an answer choice claims Serverless solves everything, recall the limitations and choose carefully.
Data Engineer Associate
問題 1
A team runs BI dashboard queries against a Databricks SQL Warehouse every day at 9 AM and 5 PM. No queries run outside those windows. They are currently on Classic SQL Warehouse with auto-stop set to 60 minutes. Which is the most effective cost optimization?
正解: A
For a workload with only brief queries twice a day, Classic SQL Warehouse racks up substantial DBUs and infrastructure cost during idle time while running. Serverless SQL Warehouse bills DBUs only while queries are running and nothing while idle, making it the most cost-efficient choice for this usage pattern. Shortening auto-stop still leaves idle billing while running, and reducing cluster size does not fundamentally solve the idle-billing problem.
What is the biggest difference between Serverless SQL Warehouse and Classic SQL Warehouse?
The biggest difference is who manages the infrastructure. With Classic SQL Warehouse, you configure cluster size and scaling yourself, and startup takes several minutes to 10 minutes. With Serverless SQL Warehouse, Databricks fully manages the compute resources and queries can start responding within seconds. Serverless also does not bill DBUs while idle, so it is more cost-efficient for intermittent query workloads.
Can I use custom libraries with Serverless Compute?
Serverless Notebooks and Serverless Jobs let you install PyPI packages via %pip install, but custom JARs, wheels, and init scripts are restricted. init scripts in particular are not supported, and cluster-level library installation is also unavailable. For workloads that lean heavily on custom native libraries, consider Classic Compute (All-Purpose or Job Cluster) instead.
How does Serverless Compute appear on Databricks certification exams?
The Data Engineer Associate exam tests the differences between the three SQL Warehouse types — Classic, Pro, and Serverless — covering Photon support, pricing model, startup speed, and management responsibility. Practical decision questions also appear frequently: idle DBU billing, how autoscaling works, and which workloads are best suited to Serverless. Serverless Notebooks and Jobs are mostly covered in the Data Engineer Professional exam.
Practice with certification-focused question sets
無料で問題を解いてみるNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Databricks Certifications: All 7 Exams, Difficulty & Study Plan (2026)
Complete guide to all 7 Databricks certifications — Data Eng...
Databricks Exam Difficulty Ranking: All 7 Certs Compared (2026)
Every Databricks certification ranked by difficulty, with st...
Databricks Study Guide: Fastest Pass Route & Time Estimates (2026)
How to pass Databricks certifications efficiently. Official ...
Databricks Data Engineer Associate: Complete Guide (2026)
Domain-by-domain breakdown of the Databricks Certified Data ...
Databricks Data Engineer Professional: Complete Guide (2026)
Tactics for the Databricks Certified Data Engineer Professio...