Databricks interview questions: Delta Lake, Unity Catalog and pipelines

Databricks interview questions check whether you can run Spark as a managed platform: storing tables in Delta Lake, governing them in Unity Catalog, loading files with Auto Loader, scheduling work as jobs and pipelines, and keeping compute costs sane. Expect Delta internals such as the transaction log, MERGE and VACUUM, a medallion pipeline to design, and a slow or expensive job to fix.

By Published 10 min read

How Databricks shows up in interviews

Databricks questions come up in data engineer, analytics engineer, ML engineer and data platform interviews, and in consulting roles that build lakehouses for clients. Engine questions overlap with Spark interview questions, so this page stays on what the platform adds: the table format, the catalog, ingestion, orchestration and cost. A typical loop has a concept screen, a hands-on task in a notebook or on a shared screen (PySpark or SQL), and a design conversation about a bronze, silver and gold pipeline. Some candidates also hold a Databricks certification, and interviewers may ask about topics from those exams, but a certificate rarely replaces the hands-on round.

Platform fundamentals

Fundamentals
QuestionWhat it testsWhat a strong answer shows
What is a lakehouse?Core ideaWarehouse features (transactions, schemas, SQL, governance) on top of open files in cheap object storage, so BI, data engineering and ML work on one copy of the data instead of a lake plus a separate warehouse.
What runs in the control plane and what runs in the compute plane?ArchitectureThe control plane hosts the web app, notebooks, job scheduler and cluster manager. Classic compute runs in the customer's own cloud account, and serverless compute runs in the provider's account. Data stays in the customer's storage either way.
All-purpose cluster versus job cluster?Compute choiceAn all-purpose cluster is shared and interactive, used for notebooks. A job cluster starts for one job run and terminates after it, which is cheaper and isolates the workload. Production jobs should not run on someone's notebook cluster.
What is the Databricks Runtime?VersionsThe packaged image a cluster runs: a Spark version plus Delta Lake, libraries and Databricks optimizations. Long-term support versions exist; jobs should pin a runtime and upgrade on purpose.
What is Photon?PerformanceA native vectorized query engine that runs SQL and DataFrame operations faster than the JVM engine for many workloads. It is transparent to code, but not every operation or UDF runs in it, and it can change the cost of a cluster.
What is a SQL warehouse?ServingCompute for SQL queries and BI tools, sized in T-shirt sizes and able to scale out with more clusters for concurrency. Serverless warehouses start in seconds; classic ones run in your account.
Why avoid writing tables to DBFS root?GovernanceDBFS root is workspace storage with weak access control and no catalog governance. Current guidance is to use Unity Catalog managed tables and volumes instead.
What is dbutils used for?Notebook toolingFile operations, secrets (dbutils.secrets.get, values redacted in output), widgets for parameters and chaining notebooks. Credentials belong in secret scopes, never in notebook text.
Fundamentals. Scroll sideways on a small screen.

Delta Lake internals

  • What is in the _delta_log folder? One JSON commit file per table version listing files added and removed, plus metadata and protocol changes, and periodic Parquet checkpoints so readers do not replay every JSON file. A reader builds the current snapshot from the latest checkpoint plus later commits.
  • How do concurrent writers avoid corrupting a table? Optimistic concurrency. Each writer reads a version, writes new files, then tries to commit the next version. If another commit landed first and touched the same files or partitions, the commit is retried or fails with a conflict error.
  • What is time travel and what limits it? Querying an older version with VERSION AS OF or TIMESTAMP AS OF, and RESTORE to roll back. It only works while the old files still exist, so VACUUM and log retention settings decide how far back you can go.
  • What does VACUUM do, and how can it hurt? It deletes data files no longer referenced by recent versions and older than the retention threshold (seven days by default in most setups). Shortening the threshold can break time travel and long-running readers still using old files.
  • Why run OPTIMIZE? Streaming and frequent small writes leave thousands of small files. OPTIMIZE compacts them into larger ones, which cuts file listing and open costs. Auto compaction and optimized writes can do some of this at write time.
  • Z-ordering versus liquid clustering? Z-order rewrites files so rows with nearby values of chosen columns sit together, improving data skipping, but it is a full rewrite of the affected data. Liquid clustering, available in newer runtimes, replaces partitioning and Z-order with clustering keys you can change later and clusters data incrementally.
  • Schema enforcement versus schema evolution? By default a write with unexpected columns or types fails. With mergeSchema (or automatic schema evolution for MERGE) new columns are added. Enforcement is the safe default; evolution should be a deliberate choice.
  • What is Change Data Feed? When enabled on a table, Delta records row-level inserts, updates and deletes per version, so downstream jobs read only what changed instead of diffing full snapshots.
