Databricks Field Guide

Operating · Chapter 23

Databricks cost management and performance tuning

Reviewed by TechFabric engineers. How we write this guide →

Databricks cost management means three things: every DBU of spend carries a tag naming the team that caused it, each workload runs on the cheapest compute type that suits it, and the system tables (system.billing.usage, system.billing.list_prices, system.query.history) turn the invoice into a ranked list of jobs and queries. Performance tuning is the same job from the other end, because a slow query is usually a badly laid out table rather than too few machines.

Elastic compute means engineers make spending decisions dozens of times a day without noticing. This chapter is the order we'd check a slow query in, the compute we'd pick for each kind of work, and the tags, policies and SQL that give each team its own number, all checked against Databricks' documentation in October 2026.

The short version

Two questions dominate the running of a data platform: why is this slow, and where is the money going. Both have disciplined answers rather than folklore ones. Slowness is almost never a shortage of machines; it is usually the way the data is physically laid out on disk, and adding machines hides the problem while permanently raising the bill. Spending is not controlled by asking people to be careful; it is controlled by making every cluster carry a label that says which team and which product it belongs to, so that the monthly invoice becomes dozens of small invoices each with an owner. Teams who can see their own numbers correct most of the waste themselves, without anyone setting a target.

The business case for the platform, and the "Databricks is expensive" objection, are covered in What It Actually Costs. This chapter assumes you have already bought the thing and now have to run it well.

Performance, in the order to check things #

When a Databricks query is slow, the causes cluster into a short list, and we'd check them in a fixed order. Working through it in order takes less time than guessing, and it stops you from arriving at the answer that is always available and usually wrong.

File layout comes first. Small files are the most common cause of slowness and the one least likely to be suspected. A table accumulating thousands of tiny files from streaming writes or frequent small merges will be slow no matter what compute you point at it, because the engine spends its time opening files rather than reading rows. The fix is compaction and a sensible clustering key, not more nodes.

Then skew. A single key value holding a disproportionate share of the rows produces the signature symptom of one task still running long after every other task in the stage has finished. The query profile shows it immediately once you know to look at the distribution of task durations rather than at the total.

Then statistics. The optimiser chooses join strategies from statistics, and stale or missing statistics produce plans that look inexplicable, most often a shuffle join where a broadcast would have been correct.

Then caching. A repeated identical query against unchanged data should be served from the result cache, and system.query.history records from_result_cache per statement, so you can measure it rather than guess. A workload that never hits cache usually contains a non-deterministic element, and the usual culprit is a timestamp function in the predicate that makes every execution technically a different query.

Only then sizing. By the time you get here it usually is not the answer, and if it is, you now know that rather than assuming it.

yes

no

yes

no

yes

no

yes

no

Query is slow

Many small files
in the source table

Compact and cluster

One task runs
far longer than peers

Fix skew or
let AQE split it

Stats stale
or missing

Analyze table
check join strategy

Cache never hit

Remove non-deterministic
predicate

Now consider sizing

Diagnosing a slow query in the order that finds the cause fastest

Code habits we'd catch in review #

The order above looks for the cause in the data. Sometimes the cause is in the code, and these are the habits we'd look for first. The Field Guide's MCP server flags all six in a file you give its review_databricks_code tool, with a link back to the section here.

Most of them share one mechanism. A Databricks cluster is one driver and many executors, and the work is fast while it stays on the executors. Each habit below either moves the work onto the driver, reads more than the query needs, or keeps the engine from planning the work itself.

aggregate or write

collect or toPandas

a query per row
from a Python loop

Delta table

Executors
read, filter, join
in parallel

Result table

Driver
one machine, one memory

Where the work runs: the executors do it in parallel, the driver is one machine

Reading every column of a wide table #

A Delta table is Parquet data files plus a transaction log (What is Delta Lake), and Parquet is a columnar format that lets a query engine "read only the columns needed and skip irrelevant row groups" (Parquet files). On a 300-column table, a query that names four columns reads four columns' worth of each file. SELECT * reads all 300, and when the result leaves the cluster for a BI tool, an app or pandas, every one of those columns crosses the network and sits in someone's memory as well.

We'd name the columns a query needs, and keep SELECT * for exploration with a LIMIT and for copies that genuinely need every column. When most columns are wanted and a few wide ones are not, the star takes an EXCEPT list (SELECT reference):

-- the columns the report uses, over the window it shows
SELECT order_id, customer_id, order_ts, amount
FROM sales_prd.silver.orders
WHERE order_ts >= current_date() - INTERVAL 7 DAYS;

