Skip to content
tezvyn:
Menu

Data Warehouse vs. Data Lake vs. Lakehouse

Source: docs.databricks.comMediumHow cards are made

Tests your grasp of modern data architectures. A great answer defines warehouses (structured, schema-on-write) and lakes (raw, schema-on-read), then explains how a lakehouse adds ACID transactions and governance on top of a lake.

What's really being asked

Your knowledge of large-scale data management patterns. The interviewer wants to see if you understand the 'why' behind these architectures—the business needs and technical trade-offs that drive their design. Can you articulate the problems solved by each (BI vs. ML) and the pain points that led to the lakehouse concept, such as data silos, redundant costs, and stale data?

The full answer

First, define a Data Warehouse as a system optimized for Business Intelligence (BI) and reporting. It uses highly structured, processed data and a 'schema-on-write' model, making it reliable but relatively inflexible and expensive. Second, contrast this with a Data Lake, a central repository for raw data in any format. It uses a 'schema-on-read' model, making it flexible and low-cost, which is ideal for data science and machine learning, but can become an ungoverned 'data swamp'. Third, introduce the Lakehouse as a hybrid architecture that combines the best of both. It is built on low-cost data lake storage but adds a transactional metadata layer (like Delta Lake or Apache Iceberg). This layer provides critical warehouse-like features directly on the lake, including ACID transactions, schema enforcement and evolution, and unified governance. The primary benefit is creating a single source of truth for all workloads—from BI to ML—eliminating data duplication and improving freshness.

The mistakes people make

Vaguely describing a lakehouse as just 'a faster data lake' without mentioning the reliability and governance features. Simply listing features without explaining the trade-offs, for example, saying 'warehouses are for SQL, lakes are for Python' without explaining the underlying schema and data structure reasons. Failing to name the key enabling technologies; a senior answer mentions the transactional layer (Delta Lake, Iceberg, Hudi) as the core innovation. Confusing the 'medallion architecture' (bronze, silver, gold tables) with the lakehouse itself; the medallion pattern is a method for organizing data within a lakehouse, not the definition of it.

What usually comes next

When would you still recommend a traditional data warehouse over a lakehouse? What are the core technical components that enable a lakehouse? Can you describe the 'medallion architecture' and explain how it helps prevent a data swamp?

A concrete example

A company ingests raw, real-time clickstream data (JSON) into its 'bronze' layer in a data lake. A scheduled job cleans, de-duplicates, and validates this data, saving it as a Delta table in the 'silver' layer. This provides an ACID-compliant, versioned, single source of truth. From this silver table, two things happen: first, an analytics team builds an aggregated 'gold' table to power a BI dashboard showing user engagement metrics. Second, a data science team uses the same silver table to train a recommendation engine. Both BI and ML workloads operate on the same, consistent data without data movement or duplication.

Interview question

What is the primary business problem solved by a lakehouse over a traditional system with a separate data lake and data warehouse?

  • a.It introduces the medallion architecture (bronze, silver, gold) to better organize raw data for easier data science exploration.
  • b.It significantly lowers storage costs by replacing expensive warehouse storage entirely with low-cost object storage from the data lake.
  • c.It provides faster query performance for machine learning tasks compared to a traditional data lake by using a proprietary data format.
  • d.It eliminates data duplication and synchronization issues by providing a single source of truth for both BI and machine learning workloads.Correct
Why?

The core value of a lakehouse is unifying BI and ML on a single data copy, which eliminates redundant data, complex ETL pipelines, and data staleness. While it does use low-cost storage (B), a two-tier system also has a low-cost lake; the main problem is the costly duplication and movement of data from the lake to the warehouse.

Just read this? Test yourself on what you have been reading.

Read the original → docs.databricks.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on data architecture — each one lists the topics its interview covers.

See open roles