MERGE INTO main.silver.customers AS t
USING (
  SELECT customer_id, email, country, op, updated_at
  FROM (
    SELECT c.*,
           ROW_NUMBER() OVER (PARTITION BY customer_id
                              ORDER BY updated_at DESC) AS rn
    FROM main.bronze.customer_changes AS c
    WHERE ingest_date = current_date()
  ) AS ranked
  WHERE rn = 1
) AS s
ON t.customer_id = s.customer_id
WHEN MATCHED AND s.op = 'D' AND s.updated_at > t.updated_at THEN
  DELETE
WHEN MATCHED AND s.op <> 'D' AND s.updated_at > t.updated_at THEN
  UPDATE SET email = s.email, country = s.country, updated_at = s.updated_at
WHEN NOT MATCHED AND s.op <> 'D' THEN
  INSERT (customer_id, email, country, updated_at)
  VALUES (s.customer_id, s.email, s.country, s.updated_at);
Upserting a day of change records into a silver table. The batch is deduplicated first, because MERGE fails when several source rows match one target row. Deletes and updates apply only when the change is newer than the stored row. The Delta SQL was not run; the merge semantics were checked with SQLite and a Python replay model.

Unity Catalog and governance

Intermediate questions
QuestionWhat it testsWhat a strong answer shows
What does Unity Catalog add?GovernanceOne place for permissions, auditing and lineage across workspaces, with a three-level name: catalog.schema.table. Before it, each workspace had its own Hive metastore and table ACLs.
Managed versus external tables in Unity Catalog?StorageFor a managed table, Unity Catalog controls the storage location and lifecycle, and dropping the table removes its data after a retention period. An external table points at a path you manage through an external location; dropping it leaves the files.
Storage credentials and external locations?Cloud accessA storage credential wraps a cloud identity, such as an IAM role or a managed identity. An external location pairs it with a storage path, and grants on the location decide who may create tables or read files there.
What are volumes?FilesGoverned storage for non-tabular files such as CSV drops, images or model files, addressed by a /Volumes/catalog/schema/volume path, with the same permission model as tables.
How would you give analysts read access to one schema?GrantsGrant USE CATALOG on the catalog, USE SCHEMA and SELECT on the schema, to a group rather than to individuals. Permissions inherit downward, so a schema-level SELECT covers future tables in it.
How do you hide a column or rows from some users?Fine-grained accessDynamic views that check group membership, or row filters and column masks attached to the table where your platform version supports them.
What lineage does Unity Catalog capture?LineageTable and column lineage from queries run on the platform, visible in the catalog UI, which helps impact analysis before changing a table. Work done outside Databricks is not captured automatically.
Intermediate questions. Scroll sideways on a small screen.