-- nearly every column, minus the wide payloads nobody reads
SELECT * EXCEPT (raw_payload, html_body)
FROM sales_prd.silver.orders
WHERE order_ts >= current_date() - INTERVAL 7 DAYS;

Where it doesn't apply: a narrow table, where the star and the list read the same bytes; a copy that must carry every column, such as the clustered rebuild in Tables and storage; and a view. Only a view's query text is stored (views), so the columns a query asks of the view decide what is read, and a SELECT * inside a row-filtering view costs nothing on its own. The rule we'd enforce is about the query that runs and returns rows.

Pulling a large DataFrame back to the driver #

toPandas() "results in the collection of all records in the DataFrame to the driver program" and Databricks' guidance is that it "should be done on a small subset of the data" (pandas conversion). collect() makes the same trip and returns a Python list of rows instead. Either way the executors finish their part and wait while one machine serializes the whole table into its own memory, and if the table is larger than that memory, the job fails late, after the cluster has billed for the read. Pandas itself "does not scale out to big data" (performance efficiency best practices).

We'd never call collect() or toPandas() on a table read without first reducing it to an answer: aggregate, limit or sample on the cluster, and bring back only what fits on a screen. For pandas syntax over the whole table, the pandas API on Spark runs the same code on the executors.

from pyspark.sql import functions as F

catalog = dbutils.widgets.get("catalog")  # sales_prd in production, from the job
orders = spark.table(f"{catalog}.silver.orders")

# aggregate on the executors, bring back thirty rows
daily = (
    orders.where(F.col("order_date") >= F.date_sub(F.current_date(), 30))
    .groupBy("order_date")
    .agg(F.sum("amount").alias("revenue"))
    .toPandas()
)

# a look at the data, not the data
sample = orders.limit(1000).toPandas()

# pandas syntax at table scale, still distributed
psdf = orders.pandas_api()

Where it doesn't apply: a result that is small by construction, such as a lookup of a few hundred reference rows, a configuration table, or the output of an aggregate, and single-node work like training a model on data you've already measured to fit. What decides it is whether anything between the read and the toPandas() guarantees the size.

Loops that run on the driver #

A Python for loop over collect() that issues a spark.sql() or a write for each row turns one job into thousands. Every iteration is a separate Spark job planned and launched from the driver, one after another, and the executors sit idle between them, so a 10,000-row loop pays 10,000 rounds of scheduling for work that one set-based statement does in a single pass. Spark "automatically parallelizes SQL queries across all nodes of a cluster" (performance efficiency best practices), but only for the query it's given, and a loop hands it one row at a time.

We'd replace a loop of per-row statements with one join or one MERGE over the whole set, so the cluster plans the work once and runs it in parallel:

-- every price change in one statement, instead of an UPDATE per collected row;
-- the latest change per product, because MERGE refuses two source rows for one target row
MERGE INTO sales_prd.gold.products AS p
USING (
  SELECT * FROM sales_prd.silver.price_changes
  QUALIFY row_number() OVER (PARTITION BY product_id ORDER BY changed_at DESC) = 1
) AS c
  ON p.product_id = c.product_id
WHEN MATCHED AND c.changed_at > p.updated_at THEN
  UPDATE SET p.price = c.new_price, p.updated_at = c.changed_at;

The subquery matters. A loop applied changes one at a time and never noticed two changes for the same product; MERGE stops with an error when more than one source row matches a target row (MERGE INTO), so the source is reduced to one row per key first.

Where it doesn't apply: a loop over metadata rather than rows, such as running maintenance on each of twenty tables or creating a schema per tenant, where each iteration is already a large job and the loop is only the list. A loop that calls an outside API with its own rate limit is the other honest case, though batching the calls still beats one per collected row.

Python UDFs where a built-in exists #

Databricks' advice is short: "don't use Python or Scala UDFs if a native function exists" (use native Spark operations). A row-at-a-time Python UDF moves every value out of the JVM to a Python interpreter and back, built-in functions are "optimized for distributed processing and offer better performance at scale" (UDFs), and Photon doesn't run UDFs at all, so the stage falls back to the slower engine (Photon). A UDF that lowercases an email, strips a phone number or parses a date replaces what is one function call already:

from pyspark.sql import functions as F

catalog = dbutils.widgets.get("catalog")
customers = spark.table(f"{catalog}.silver.customers").select(
    "customer_id",
    F.lower(F.trim("email")).alias("email"),
    F.regexp_replace("phone", r"[^0-9]", "").alias("phone_digits"),
    F.to_date(F.try_to_timestamp("signup_text", F.lit("dd/MM/yyyy"))).alias("signup_date"),
)

The date goes through try_to_timestamp because the UDF it replaces most likely returned null for a malformed string, and with ANSI mode on, to_date raises an error instead (to_date, try_to_timestamp).

When no built-in covers the logic, we'd write a pandas UDF, which Databricks measures at up to 100 times faster than a row-at-a-time Python UDF because it moves data in Arrow batches (UDFs):

import numpy as np
import pandas as pd
from pyspark.sql import functions as F

@F.pandas_udf("double")
def haversine_km(lat1: pd.Series, lon1: pd.Series, lat2: pd.Series, lon2: pd.Series) -> pd.Series:
    p1, p2 = np.radians(lat1), np.radians(lat2)
    dlat, dlon = p2 - p1, np.radians(lon2 - lon1)
    a = np.sin(dlat / 2) ** 2 + np.cos(p1) * np.cos(p2) * np.sin(dlon / 2) ** 2
    return 6371.0 * 2 * np.arcsin(np.sqrt(a))

trips = trips.withColumn("km", haversine_km("pickup_lat", "pickup_lon", "dropoff_lat", "dropoff_lon"))

Where it doesn't apply: logic no built-in expresses, such as a parsing library or a model's tokenizer, and ad hoc work on small data, which the UDF documentation itself names as the place UDFs fit. A function several teams reuse goes in Unity Catalog as a governed Python UDF, so it isn't pasted into each notebook.

Photon, where it helps and where it doesn't #

Photon is on by default on SQL warehouses and serverless compute, and on new classic clusters unless someone clears the Use Photon Acceleration box (Photon). The same page lists what it speeds up, SQL queries, DataFrame calls and ETL, longer-running ones over large data most of all. It doesn't speed up queries that already finish in under two seconds, and it doesn't run UDFs, the RDD API, the Dataset API or stateful streaming, which fall back to the standard engine. Photon compute consumes DBUs at a different rate from the same instance without it, so on a classic job cluster whose time goes into RDD code or Python UDFs, the job can pay Photon's rate for work Photon never touched.

We'd measure rather than assume, in both directions. Run the job once with Photon and once without (runtime_engine: STANDARD in the job's cluster spec), then compare the DBUs and the run time of each:

SELECT usage_metadata.job_run_id,
       product_features.is_photon AS photon,
       SUM(usage_quantity)        AS dbus,
       timestampdiff(MINUTE, MIN(usage_start_time), MAX(usage_end_time)) AS minutes
FROM system.billing.usage
WHERE usage_metadata.job_id = '123456789'
  AND usage_date >= current_date() - INTERVAL 14 DAYS
GROUP BY ALL
ORDER BY usage_metadata.job_run_id;

Usually the better fix is to keep Photon and move the code onto something it runs. An RDD map and reduceByKey that counts rows per key is a DataFrame groupBy:

catalog = dbutils.widgets.get("catalog")
counts = spark.table(f"{catalog}.silver.events").groupBy("region").count()

The DBUs are the Databricks half of the bill. On classic compute the cloud provider also bills the machines for as long as the run takes, so a Photon run that uses more DBUs in fewer minutes can still be the cheaper one; we'd price both halves before switching it off.

Where it doesn't apply: SQL warehouses and serverless, where Photon isn't a choice, and short interactive queries, where its rate barely registers. The job_id column is filled for job compute and serverless jobs but not for all-purpose compute (billing system table), so we'd run the comparison on job compute.

A shuffle partition count set by hand #

spark.sql.shuffle.partitions sets how many partitions a join or aggregation shuffles into. It defaults to 200, and setting it to auto turns on auto-optimized shuffle, which picks the count from the query plan and the input size (adaptive query execution). A fixed number copied from a tuning post into every notebook, or into a cluster's Spark config, is tuned for one query and applied to all of them, and a count too low for the biggest join leaves each of its tasks too much data, which spills to disk. Adaptive query execution is on by default and coalesces small post-shuffle partitions, splits skewed ones and switches joins to broadcast at runtime, and Databricks recommends keeping it on (performance efficiency best practices). Turning it off to make a hand-set number stick throws all of that away.

We'd leave the count to the engine, set to auto where it is set at all, and keep adaptive query execution on:

# classic compute: let Databricks choose the count per query
spark.conf.set("spark.sql.shuffle.partitions", "auto")
resources/jobs/nightly.ymlyaml
resources:
  jobs:
    nightly:
      job_clusters:
        - job_cluster_key: etl
          new_cluster:
            spark_version: 17.3.x-scala2.13
            node_type_id: m6i.xlarge
            num_workers: 4
            spark_conf:
              spark.sql.shuffle.partitions: auto
            custom_tags:
              cost_center: data-platform

Where it doesn't apply: a stateful streaming query, whose count is fixed by its checkpoint and changes through the separate state setting in Real-time and CDC, and a single job whose query profile shows spill that auto doesn't fix. That job gets its own number, and the pull request that sets it carries the profile.

Choosing the right compute #

The expensive mistake we'd look for first is the wrong kind of compute rather than too much of it.

This is the choice we'd make for each kind of work:

Work Compute we'd use Why What to watch
Notebook development All-purpose, auto-terminating, or serverless notebooks Interactive, shared by a team The highest rate; never point a schedule at it
Scheduled pipelines and jobs Job compute, or serverless jobs Starts for the run, gone afterwards Startup time on short frequent jobs, which pools or serverless fix
Short, bursty or unpredictable work Serverless No sizing and no idle bill Inefficient work now bills immediately
Serverless jobs that can wait a few minutes to start Serverless with performance optimized turned off (standard mode) Fewer DBUs on the same SKU Startup of four to six minutes; not for notebook or SQL warehouse tasks
Dashboards and BI Serverless SQL warehouse (pro and classic also exist) Starts in seconds, so it can stop Size against queuing on two separate axes (below)
Retry-tolerant batch Job compute with spot workers and an on-demand driver Cheapest capacity Only for work that can simply run again
AI serving Serving endpoints with their own budget alerts Scales with traffic Tokens, not DBUs, decide the bill

All-purpose compute is interactive, bills at the higher rate, and exists for development, so a production job pointed at a shared all-purpose cluster pays that premium every night. Job compute spins up for a run and disappears afterwards, which is what scheduled work should use. Serverless removes the sizing question and the idle question together, and for short, bursty, or unpredictable work it is now our default. SQL warehouses serve analytics and BI, and the serverless variant starts in seconds rather than minutes, which matters more than it sounds because a warehouse taking four minutes to wake gets left running all day.

Warehouse sizing works on two separate axes that teams routinely confuse. The t-shirt size determines how much a single query can parallelise, so it addresses one big slow query. In the warehouse settings it's called cluster size, and it runs from 2X-Small up. On pro and classic warehouses the minimum and maximum cluster count determine how many concurrent queries are served before queuing, so they address many users at once; serverless warehouses scale that axis themselves with Intelligent Workload Management (warehouse behaviour). Increasing the size to fix a queuing problem, or adding clusters to fix a single slow scan, spends money without changing anything. system.query.history tells you which problem you have: waiting_at_capacity_duration_ms is time queued for capacity, execution_duration_ms is time running.

For batch work that tolerates interruption, spot workers with an on-demand driver cut the compute bill and confine the risk to work that can simply be retried. On AWS that's two fields in the job cluster definition, where first_on_demand: 1 keeps only the driver on demand (policy reference):

{
  "aws_attributes": {
    "availability": "SPOT_WITH_FALLBACK",
    "first_on_demand": 1
  }
}

Attribution, and how it actually gets enforced #

Attributing Databricks costs to teams is the first cost control we'd build, because every other one depends on it.

Every cluster, warehouse, job and serverless workload carries tags mapping onto cost center, environment, and product. The enforcement mechanism for classic compute is cluster policies, which can require a tag, constrain its allowed values, and refuse to start compute that lacks it:

policies/job-compute.jsonjson
{
  "custom_tags.cost_center": { "type": "allowlist", "values": ["data-platform", "servicing", "originations"] },
  "custom_tags.environment": { "type": "allowlist", "values": ["dev", "staging", "prod"] },
  "autotermination_minutes": { "type": "range", "minValue": 10, "maxValue": 60, "defaultValue": 30 }
}

The minValue on auto-termination is there because 0 means no auto-termination; a range with only a maximum would let a cluster run until someone notices. Serverless work has no cluster definition for a tag to live on, so it's attributed through serverless usage policies (Public Preview, previously called budget policies): a policy is a set of tags, assigned to notebooks, jobs, Lakeflow pipelines, model serving, apps and Lakebase Autoscaling projects, and its tags land in the same custom_tags column of system.billing.usage. One rule worth knowing: when a notebook runs inside a job, only the job's policy applies, so we'd assign policies at the job level and treat notebook policies as a development convenience.

Cluster policy
requires tags

Cluster or job

Serverless usage
policy

Serverless workload

System tables
billing usage

Per-team dashboard

Budget alert

How a tag becomes a number a team can see

The system tables are the part we'd expect to be underused. They hold billable usage by workload, tag and SKU, list prices so you can compute dollars rather than DBUs, and query and job run history, so spend joins to the specific job or query that caused it (billing tables). This is the query we'd put behind the per-team dashboard on day one:

dashboards/cost_by_team.sqlsql
SELECT
  u.custom_tags['cost_center']        AS cost_center,
  u.billing_origin_product            AS product,
  u.usage_metadata.job_id             AS job_id,
  SUM(u.usage_quantity * p.pricing.default) AS list_cost_usd
FROM system.billing.usage AS u
JOIN system.billing.list_prices AS p
  ON  u.sku_name = p.sku_name
  AND u.cloud = p.cloud
  AND u.usage_start_time >= p.price_start_time
  AND (p.price_end_time IS NULL OR u.usage_start_time < p.price_end_time)
WHERE u.usage_date >= current_date() - INTERVAL 30 DAYS
GROUP BY ALL
ORDER BY list_cost_usd DESC;

Two cautions on reading it. It's list price, so a negotiated discount makes every number high by the same factor, which is fine for ranking and wrong for a chargeback invoice. And usage_metadata.job_id is populated for jobs on job compute and serverless jobs but not for jobs run on all-purpose compute, so a large row with a null job is usually production work running on an interactive cluster, which is the compute mistake above showing up in the bill. That join turns a cost conversation from an argument into a list.

Reading query history the same way finds waste the bill hides. On one embedded reporting build it showed one AI/BI dashboard sending its base query five times per load, one per dataset, and Reporting tells how Andrey Taran's team fixed it.

Budgets and alerts #

We'd set budgets in the account console per workspace and per major tag, with thresholds that fire at a fraction of the month rather than at the end of it, because an alert that fires when the money is gone is a report. Three details shape how far to trust them: a budget can carry up to four monthly thresholds with email recipients, it's calculated at list price, and an alert can arrive up to 24 hours after the threshold is crossed. Serving endpoints for AI workloads get their own alerts, since their cost scales with usage in a way batch doesn't.

For model traffic routed through Unity Gateway, a budget can go further and block usage, refusing further requests once a shared or per-user threshold is reached. It covers pay-per-token endpoints and ai_query, not provisioned throughput, and Databricks says enforcement is approximate and not to treat it as an absolute cap, since requests already running finish. We'd still switch it on for agents: one stuck in a retry loop is a cost incident that an email alert only reports, a point Sushruth Aeluguri, a Databricks Engineer at TechFabric, makes in his write-up on governing agents.

The advanced surface worth switching on #

Each of these is a statement, a setting or a query rather than a project, and each has a way to check it worked.

Find the queries that cost the most time. Before tuning anything, rank statements by the work they did, not by how long one user waited. total_task_duration_ms sums task time across every core, so it tracks compute far better than wall-clock time. statement_text reads <REDACTED> unless you're an account admin or in the databricks_pii_access group (query history).

SELECT executed_by,
       compute.warehouse_id,
       query_source.dashboard_id,
       query_source.job_info.job_id,
       COUNT(*)                                   AS runs,
       ROUND(SUM(total_task_duration_ms) / 3.6e6, 1) AS task_hours,
       ROUND(SUM(read_bytes) / 1e12, 2)          AS tb_read,
       ROUND(AVG(CASE WHEN from_result_cache THEN 1 ELSE 0 END), 2) AS cache_hit_share,
       ANY_VALUE(LEFT(statement_text, 200))      AS sample_text
FROM system.query.history
WHERE start_time >= current_timestamp() - INTERVAL 7 DAYS
  AND execution_status = 'FINISHED'
GROUP BY ALL
ORDER BY task_hours DESC
LIMIT 50;

A row with high tb_read and a low pruning ratio (pruned_files against read_files) points at layout, which is the first item in the slow-query order above.

