1.2 Compute Types & Workload Matching

Key Takeaways

  • All-Purpose Compute is designed for interactive exploration and development, supporting multi-language notebooks and real-time collaboration at a premium DBU billing rate.
  • Job Compute offers isolated, ephemeral clusters that automatically provision at task start and terminate immediately upon completion, billed at the lowest DBU rate.
  • SQL Warehouses provide purpose-built, Photon-accelerated compute optimized for BI and SQL analytics, featuring instant Serverless startup, predictive I/O, and multi-cluster auto-scaling.
  • Serverless compute shifts VM infrastructure provisioning to a Databricks-managed environment, providing sub-10-second cold starts, dynamic scale-to-zero, and fine-grained per-second DBU billing.
  • Selecting compute based on workload characteristics—such as batch ETL vs. high-concurrency BI vs. interactive EDA—optimizes cost efficiency, execution latency, and resource governance.
Last updated: August 2026

1.2 Compute Types & Workload Matching

In Azure Databricks, compute is completely decoupled from storage. Selecting the correct compute type for a given workload directly determines your system's performance, query latency, fault tolerance, and cloud operating costs.

The DP-750 exam thoroughly tests your ability to match specific business workloads—such as interactive exploratory data analysis (EDA), automated batch ETL pipelines, 24/7 streaming ingestion, and high-concurrency BI dashboarding—to the most cost-effective and performant compute architecture.


1. Overview of Azure Databricks Compute Categories

Azure Databricks provides three primary compute categories, each tailored to distinct execution lifecycles, concurrency patterns, and cost models:

+--------------------------------------------------------------------------------+
|                      AZURE DATABRICKS COMPUTE CATEGORIES                       |
+--------------------------------------------------------------------------------+
|                                                                                |
|  1. ALL-PURPOSE COMPUTE                                                        |
|     - Interactive notebook development, exploratory data analysis, debugging   |
|     - Long-running or auto-terminating lifecycle                               |
|     - Premium DBU pricing tier                                                 |
|                                                                                |
|  2. JOB COMPUTE (AUTOMATED WORKFLOWS)                                          |
|     - Scheduled ETL/ELT pipelines, Lakeflow Jobs, automated tasks              |
|     - Ephemeral lifecycle: spins up on trigger, terminates immediately on finish|
|     - Lowest DBU pricing tier (significant cost savings)                       |
|                                                                                |
|  3. SQL WAREHOUSES                                                             |
|     - High-concurrency SQL queries, Power BI / Tableau dashboards, ANSI SQL    |
|     - Photon-vectorized C++ engine with Predictive I/O                         |
|     - Classic, Pro, and Serverless tiers with multi-cluster horizontal scaling |
+--------------------------------------------------------------------------------+

2. All-Purpose Compute (Interactive Development)

All-Purpose Compute clusters are designed for interactive, ad-hoc data analysis, notebook collaboration, and code debugging.

Operational Characteristics

  • Lifecycle: Manually provisioned by data engineers via the UI, REST API, or Terraform. Stays running continuously until manually terminated or stopped automatically by the Auto-Termination idle timeout.
  • Multi-User Collaboration: Multiple users can attach their individual interactive notebooks to the same running cluster simultaneously (when configured in Shared access mode).
  • Language Flexibility: Fully supports polyglot development, allowing engineers to mix Python (%python), SQL (%sql), Scala (%scala), and R (%r) within the same workspace environment.
  • State Persistence: In-memory DataFrames, Spark broadcast variables, and temporary views persist across notebook cell executions until the cluster restarts or the session detached.

Cost & Governance Considerations

  • Premium Billing Tier: All-Purpose compute incurs the highest DBU consumption rate per node-hour because it provides interactive shared development services.
  • Waste Mitigation: To prevent runaway cloud costs, workspace administrators should enforce Cluster Policies that mandate auto-termination (e.g., stopping after 15–20 minutes of inactivity) and cap maximum worker node counts.

3. Job Compute (Automated Batch & Production Pipelines)

Job Compute clusters (often called Automated or Ephemeral Job clusters) are purpose-built for executing scheduled, production-grade data pipelines orchestrated by Lakeflow Jobs.