Ingestion, pipelines and jobs

  • Auto Loader versus COPY INTO? Both load files from cloud storage idempotently. Auto Loader is a streaming source that scales to millions of files and tracks progress in a checkpoint; COPY INTO is a SQL command suited to occasional loads of thousands of files.
  • Directory listing versus file notification mode? Listing scans the input path each time, which is simple but slows down on huge folders. Notification mode subscribes to cloud storage events through a queue, which scales better but needs extra cloud setup and permissions.
  • How does Auto Loader handle schema changes? It infers a schema, stores it at the schema location, and by default stops when a new column appears so the stream restarts with the evolved schema. Values that do not fit the schema land in a rescued data column instead of being dropped.
  • What does trigger(availableNow=True) do? It processes everything new since the last checkpoint in batches, then stops. You get streaming bookkeeping with batch scheduling, which is how many hourly or daily ingestion jobs run.
  • What are declarative pipelines (Delta Live Tables)? You declare tables and their queries, and the framework works out dependencies, retries and infrastructure. Databricks has renamed this product over time, so use the name your interviewer uses. Expectations attach data quality rules that can record, drop or fail on bad rows.
  • Streaming table versus materialized view in a pipeline? A streaming table processes each new input row once and suits append-only sources. A materialized view stores a query result and refreshes it, recomputing incrementally where it can, which suits aggregations and joins over changing data.
  • How do you structure a multi-step job? One job with tasks and dependencies, a job cluster or serverless compute, retries per task, timeouts and alerts. A failed run can be repaired by rerunning only the failed tasks and their dependents.
  • How do you deploy notebooks and jobs through CI? Code in Git (Git folders in the workspace for development), and Databricks Asset Bundles to define jobs, pipelines and their settings as files deployed per environment from a CI pipeline.
from pyspark.sql import functions as F

landing = "s3://example-landing/orders/"
checkpoints = "/Volumes/main/ops/checkpoints/orders_bronze"

raw = (
    spark.readStream.format("cloudFiles")
    .option("cloudFiles.format", "json")
    .option("cloudFiles.schemaLocation", checkpoints + "/schema")
    .load(landing)
)

(
    raw.withColumn("ingested_at", F.current_timestamp())
    .withColumn("source_file", F.col("_metadata.file_path"))
    .writeStream.option("checkpointLocation", checkpoints)
    .trigger(availableNow=True)
    .toTable("main.bronze.orders")
)
Bronze ingestion with Auto Loader: read new JSON files, add load metadata, append to a Unity Catalog table, stop when caught up. Paths and names are placeholders. Not run; the file metadata column depends on the runtime version.

Medallion design, performance and cost

Senior and scenario questions
QuestionWhat it testsWhat a strong answer shows
Explain bronze, silver and gold.LayeringBronze keeps raw data as received, append-only, for replay. Silver is cleaned, deduplicated and conformed, keyed by business entity. Gold holds aggregates and models shaped for a consumer. The value is replay and clear ownership, not the names.
A nightly MERGE now takes four hours.Delta tuningCheck whether the merge condition lets Delta prune files (add a date or cluster key to the ON clause), whether the target has thousands of small files, whether the source has duplicate keys, and whether the table should use liquid clustering on the merge key.
The monthly bill doubled.Cost controlLook at usage by cluster and job: all-purpose clusters left running, no auto-termination, oversized nodes, jobs on interactive clusters, warehouses that never scale down. Fix with cluster policies, job clusters, auto-termination and right-sizing.
A streaming job reprocessed all files after a change.CheckpointsThe checkpoint location changed or was deleted, so the stream started over. Checkpoints are tied to the query; keep them stable and back them up, and make the sink idempotent so a replay does not duplicate rows.
Queries filter on event date but read the whole table.Data skippingFile statistics only help when the data is laid out by the filter column. Cluster or Z-order by it, make sure statistics are collected on it, and check the query profile for files read versus pruned.
Design ingestion for 2,000 CSV files an hour from partners.DesignFiles land in a volume or external location, Auto Loader with a pinned schema and a rescued data column loads bronze, a pipeline with expectations builds silver, bad rows go to a quarantine table, and partners get a report on rejects.
Two jobs write to the same table and one keeps failing.ConcurrencyA concurrent modification conflict: both touch the same files. Separate their writes by partition or clustering key, serialize them in one job, or make one an append-only writer.
Senior and scenario questions. Scroll sideways on a small screen.

Moving Hadoop and Hive workloads to Databricks