Liquid clustering replaces static partitioning and Z-ordering with a clustering scheme you can change without rewriting the table. It's GA for Delta on Databricks Runtime 15.4 LTS and above. On Unity Catalog managed tables, CLUSTER BY AUTO lets Databricks choose and revise the keys from observed predicates, which needs predictive optimization (liquid clustering):

ALTER TABLE sales.gold.orders CLUSTER BY AUTO;
-- or, when you know the filter columns:
ALTER TABLE sales.gold.orders CLUSTER BY (customer_id, order_date);
OPTIMIZE sales.gold.orders;   -- clusters data already written

Hand table maintenance to predictive optimization. It runs OPTIMIZE, VACUUM and ANALYZE on Unity Catalog managed tables when the data says they're needed, and it's on by default for accounts created on or after 11 November 2024, with older accounts being rolled out (predictive optimization). Turn it on explicitly where it isn't, then read what it did and what it cost from its history table (Public Preview):

ALTER CATALOG sales ENABLE PREDICTIVE OPTIMIZATION;

SELECT catalog_name, schema_name, table_name, operation_type,
       COUNT(DISTINCT operation_id) AS operations,
       SUM(usage_quantity)          AS estimated_dbus
FROM system.storage.predictive_optimization_operations_history
WHERE usage_unit = 'ESTIMATED_DBU'
  AND start_time >= current_timestamp() - INTERVAL 30 DAYS
GROUP BY ALL
ORDER BY estimated_dbus DESC;

Once it's on, we'd delete the nightly OPTIMIZE and VACUUM jobs. Hand-scheduled maintenance runs too often on tables that haven't changed and not often enough on the one that has.

Turn on deletion vectors for tables that take small corrections. A delete, update or merge then marks rows instead of rewriting every affected file, and the physical rewrite waits for maintenance. They aren't on by default for every Delta table, since the workspace setting that auto-enables them varies by region (deletion vectors):

ALTER TABLE sales.silver.orders SET TBLPROPERTIES ('delta.enableDeletionVectors' = true);

Measure Photon rather than assume it. Photon is already on for serverless compute, SQL warehouses and serverless Lakeflow pipelines. On classic compute a Photon instance consumes DBUs at a different rate from the same instance without it (Photon), so the arithmetic changes rather than simply the speed. It bills at a higher rate per unit while typically completing the work in less time, so for scan-heavy and aggregation-heavy SQL it is usually cheaper in total and for some workloads it is not. Run the job both ways for a week and compare the billing rows.

Replace nightly rebuilds with incremental refresh. Materialized views and streaming tables in Lakeflow pipelines compute only what changed where they can. On a mature estate this is often the largest single saving, and it's a change to the table definition rather than to the architecture.

Open the query profile before resizing anything. It shows time per operator, files and bytes read against pruned, spill to disk, and the task duration spread that exposes skew. Adaptive query execution re-plans mid-flight from real statistics, which is why the plan in the profile isn't always the plan you read with EXPLAIN. For a serverless job, start from the run itself: since 26 October 2026 (generally available) the job run page shows rows read and written, the query count and performance insights for each task and for the whole run, with links to the queries behind them. It reads only the first 100 queries of each task run, and runs on classic compute don't show it (query performance metrics for serverless jobs). Where an Optimize button appears, it opens Genie Code with those insights; we'd review the change it proposes and rerun the job before accepting it.

Cost attribution and performance tooling across the platforms

Capability Databricks AWS Azure GCP
Spend broken down by team Tags plus billing system tables, queryable in SQL Cost Explorer plus cost allocation tags, per service Cost Management plus tags Billing export to BigQuery
Join spend to the query that caused it Query history and billing tables in one place Correlate Athena or Redshift logs with Cost Explorer yourself Correlate Synapse logs with Cost Management yourself Correlate BigQuery jobs with billing export yourself
Enforce tagging before compute starts Cluster policies refuse untagged compute IAM or SCP conditions, hand-written Azure Policy Organisation policy
Automatic table maintenance Predictive optimisation Glue optimiser for Iceberg tables Manual or scheduled BigQuery manages its own storage
Change physical layout without rewrite Liquid clustering Repartition and rewrite Repartition and rewrite Managed, less control
Per-query execution diagnostics Query profile with stage timings and spill EMR Spark UI, Redshift query plans Synapse monitoring BigQuery execution details
Scale to zero when idle Auto-termination and serverless Per service, varies Per service, varies BigQuery is already serverless

The pattern underneath all of this is the one that also runs through Observability and Reliability, which is that you cannot fix what you cannot see. Put the measurement in place first, then let the people generating the number look at it.