Azure Databricks interview questions and answers for data engineers

Azure Databricks interview questions focus on the platform around Spark: how the workspace, control plane and compute fit together, how Delta Lake gives tables ACID transactions and time travel, how Unity Catalog governs data on ADLS Gen2, and how you build reliable ingestion and jobs without wasting compute. Expect fundamentals on clusters and notebooks, intermediate questions on MERGE, Auto Loader and secrets, and senior scenarios on small files, failing jobs, governance migrations and cost.

By Published 7 min read

How Databricks questions differ from Spark questions

Spark questions ask how the engine works: partitions, shuffles, joins and memory. Azure Databricks questions assume some of that and move to the platform decisions a data engineer makes every week: which compute to run on, how tables are stored and governed, how data lands from ADLS Gen2, how jobs are scheduled and deployed, and how access is granted. Data engineering, analytics engineering and platform roles on Azure all ask them. Brush up the engine on Spark interview questions and the wider cloud on Azure interview questions.

  1. Platform conceptsWorkspace layout, compute types, notebooks versus jobs, runtimes.
  2. Delta and SQLWrite or review a MERGE, explain the transaction log, recover from a bad write with time travel.
  3. Pipeline designBronze, silver and gold layers, incremental ingestion, schema drift, data quality checks.
  4. Operations and governancePermissions in Unity Catalog, secrets, CI/CD, failing jobs and cost reviews.

Azure Databricks fundamentals questions

Platform basics for first rounds
QuestionWhat it testsWhat a strong answer shows
What are the control plane and the compute plane?ArchitectureThe control plane, run by Databricks, hosts the web app, notebooks, job scheduler and cluster manager. The compute plane is where data is processed: classic compute runs in VMs in your Azure subscription, while serverless compute runs in Databricks-managed infrastructure.
All-purpose compute versus job compute?Compute choiceAll-purpose clusters are shared and interactive, for notebooks and exploration. Job compute starts for one job run and ends with it, which is cheaper and isolates production work.
What is a SQL warehouse?SQL workloadsCompute tuned for SQL queries and BI tools, with classic, pro and serverless types. Analysts and dashboards use it instead of a Spark cluster.
What is the Databricks Runtime?VersionsThe packaged Spark version plus libraries and Databricks optimizations. ML runtimes add machine learning libraries. Pin a long-term support runtime for production jobs and upgrade deliberately.
What does Photon do?PerformanceA native vectorized engine that speeds up many SQL and DataFrame operations. It changes the compute cost profile, so test whether the speedup pays for it on your workload.
What is Delta Lake?Storage layerParquet data files plus a transaction log in _delta_log. The log gives ACID commits, schema enforcement, time travel and safe concurrent writes on cloud storage.
Where does the data actually live?StorageIn your storage account, usually ADLS Gen2. Managed tables live in storage that Unity Catalog manages; external tables point at a path you manage.
What are auto-termination and autoscaling?Cost basicsAuto-termination stops an idle cluster after a set time. Autoscaling adds and removes workers between a minimum and maximum. Both are the first cost questions in many interviews.
What is the medallion architecture?Design patternBronze holds raw data as it arrived, silver holds cleaned and conformed tables, gold holds business-level aggregates. It is a convention for clarity and reprocessing, not a product feature.
How do notebooks get into version control?Engineering practiceGit folders (formerly Repos) link the workspace to a Git provider, and Databricks Asset Bundles describe jobs, pipelines and their settings as code for CI/CD.
Platform basics for first rounds. Scroll sideways on a small screen.

Delta Lake questions

  • What happens on a Delta write? New Parquet files are written, then a commit adds a JSON entry to the transaction log listing files added and removed. Readers only see committed versions, so a failed job leaves no half-written table.
  • How does time travel work, and what limits it? Queries can read an older version with VERSION AS OF or TIMESTAMP AS OF, and RESTORE rolls a table back. Once VACUUM deletes the old files, those versions cannot be read.
  • What does VACUUM remove, and why is the retention check there? Data files no longer referenced by the current table state and older than the retention threshold. Lowering it below the default can break long-running readers and time travel, so Databricks makes you override a safety check.
  • OPTIMIZE, Z-ORDER or liquid clustering? OPTIMIZE compacts small files. Z-ordering colocates data by chosen columns to improve data skipping. Liquid clustering is the newer approach that lets you change clustering keys without rewriting the table layout by hand; Databricks recommends it for new tables.
  • Schema enforcement versus schema evolution? By default, writes with mismatched columns fail. With mergeSchema or automatic schema evolution enabled, new columns are added. Say when you would want each: silver tables usually want enforcement.
  • What is Change Data Feed? A table property that records row-level inserts, updates and deletes, so downstream tables can process only what changed instead of re-reading everything.
  • Why does MERGE fail with 'multiple source rows matched'? The source has more than one row for the same key. Deduplicate the batch first, keeping the latest row per key.
-- Change feed with two updates for customer 2 in the same batch.
CREATE TABLE updates (customer_id INT, email TEXT, updated_at TEXT);
INSERT INTO updates VALUES
  (1, 'a@example.com',     '2026-11-30 09:00'),
  (2, 'b-old@example.com', '2026-11-30 09:05'),
  (2, 'b-new@example.com', '2026-11-30 10:15');

-- Keep only the latest row per key before merging.
SELECT customer_id, email, updated_at
FROM (
  SELECT *, ROW_NUMBER() OVER (
           PARTITION BY customer_id ORDER BY updated_at DESC) AS rn
  FROM updates
)
WHERE rn = 1
ORDER BY customer_id;

-- Output:
-- 1|a@example.com|2026-11-30 09:00
-- 2|b-new@example.com|2026-11-30 10:15
Deduplicating a batch before MERGE, keeping the latest row per key. This version runs in SQLite; the same window function works in Databricks SQL.
MERGE INTO main.crm.customers AS t
USING latest_updates AS s
  ON t.customer_id = s.customer_id
WHEN MATCHED AND s.updated_at > t.updated_at THEN
  UPDATE SET t.email = s.email, t.updated_at = s.updated_at
WHEN NOT MATCHED THEN
  INSERT (customer_id, email, updated_at)
  VALUES (s.customer_id, s.email, s.updated_at);
The Delta MERGE that follows, in Databricks SQL, using the deduplicated rows as a view. Shown for reading; it needs a Databricks workspace to run.

The extra condition on updated_at is what interviewers look for: it stops a late, older record from overwriting newer data when batches arrive out of order.

Unity Catalog and security questions

Governance questions
QuestionWhat it testsWhat a strong answer shows
What is the three-level namespace?Namingcatalog.schema.table. A metastore sits above catalogs and is usually one per Region, attached to the workspaces that use it.
Managed versus external tables?Ownership of filesDropping a managed table removes its data (after a retention period); Unity Catalog manages the files. Dropping an external table removes only metadata; the files at the path stay.
What are storage credentials and external locations?Access to ADLSA storage credential wraps an Azure identity, typically a managed identity on the Access Connector for Azure Databricks. An external location pairs it with a storage path, and grants on it decide who can read or write there.
Why move away from mount points?Legacy patternsMounts give everyone on the workspace the same access to a path, bypassing table-level permissions. Unity Catalog external locations and volumes give governed, auditable access instead.
How do you grant an analyst read access to one schema?GrantsGrant USE CATALOG on the catalog, USE SCHEMA and SELECT on the schema, preferably to a group rather than a person. Mention that ownership and grants are inherited down the hierarchy.
How should notebooks read a database password?SecretsFrom a secret scope, often backed by Azure Key Vault, with dbutils.secrets.get. Values are redacted in notebook output; never paste them into code or job parameters.
What is secure cluster connectivity?NetworkingCluster nodes get no public IP addresses and reach the control plane through an outbound relay. Combined with VNet injection and Private Link, it keeps traffic off the public internet.
Where do you see who read a table?Audit and lineageUnity Catalog captures lineage, and system tables hold audit and usage records you can query, subject to what is enabled in the account.
Governance questions. Scroll sideways on a small screen.
(spark.readStream.format("cloudFiles")
    .option("cloudFiles.format", "json")
    .option("cloudFiles.schemaLocation", "/Volumes/main/raw/_schemas/orders")
    .load("abfss://landing@acmelake.dfs.core.windows.net/orders/")
    .writeStream
    .option("checkpointLocation", "/Volumes/main/raw/_checkpoints/orders")
    .trigger(availableNow=True)
    .toTable("main.bronze.orders"))
Incremental file ingestion with Auto Loader into a bronze table. Runs only on Databricks (not executed here); paths are placeholders.
  • What does the checkpoint store, and what if you delete it? Which files and offsets have been processed. Deleting it makes the stream start over and reprocess everything, so treat it as part of the table.
  • Directory listing or file notification mode? Listing is simple and fine for modest folders. File notification mode uses Azure Event Grid and a queue so very large or busy folders do not need to be listed on every run.
  • What does `availableNow` give you? Streaming semantics (exactly-once bookkeeping through the checkpoint) on a scheduled job that processes what is there and stops, so you do not pay for an always-on cluster.
  • How do you handle a new column in incoming JSON? Auto Loader's schema evolution can add it or rescue unexpected fields into a rescued data column, and the stream restarts to pick up the new schema. Decide which behavior each layer should have.