Many Databricks roles exist because a company is leaving an on-premise cluster. Interviewers like to hear an order of operations: inventory jobs, tables and consumers; copy data to object storage and convert Hive tables to Delta (in place where the files are Parquet, by rewrite otherwise); register them in Unity Catalog; port HiveQL to Spark SQL, which mostly runs unchanged apart from SerDes, UDFs and engine settings; rewrite MapReduce or Pig logic in PySpark or SQL; run old and new pipelines side by side and compare row counts, sums and sample rows per partition before switching consumers. Mention that permissions need to be redesigned as grants, not copied file by file. The engine-level background sits in Hadoop interview questions and Hive interview questions.

Fictional example

Answering "Design a pipeline for clickstream data on Databricks"
Interviewer
Mobile events arrive as JSON files in cloud storage every few minutes. Product wants daily active users and funnel tables by nine each morning. Walk me through it.
Candidate
I would land the files in an external location and load bronze with Auto Loader, keeping every field as received plus the file path and load time, so we can replay if a parsing rule changes. Silver would deduplicate on the event ID, because mobile clients retry, parse timestamps to UTC and drop or quarantine events failing basic expectations such as a missing user ID. I would cluster silver by event date and event type, since that is how the funnel queries filter. Gold would hold a daily active users table and a funnel table built by a scheduled job after the silver run, on job compute rather than a shared notebook cluster. For the nine o'clock deadline I would set the job to start early enough for a retry, alert on failure and on a row count far below the seven-day average, and expose gold through a SQL warehouse with read grants for the product analysts' group. If the event volume were small, I would question whether we need continuous streaming at all; an availableNow trigger every 30 minutes would be cheaper.

How to prepare for Databricks interview questions

  1. Get hands-on accessUse a free or trial workspace if one is available to you, or your employer's sandbox. Create a catalog and schema, load a CSV into a managed table and query it from a notebook and a SQL warehouse.
  2. Read a Delta log yourselfWrite to a table five times with inserts, an update and a delete, then open the JSON files in _delta_log, run DESCRIBE HISTORY and query an old version. Explaining the log from memory is a strong signal.
  3. Build a three-layer pipelineAuto Loader into bronze, a deduplicating MERGE into silver, an aggregate gold table, scheduled as a two-task job with a retry. Then break it: change the input schema and see what happens.
  4. Practice the cost conversationBe ready to explain cluster types, auto-termination, policies and why a job cluster is cheaper than a notebook cluster, without quoting prices you are unsure of.
  5. Prepare one tuning and one incident storyA slow MERGE or small-files problem you fixed, and a pipeline failure you diagnosed, each with cause, fix and the check you added afterwards.

Databricks work rarely stands alone. dbt interview questions covers the SQL modeling layer many teams run on top of it, Airflow interview questions covers orchestration when jobs span several systems, and Snowflake interview questions covers the warehouse it is most often compared with.

Design questions about lakehouses are long, and it is easy to skip governance or cost when talking under pressure. Natively, an AI interview assistant for Mac and Windows, can record a transcript of your mock pipeline design, read a notebook cell, a query profile or a stack trace from a screenshot, and suggest points you have not covered yet while you are speaking. Add your résumé and the job description on Pro or the free trial and its suggestions follow them, and every practice session leaves a transcript and notes to compare against the next one.

Questions people ask

What are common Databricks interview questions?

How the Delta Lake transaction log works, MERGE, time travel, VACUUM and OPTIMIZE, Unity Catalog's three-level namespace and grants, Auto Loader, job versus all-purpose clusters, the bronze, silver and gold layout, and how to fix a slow or costly job.

What is the difference between Delta Lake and Parquet?

Delta Lake stores data as Parquet files but adds a transaction log. The log gives ACID commits, schema enforcement, time travel, MERGE, UPDATE and DELETE, which plain Parquet folders do not have.

What is Unity Catalog in Databricks?

The governance layer that names data as catalog.schema.table and manages permissions, auditing and lineage for tables, views, volumes and models across workspaces.

How should I prepare for a Databricks data engineer interview?

Build a small bronze, silver and gold pipeline with Auto Loader and a MERGE, read the Delta log of a table you changed, schedule it as a job, and prepare one story about tuning a slow job or cutting compute cost.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP