The Lakehouse — Why Databricks Exists
Almost every Databricks interview opens by checking whether you understand the problem it solves. Get this framing right and the rest of the interview is easier.
- Data warehouse = fast SQL + ACID, but expensive and rigid for raw/semi-structured data
- Data lake = cheap object storage (S3/ADLS/GCS), but no transactions, no schema guarantees
- Lakehouse = warehouse reliability (ACID, schema) on top of cheap lake storage — that layer is Delta Lake
- One copy of data serving both BI/SQL and ML, instead of copying between a lake and a warehouse
- Compute (Spark clusters / SQL warehouses) is decoupled from storage, so you scale and pay for them separately
Delta Lake — The Core Technology
Delta Lake is the single most asked Databricks topic. It is Parquet files plus a transaction log (the _delta_log), and that log is where the magic lives.
- ACID transactions on object storage via the ordered JSON transaction log
- Time travel: query an older version with VERSION AS OF / TIMESTAMP AS OF for audits and rollback
- Schema enforcement rejects bad writes; schema evolution (mergeSchema) allows controlled changes
- MERGE INTO powers upserts and CDC — the backbone of incremental pipelines
- OPTIMIZE compacts small files; ZORDER co-locates data on a column to skip files at read time
- VACUUM removes old files past the retention window (default 7 days) to control storage cost
Medallion Architecture (Bronze → Silver → Gold)
Interviewers use this to check whether you can design a pipeline, not just run one cell.
- Bronze: raw ingested data, append-only, keeps history and lineage exactly as it arrived
- Silver: cleaned, de-duplicated, conformed — joins and quality rules applied
- Gold: business-level aggregates and star schemas that feed BI dashboards and ML features
- Each layer is a Delta table; each hop is an idempotent, re-runnable transformation
- Why it matters: you can reprocess Silver/Gold from Bronze without re-ingesting from the source
Ingestion & Jobs — Auto Loader, Workflows, Streaming
The operational half of the interview: how does data actually get in, and how do you schedule it reliably.
- Auto Loader (cloudFiles) incrementally ingests new files from cloud storage without re-listing everything
- Structured Streaming with checkpoints gives exactly-once processing and safe restarts
- Databricks Workflows (Jobs) orchestrate multi-task DAGs with retries and dependencies
- Delta Live Tables (DLT) declares pipelines with built-in data-quality expectations
- Job clusters (spun up per run) are cheaper for scheduled work than always-on all-purpose clusters
Governance & Performance — Unity Catalog + Spark Tuning
Senior-leaning rounds probe governance and cost. This is where you separate yourself from someone who only ran notebooks.
- Unity Catalog: one governance layer across workspaces — three-level namespace catalog.schema.table
- Fine-grained access control, column/row-level security, lineage and audit in Unity Catalog
- Photon: the vectorised C++ engine that speeds up SQL/DataFrame workloads
- Partition on low-cardinality columns (date, region); use ZORDER for high-cardinality filter columns
- The small-files problem kills read speed — OPTIMIZE, and prefer fewer larger files
- Cost levers: job clusters over all-purpose, autoscaling, spot instances, right-sized cluster and auto-terminate
Common Interview Questions & Answers
Q1. What is a Lakehouse and how is it different from a data warehouse and a data lake?
A data warehouse gives you ACID transactions and fast SQL but is expensive and awkward for raw or semi-structured data. A data lake gives you cheap, scalable object storage but no transactions, no schema guarantees and no reliable updates. A Lakehouse puts warehouse-grade reliability — ACID, schema enforcement, performance — directly on top of cheap lake storage, using Delta Lake as that reliability layer. The practical win is one copy of the data serving both BI and ML, instead of maintaining a lake and a separate warehouse and copying between them.
Frame it as 'one copy of data, two workloads' — that's the line interviewers are listening for.
Q2. How does Delta Lake provide ACID transactions on object storage that isn't transactional?
Through the transaction log — the _delta_log folder next to the Parquet files. Every write creates a new, ordered JSON commit that lists which files were added and removed. Readers reconstruct the current table state from the log, so they only ever see fully committed versions; a failed write simply never gets a commit. That ordered log is also what enables time travel, because any previous version is just an earlier point in the log.
Mentioning the _delta_log by name signals you've actually looked under the hood.
Q3. Walk me through the medallion architecture and why you'd use it.
Bronze holds raw ingested data, append-only, so I keep full history and lineage exactly as it arrived. Silver is cleaned and conformed — de-duplicated, type-cast, joined, with quality rules applied. Gold is business-level aggregates and star schemas that feed dashboards and ML features. Each layer is a Delta table and each transformation is idempotent, so the biggest benefit is reprocessing: if business logic changes, I can rebuild Silver and Gold from Bronze without going back to the source systems.
The reprocessing point is the 'why' — most candidates only recite the three names.
Q4. Your Databricks job cost doubled this month with the same data volume. Where do you look?
First, cluster type — is scheduled work running on an always-on all-purpose cluster instead of a job cluster that terminates after the run. Second, cluster sizing and auto-terminate — an idle cluster left running overnight is pure waste. Third, the small-files problem: thousands of tiny files inflate read time and shuffle, so I'd check whether OPTIMIZE is running. Fourth, a skewed join or an accidental full recompute from a missing checkpoint. I'd confirm in the Spark UI which stage dominates before changing anything.
Lead with the cheap operational causes (cluster left on) before the exotic ones — that's what a real on-call engineer does.
Q5. When do you partition a Delta table versus using ZORDER?
Partitioning physically splits data into folders and works best on low-cardinality columns you filter on constantly, like date or region — over-partitioning on something high-cardinality creates the small-files problem. ZORDER co-locates related data within files on one or more high-cardinality columns, so reads skip files via data-skipping statistics without exploding the folder count. In practice I partition by date and ZORDER by a frequently filtered id, then run OPTIMIZE to apply it.
Saying 'partition low-cardinality, ZORDER high-cardinality' in one sentence is the crisp answer.
Q6. What does Unity Catalog give you that workspace-level access control doesn't?
Unity Catalog is a single governance layer that spans workspaces, with a three-level namespace — catalog.schema.table — instead of governance being trapped per workspace. It adds centralised fine-grained access control, including column- and row-level security, plus automatic data lineage and audit logging. So instead of each team's workspace being its own island of permissions, you get one consistent, auditable model across the whole org.
The 'spans workspaces + lineage' combination is the differentiator to name.
Common Mistakes to Avoid
Describing Databricks as 'just notebooks' with no mention of Delta Lake or the Lakehouse idea
Confusing Delta Lake (the storage layer) with Databricks (the platform)
Not knowing what the _delta_log actually does
Running scheduled jobs on all-purpose clusters and not knowing why that's expensive
Partitioning on a high-cardinality column and creating millions of small files
Claiming streaming experience but not knowing what a checkpoint is for
Expert Tips
Always tie an answer back to reliability or cost — those are the two things a Databricks hire is trusted with
Know the MERGE INTO pattern cold; upserts/CDC is the most common real task
Be able to sketch Bronze → Silver → Gold on a whiteboard in 30 seconds
Mention Photon and job clusters — they signal you think about performance and money
Free Databricks Community Edition lets you practise Delta, time travel and OPTIMIZE hands-on
Pre-Interview Checklist
7 itemsFrequently Asked Questions
Do I need to know Spark to clear a Databricks interview?
Yes — Databricks runs on Spark, so Spark fundamentals (shuffles, narrow vs wide transformations, data skew, joins) come up alongside Delta Lake. Pair this guide with the PySpark interview guide.
Is Databricks only for data engineers?
No. Data analysts use Databricks SQL and dashboards, ML engineers use it for feature engineering and MLflow, and BI developers pull Gold-layer tables into Power BI or Tableau. The Lakehouse basics are worth knowing for any data role.
SQL warehouse vs all-purpose cluster — which should I mention?
SQL warehouses are optimised for BI/SQL analytics workloads; all-purpose clusters are for interactive notebook development; job clusters are for scheduled production runs and are the cheapest for that. Knowing when to use each is a strong signal.
Ready to ace your next interview?
Practice with SpeakWell AI. Upload your resume → get resume-based questions → practice with AI interviewers → improve communication → track progress → get instant AI feedback.