Explain data warehouse purpose and how it differs from OLTP
This tests whether you know the OLTP versus analytics split. A great answer contrasts OLTP row-level writes and normalized schemas with warehouse denormalized schemas and BI reads. A red flag is calling a warehouse just a bigger OLTP database.
What's really being asked
The interviewer wants to know if you understand that databases are not one-size-fits-all and that the engineering trade-offs for a system handling customer orders are radically different from those supporting executive dashboards. Specifically, they are checking whether you can articulate the workload differences between online transaction processing and online analytical processing, and why attempting to serve both from the same schema and hardware usually fails at scale.
The full answer
First, purpose: a data warehouse is a centralized repository that integrates current and historical data from disparate sources to support reporting, business intelligence, and decision-making. Second, schema design: warehouses typically use denormalized dimensional models such as star or snowflake schemas that optimize for read performance and aggregations across billions of rows, whereas OLTP databases use highly normalized third-normal-form schemas to minimize redundancy and ensure consistency during frequent small writes. Third, workload characteristics: OLTP systems prioritize millisecond latency for row-level inserts, updates, and deletes with strict ACID guarantees for daily operations, while warehouses prioritize throughput for complex queries scanning millions of rows. Fourth, mutability: warehouses are often append-only or batch-updated, while OLTP systems handle constant random mutations.
The mistakes people make
A major red flag is stating that a data warehouse is simply a bigger version of a transactional database like PostgreSQL or MySQL. Another warning sign is claiming that normalization is always better, which reveals confusion about why denormalization is intentionally accepted in analytics to reduce expensive joins. Candidates also stumble by suggesting you can run heavy BI queries directly against the production OLTP database without mentioning performance degradation, lock contention, or the risk of impacting customer-facing transactions.
What usually comes next
The interviewer may ask how data actually gets into the warehouse, so be ready to discuss ETL or ELT pipelines, change data capture, and batch versus streaming ingestion. They might also probe specific warehouse technologies such as Snowflake, BigQuery, Redshift, or ClickHouse and ask when to use a data lake instead. A senior candidate should also be prepared to discuss slowly changing dimensions, partitioning strategies for cost and query performance, and how to handle schema evolution in an analytics environment.
A concrete example
Imagine an e-commerce company. The OLTP database records a customer order in milliseconds using a normalized schema with separate tables for customers, orders, order_items, and products to ensure no anomalies during checkout. Each night, an ETL pipeline extracts that data, transforms it into a star schema with a central orders fact table surrounded by customer and product dimension tables, and loads it into a data warehouse. A business analyst can then run a query aggregating total revenue by product category over the last five years in seconds without slowing down the checkout flow or locking production tables.
Interview question
A retail company wants to analyze ten years of sales trends without slowing online checkout. Why is a data warehouse more suitable than its production OLTP database?
- a.It uses a denormalized schema optimized for large aggregations while OLTP is optimized for fast row-level transactions.Correct
- b.It is essentially a larger version of the OLTP database with more memory and CPU for bigger datasets.
- c.It normalizes historical data into third-normal form to reduce storage costs and eliminate redundancy.
- d.Complex queries could run directly on the OLTP database if more indexes were added, avoiding the need for a separate warehouse.
Why? this is the answer
The card explains that warehouses use denormalized schemas to maximize read performance for analytical aggregations, while OLTP databases rely on normalized schemas for fast, consistent row-level writes. Option B is tempting but wrong because the card explicitly flags the belief that a warehouse is simply a bigger OLTP database as a major red flag, since the two systems are architected for fundamentally different workloads.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #data warehouse
- #OLTP
- #analytics
- #database design
- #BI
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
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.
We are hiring for this. Open roles that interview on data warehouse — each one lists the topics its interview covers.
See open roles