Operational Mechanics

  1. Trigger & Dynamic Provisioning: When a scheduled or event-driven Lakeflow Job triggers, the Databricks cluster manager automatically requests the specified VM instances from Azure and boots the cluster runtime.
  2. Isolated Task Execution: The job executes its transformation tasks (notebooks, Python scripts, JARs, SQL files, or DAB tasks) in a pristine, dedicated runtime environment.
  3. Automatic Immediate Teardown: As soon as the final task succeeds or fails, the cluster manager immediately terminates the VMs and deallocates Azure resources. No idle compute hours are ever billed.

Enterprise Benefits

  • Lowest DBU Pricing: Job compute is billed at the lowest DBU rate—frequently 40% to 50% cheaper than running the identical workload on All-Purpose compute.
  • Total Fault & Dependency Isolation: Because each job runs on its own isolated cluster, memory leaks, rogue threads, or conflicting Python library installations from one job cannot crash or destabilize other production pipelines.
  • Reproducibility: Eliminates state contamination from residual in-memory variables or lingering cached tables.

Exam Trap: Never use an All-Purpose cluster to run recurring production batch jobs. The DP-750 exam will penalize answers that attach scheduled workflows to running All-Purpose clusters instead of using ephemeral Job compute.


4. SQL Warehouses (BI & Analytical Dashboards)

SQL Warehouses are compute resources specialized exclusively for ANSI SQL execution, BI dashboard acceleration (e.g., Power BI DirectQuery, Tableau), and ad-hoc analytical queries.

                          SQL WAREHOUSE ARCHITECTURE
                       
  [ BI Tools / Analysts ] ---> [ Load Balancer / Query Router ]
                                      |
         +----------------------------+----------------------------+
         | (Low Concurrency)                                       | (Query Spike Surge)
         v                                                         v
  +---------------+                                         +---------------+---------------+ 
  |   Cluster 1   |                                         |   Cluster 1   |   Cluster 2   | 
  | (Photon Eng.) |                                         | (Photon Eng.) | (Photon Eng.) | 
  +---------------+                                         +---------------+---------------+ 

Architectural Features of SQL Warehouses

  • Photon Vectorized Engine: Written natively in C++ to leverage hardware-level SIMD (Single Instruction, Multiple Data) parallelism, vectorized query processing, and predictive caching.
  • Multi-Cluster Auto-Scaling & Load Balancing: When multiple analysts refresh dashboards simultaneously, the SQL Warehouse automatically spins up secondary compute clusters to distribute concurrent query queues without manual intervention, scaling back down when load subsides.
  • ANSI SQL Compliance: Enforces standard ANSI SQL syntax, making it ideal for business analysts and SQL data modelers.

SQL Warehouse Tiers: Classic vs. Pro vs. Serverless

Capability / FeatureClassic SQL WarehousePro SQL WarehouseServerless SQL Warehouse
Hosting PlaneCustomer Data Plane (Azure VMs)Customer Data Plane (or Serverless)Databricks-Managed Serverless Plane
Startup TimeSlow (3–7 minutes)Slower on Classic / Fast on ServerlessSub-second to <10 seconds
Engine AccelerationStandard SQL EnginePhoton Engine EnabledPhoton + Predictive I/O Enabled
Scaling GranularityStepwise VM provisioningStepwise VM provisioningRapid container elasticity
Auto-Stop DelayMinimum 10–15 minutesMinimum 10–15 minutes1–5 minutes (rapid scale-to-zero)
Target Use CaseLegacy migrationsComplex SQL transformationsProduction BI, Power BI, ad-hoc SQL

5. DBU Economics & Total Cost of Ownership (TCO)

Every Azure Databricks deployment incurs two distinct billing components:

Total Cost=Azure Infrastructure Cost (VMs, Disks, Egress)+Databricks DBU Cost\text{Total Cost} = \text{Azure Infrastructure Cost (VMs, Disks, Egress)} + \text{Databricks DBU Cost}

  1. Azure Infrastructure Cost: The underlying compute hardware billed directly by Microsoft per VM core/hour (e.g., 8 vCPUs × $0.40/hr).
  2. Databricks Unit (DBU) Consumption: A standardized unit of processing capability billed per second of active compute runtime based on the workload tier and VM SKU.

