Warehouse, Lake & Lakehouse Questions with Answers

19 practice questions on Warehouse, Lake & Lakehouse (Data Engineering) with answers and step-by-step solutions. Try 10 samples below, then practise all 19 free in the AptiNest app.

Sample questions

Question 1Easy

Which workload is better served by a data lake than a warehouse?

  1. Joining clean customer and order tables for KPIs
  2. Keeping raw clickstream logs and images for future, undecided uses
  3. Running the finance team's standard monthly SQL report on clean, typed tables
  4. Answering BI dashboard queries with strict schemas

Answer: B. Keeping raw clickstream logs and images for future, undecided uses

Explanation

Lakes keep raw, varied data cheaply when the use is not yet known.

Step-by-step solution

  1. A lake stores raw data in any format.
  2. Raw logs and images for undecided uses fit.
  3. Warehouses suit clean structured data.

Why the other options are wrong

  • A. KPI joins suit warehouses.
  • C. Standard reports suit warehouses.
  • D. BI with strict schemas suits warehouses.

Tip: Raw and unknown = lake.

Question 2Easy

A data warehouse is optimised mainly for:

  1. Thousands of small row updates per second coming from a mobile app
  2. Serving web pages to end users
  3. Analytical queries over large volumes of structured data
  4. Storing raw video files for streaming

Answer: C. Analytical queries over large volumes of structured data

Explanation

Warehouses serve OLAP workloads: scans, aggregations and joins for reporting and analysis.

Step-by-step solution

  1. A data warehouse stores structured data for reporting and analysis.
  2. Its typical work is OLAP: scans, aggregations and joins over large volumes of data.
  3. Option C names that workload, so the answer is option C.

Why the other options are wrong

  • A. Many small row updates from a mobile app suit an OLTP database, not a warehouse.
  • B. Serving web pages to end users is the job of an application or web server.
  • D. Storing raw video files is object storage work, not a warehouse's main job.

Tip: A warehouse is for analytics (OLAP); transactional databases (OLTP) handle many small updates.

Question 3Easy

In the medallion architecture, the bronze layer holds:

  1. Machine learning model weights
  2. Cleaned and conformed tables
  3. Business-level aggregates for dashboards
  4. Raw data as ingested from sources

Answer: D. Raw data as ingested from sources

Explanation

Bronze is raw, silver is cleaned and conformed, gold is curated for consumption.

Step-by-step solution

  1. Medallion layers: bronze, silver, gold.
  2. Bronze is raw data as ingested.
  3. Silver cleans, gold aggregates.

Why the other options are wrong

  • A. Model weights are not a layer.
  • B. Cleaned is silver.
  • C. Aggregates are gold.

Tip: Bronze raw, silver clean, gold business.

Question 4Easy

A data mart is:

  1. A subject-focused subset of the warehouse for one team or function
  2. A marketplace where companies sell their data
  3. A full copy of the production OLTP database used by the application team
  4. A temporary table used inside one query

Answer: A. A subject-focused subset of the warehouse for one team or function

Explanation

Marts serve a department such as finance or sales with tailored models.

Step-by-step solution

  1. A data mart is focused on a specific subject area.
  2. It serves one team or function within an organization.
  3. It is a subset of the data warehouse.
  4. This makes it suitable for department-specific needs.
  5. The correct answer is A subject-focused subset of the warehouse for one team or function.

Why the other options are wrong

  • B. A data mart is not a marketplace for selling data; it is a subset of the warehouse for internal use.
  • C. A full copy of the production OLTP database is not a data mart; a mart is a focused subset of the warehouse.
  • D. A temporary table inside one query is not a data mart; a mart is a lasting, subject-focused store.

Question 5Medium

OLTP and OLAP systems differ because OLTP is designed for:

  1. Large scans and aggregations across history
  2. Storing unstructured images and documents
  3. Many small, fast transactions on current records
  4. Batch training of machine learning models

Answer: C. Many small, fast transactions on current records

Explanation

- OLTP backs applications (orders, payments);
- OLAP backs analysis.

Step-by-step solution

  1. OLTP handles daily operations like orders and payments.
  2. These require many small transactions quickly.
  3. Each transaction updates current records instantly.
  4. OLTP ensures fast responses for real-time use.
  5. Final answer: Many small, fast transactions on current records.

Why the other options are wrong

  • A. Large scans across history are the design goal of OLAP, not OLTP.
  • B. Unstructured images and documents are not OLTP's design focus; OLTP handles structured transactions.
  • D. Batch training of ML models is an analytics or ML workload, not what OLTP is built for.

Tip: Remember OLTP is for everyday tasks, not analysis or big data.

Question 6Medium

A lakehouse combines a data lake with warehouse features mainly by adding:

  1. A dedicated server per table for faster reads
  2. A second full copy of all the data inside a relational database for reporting
  3. A rule that only CSV files may be stored
  4. A table format giving ACID transactions and schemas on object storage