Senior and scenario questions

Situations a lead data engineer is expected to handle
ScenarioLikely causeWhat a strong answer covers
A nightly job that took 20 minutes now takes three hours.Data growth or skewOpen the Spark UI for the slowest stage, look for skewed tasks and spill, check whether a small table stopped being broadcast, and check for thousands of small files that need compaction.
The Databricks bill doubled with no new projects.Idle or oversized computeReview usage in system tables by cluster and job, find all-purpose clusters running jobs or never terminating, apply cluster policies with auto-termination and size limits, and move schedules to job or serverless compute.
Two jobs write to the same Delta table and one fails with a concurrent modification error.Write conflictsDelta uses optimistic concurrency. Partition or cluster so the jobs touch disjoint files, make the MERGE condition narrow, or serialize the writers.
A user accidentally overwrote a gold table.RecoveryUse DESCRIBE HISTORY to find the last good version and RESTORE to it, then tighten write permissions so only the pipeline's service principal can write.
The company wants to move from the workspace Hive metastore to Unity Catalog.MigrationInventory tables and mounts, create storage credentials and external locations, upgrade external tables in place where possible and copy managed ones, map old permissions to groups, and migrate jobs in waves with validation queries.
Data must not leave a private network.Network designVNet injection, secure cluster connectivity, Private Link to the workspace and storage, and firewall rules on the storage account; confirm what serverless compute requires before allowing it.
Situations a lead data engineer is expected to handle. Scroll sideways on a small screen.

Fictional example

Answering "Design ingestion for files that land in ADLS every few minutes"
Interviewer
Partners drop JSON order files into a storage container all day. Analysts want a clean orders table that is at most an hour behind.
Candidate
I would land raw files untouched, then build three layers in Unity Catalog. Bronze: Auto Loader in file notification mode reads the container into a bronze table with the source file name and load time, scheduled hourly with availableNow so compute stops between runs. Silver: deduplicate by order ID keeping the latest update, enforce the schema, and MERGE into the orders table with a guard against older records. Expectations or simple checks quarantine bad rows instead of failing the run. Gold: the aggregates analysts query through a SQL warehouse. Jobs run on job compute under a cluster policy, deployed with an asset bundle, and alerts fire on failure or when the table is more than an hour stale.

Azure Databricks practice plan

  • Days 1 and 2: draw the control plane, compute plane, storage account and Unity Catalog objects, and explain who owns each.
  • Day 3: write MERGE statements for an upsert, a soft delete and an out-of-order update; practice the dedup step until you can write it from memory.
  • Day 4: explain time travel, VACUUM and OPTIMIZE together, including what breaks if retention is too short.
  • Day 5: design an Auto Loader pipeline with bronze, silver and gold layers and say what lives in each checkpoint.
  • Days 6 and 7: rehearse the scenario table, especially the slow job and the doubled bill, with the first three things you would open.

For the concepts underneath, big data interview questions covers file formats, partitioning and batch versus streaming. If the role also wires event-driven triggers around the lake, Azure Functions interview questions covers the serverless side.

Platform questions are long answers with many moving parts, and it is easy to skip governance when you are talking about pipelines. Natively, an AI interview assistant for Mac and Windows, transcribes a mock data engineering round on your computer so you can check afterward whether you covered permissions and cost as well as the code. In practice it can read a notebook cell or an error from a screenshot and help with the code, and with Pro or the free trial it uses the résumé and job description you add. Transcripts and notes are saved for review.

Questions people ask

What Azure Databricks questions are asked in data engineer interviews?

Control plane versus compute plane, all-purpose versus job compute, Delta Lake transactions, MERGE, time travel and VACUUM, Unity Catalog permissions and external locations, Auto Loader, secrets and cost control.

How are Databricks questions different from Spark questions?

Spark questions cover the engine: partitions, shuffles and joins. Databricks questions cover the platform around it: compute choices, Delta tables, governance with Unity Catalog, ingestion, jobs and deployment.

Why does a Delta MERGE fail with multiple source rows matched?

The source batch has more than one row for the same key. Deduplicate it first, for example with ROW_NUMBER over the key ordered by update time, and keep only the latest row.

Do Azure Databricks interviews include coding?

Often. Expect SQL with window functions and MERGE, and PySpark transformations, plus a pipeline design discussion covering layers, schema changes and data quality.

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