DBU Pricing Hierarchy (Relative Cost per Compute-Hour)

Automated Job Compute<Classic SQL<Pro SQL<Serverless SQLAll-Purpose Compute\text{Automated Job Compute} < \text{Classic SQL} < \text{Pro SQL} < \text{Serverless SQL} \approx \text{All-Purpose Compute}

The Serverless Billing Model

In Serverless Compute (Serverless SQL Warehouses, Serverless Notebooks, Serverless Jobs), Microsoft infrastructure VM costs and Databricks software licenses are consolidated into a single unified DBU meter. Key economic advantages include:

  • Zero Idle Tax: Compute shuts down within 1–5 minutes of inactivity instead of staying warm for 15–30 minutes, drastically cutting idle spend.
  • Per-Second Billing: You are billed strictly for active query and task processing seconds without paying for the 3–7 minute VM provisioning boot lag.

6. Latency Profiles & Startup Characteristics

Understanding cold-start versus warm-start latency is essential for architectural sizing and passing scenario-based exam questions.

Compute ModeStartup LatencyScaling LatencyIdle Cost RiskIdeal Workload
Serverless Compute< 10 secondsInstantaneous (<5s)Lowest (fast auto-stop)Interactive SQL, Power BI, bursting jobs
Databricks Pools1–2 minutesFast (pre-allocated VMs)Low to ModerateRepetitive scheduled jobs needing standard VMs
Classic / Job Compute3–7 minutesSlow (Azure VM allocation)Zero (terminates on complete)Heavy overnight batch transformations
Active All-Purpose0 secondsDynamic Spark autoscalingHigh (requires strict auto-termination)Active pair-programming, live debugging

7. Workload Matching Decision Matrix

Use the following authoritative decision matrix to match customer workload requirements to the correct compute configuration:

Scenario / WorkloadOptimal Compute ChoiceConfiguration DetailsStrategic Rationale
Scheduled Nightly Batch ETLJob Compute (Ephemeral)Lakeflow Job with Single-Task or Multi-Task Job ClusterBilled at lowest DBU rate; guarantees clean environment isolation and zero idle costs.
Executive Power BI DashboardsServerless SQL WarehouseAuto-scaling enabled, Auto-Stop set to 5 minutesSub-10-second cold start eliminates user dashboard wait times; multi-cluster autoscaling handles morning query spikes.
Interactive Data Exploration & MLAll-Purpose ComputeSingle User or Shared mode with 15-min Auto-TerminationSupports polyglot notebooks (Python, SQL, R), visualization rendering, and iterative cell execution.
Continuous 24/7 Streaming IngestionJob Compute (Dedicated)Fixed-size single-node or multi-node cluster, auto-restart enabledEphemeral Job DBU rate minimizes continuous run costs; no auto-scaling overhead needed for constant ingestion streams.
High-Frequency Orchestrated Micro-TasksServerless Job ComputeLakeflow Job targeting Serverless runtimeEliminates the 4-minute VM boot overhead for tasks that only take 30 seconds to execute.
Ad-Hoc SQL Querying by AnalystsServerless SQL / Pro SQLAuto-scaling Pro/Serverless SQL WarehouseNative ANSI SQL compliance, Photon execution engine, and predictive caching maximize query throughput.
Loading diagram...
Azure Databricks Workload Compute Decision Flowchart
Test Your Knowledge

A data engineering team needs to schedule a mission-critical batch ETL pipeline that runs every night at 02:00 UTC. The pipeline consists of 12 dependent PySpark transformation tasks. What compute strategy provides maximum cost efficiency and dependency isolation?

A
B
C
D
Test Your Knowledge

An enterprise BI team reports that executive Power BI dashboards experience unacceptable 5-minute delays when first opened in the morning due to cluster spin-up times. Which compute configuration resolves this latency issue while optimizing cost for intermittent query bursts?

A
B
C
D
Test Your Knowledge

How does the Databricks Unit (DBU) consumption and billing model differ between interactive All-Purpose compute and automated Job compute?

A
B
C
D