Answer: D. A table format giving ACID transactions and schemas on object storage

Explanation

Open table formats such as Delta Lake, Apache Iceberg and Apache Hudi add transactions, schema enforcement and time travel over files.

Step-by-step solution

  1. A lakehouse keeps data as files on object storage, like a data lake.
  2. An open table format such as Delta Lake, Apache Iceberg or Apache Hudi adds transactions and schemas on top.
  3. This gives ACID transactions and schema control like a warehouse, so the answer is option D.

Why the other options are wrong

  • A. A dedicated server per table is not what gives a lakehouse its warehouse features.
  • B. A second full copy in a relational database is the older warehouse approach, not the lakehouse feature.
  • C. A rule that only CSV files may be stored is not a lakehouse feature.

Tip: A lakehouse is a data lake plus an open table format that adds ACID transactions and schema.

Question 7Medium

Object storage (such as S3-compatible stores) is a popular base for lakes because it is:

  1. Cheap, durable and scales to very large volumes
  2. Limited to structured CSV files only
  3. The fastest option for single-row updates
  4. Able to run SQL joins by itself

Answer: A. Cheap, durable and scales to very large volumes

Explanation

Lakes trade low-latency random updates for cheap, massive, durable storage.

Step-by-step solution

  1. Object storage is cost-effective for large data volumes.
  2. It provides durability and can scale to huge sizes.
  3. These features make it ideal for data lakes.
  4. Cheap, durable and scales to very large volumes.
  5. Final answer: Cheap, durable and scales to very large volumes.

Why the other options are wrong

  • B. Object storage is not limited to CSV files; it holds many formats, including Parquet and JSON.
  • C. Object storage is not fast for single-row updates; it suits large objects written and read in bulk.
  • D. Object storage cannot run SQL joins alone; an engine such as Spark or a warehouse must do that.

Tip: Remember: Data lakes prioritize cheap, scalable, and durable storage over speed and structure.

Question 8Medium

Schema enforcement in a lakehouse table rejects a write when:

  1. The incoming file is larger than one gigabyte, whatever its schema
  2. The incoming data's columns or types do not match the table schema
  3. The write happens outside business hours
  4. The table has more than 100 columns

Answer: B. The incoming data's columns or types do not match the table schema

Explanation

Enforcement stops bad data from silently corrupting a table; schema evolution must then be allowed explicitly.

Step-by-step solution

  1. Schema enforcement checks each write against the table schema.
  2. A write is rejected when its columns or types do not match the table schema.
  3. This stops bad data from silently changing the table, so the answer is option B.

Why the other options are wrong

  • A. File size alone does not cause a rejection by schema enforcement.
  • C. The time of day is not part of schema enforcement.
  • D. The number of columns is not a limit set by schema enforcement.

Tip: Enforcement rejects mismatched writes; schema changes must be allowed on purpose.

Question 9Hard

A data lake with no catalog, ownership or quality rules becomes hard to use. This is often called a:

  1. Data mart
  2. Data vault
  3. Data swamp
  4. Data mesh

Answer: C. Data swamp

Explanation

Without governance and metadata, nobody can find or trust the data in the lake.

Step-by-step solution

  1. A data lake with no catalog, owners or quality rules is hard to find data in and hard to trust.
  2. This state is commonly called a data swamp.
  3. So the answer is option C.

Why the other options are wrong

  • A. A data mart is a smaller, curated store for one business area, not an ungoverned lake.
  • B. A data vault is a modelling method for the warehouse.
  • D. A data mesh is an organisational approach where domain teams own their data.

Tip: A lake without governance (catalog, owners, quality rules) turns into a swamp.

Question 10Hard

Two engines write to the same lakehouse table at the same time. How do table formats like Iceberg or Delta avoid corrupting it?

  1. They lock the whole object store bucket for each write
  2. They rewrite every single file in the table for each commit, so writers never overlap in time
  3. Optimistic concurrency: each commit atomically swaps metadata and conflicting commits retry
  4. They allow only one engine to be installed per company

Answer: C. Optimistic concurrency: each commit atomically swaps metadata and conflicting commits retry

Explanation

Commits are atomic metadata updates; a writer whose base version changed detects the conflict and retries.

Step-by-step solution

  1. Commits are atomic metadata updates.
  2. A writer whose base version changed detects the conflict.
  3. Conflicting commits retry after detecting changes.
  4. This ensures no data corruption during writes.
  5. Final answer: Optimistic concurrency: each commit atomically swaps metadata and conflicting commits retry.

Why the other options are wrong

  • A. Object stores do not lock a whole bucket per write; that would block every other writer and is not how these formats work.
  • B. Rewriting every file per commit is slow and does not prevent overlap; the format uses atomic metadata swaps.
  • D. Limiting each company to one engine is not how table formats avoid corruption; they use commit control.

Tip: Optimistic concurrency lets multiple writers share a table safely by resolving conflicts through retries.

Practise all 19 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Data Engineering topics · All topics