The compute that runs your code — all-purpose, jobs, SQL warehouses, serverless — plus the knobs (access modes, policies, autoscaling, spot, Photon, pools) interviewers love to probe.
Compute is the set of cluster types that run your workloads — classic (all-purpose, jobs) deployed in your cloud account, or serverless and SQL warehouses managed by Databricks.
Picking the right compute is the single biggest lever on cost and performance: interactive all-purpose clusters are convenient but pricey for automation, while jobs compute and serverless are purpose-built for scheduled work — Databricks does not recommend all-purpose compute for production jobs.
All-purpose runs interactive, shared notebook work; jobs compute is created per run for a job and torn down after — cheaper and isolated, so it's the choice for scheduled pipelines.
Compute optimized for SQL, analytics, and BI; offered classic or serverless, with Photon on by default.
Databricks-managed, on-demand compute for notebooks, jobs, and Lakeflow Declarative Pipelines — no provisioning, fast start, available by default in most workspaces.
Standard (← Shared): multi-user with Lakeguard isolation, Python/SQL/Scala. Dedicated (← Single user): one user or group, adds R. No-isolation is the legacy non-UC mode.
Admin-defined rules that constrain compute creation — instance types, autoscaling bounds, max DBUs/hour — to control cost and standardize configs.
Min/max workers scale with load; the driver is always on-demand while workers can be spot to cut cost on interruptible nodes.
Jobs compute cluster spec (JSON){
"new_cluster": {
"spark_version": "15.4.x-scala2.12",
"data_security_mode": "SINGLE_USER", // access mode: dedicated
"node_type_id": "i3.xlarge",
"autoscale": { "min_workers": 2, "max_workers": 8 },
"runtime_engine": "PHOTON", // turn on Photon
"aws_attributes": { "availability": "SPOT_WITH_FALLBACK" },
"policy_id": "A1B2C3D4E5" // enforce a cluster policy
}
}
Verified against docs.databricks.com · June 2026