Data Warehousing and ETL Interview Questions
261 multiple-choice tech interview questions on Data Warehousing and ETL: OLTP vs OLAP, star schemas, ETL and ELT, slowly changing dimensions, lakehouses, columnar storage. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 245 key terms with the flashcards first, then test yourself.
Take the practice test · Flashcards · All study tools
What it covers
- 8.1 Warehouse concepts and architecture
- 8.2 Dimensional modeling basics
- 8.3 Slowly changing dimensions and advanced modeling
- 8.4 ETL, ELT and loading patterns
- 8.5 Orchestration and transformation tools
- 8.6 Data quality, governance and lineage
- 8.7 Warehouse platforms
- 8.8 Query performance and cost
- 8.9 Lakes, lakehouses and open formats
Key terms
8.1 Warehouse concepts and architecture
- OLTP
- Online transaction processing: many small reads and writes on current data
- OLAP
- Online analytical processing: large scans and aggregations over historical data
- Columnar storage
- Storing each column's values together for fast scans and compression
- Kimball
- Dimensional marts first
- Inmon
- Normalized enterprise warehouse
- ODS
- Near-current integrated data
- Time-variant
- Keeps history
- MPP
- Parallel query across nodes
- Schema-on-write
- Structure at load
- Semantic layer
- Shared metric definitions
- OLAP cube
- Pre-aggregated measures
- Roll-up
- Coarser summary
- Drill-down
- Finer detail
- Slice and dice
- Filter one or many dimensions
- MOLAP vs ROLAP
- Cubes vs relational
- HTAP
- Transactions plus analytics
- Streaming analytics
- Seconds-level insight
- Dictionary encoding
- Small codes for values
- Vectorized execution
- Batch processing of values
- Row store
- Whole-row lookups
- Single source of truth
- Trusted numbers
- Self-service BI
- Power BI, Tableau, Looker
- Data mesh
- Domain-owned data
- Data product
- Owned, documented dataset
- Lambda architecture
- Batch plus speed layer
- Kappa architecture
- Stream only, with replay
- Wide denormalized tables
- Fewer joins
8.2 Dimensional modeling basics
- Fact table
- Table of measurable events with numeric measures and dimension keys
- Dimension table
- Table of descriptive context such as product, customer or date
- Star schema
- A fact table surrounded by denormalized dimension tables
- Slowly changing dimension (SCD)
- Technique for handling attribute changes over time
- Four-step design
- Process, grain, dimensions, facts
- Transaction fact
- One row per event
- Periodic snapshot
- State at intervals
- Accumulating snapshot
- One row per process, updated
- Factless fact
- Keys only
- Degenerate dimension
- ID in the fact
- Junk dimension
- Combined flags
- Role-playing dimension
- One dimension, several roles
- Date dimension
- Calendar attributes
- Smart date key
- YYYYMMDD
- Bus matrix
- Processes vs dimensions
- Non-additive measure
- Ratios
- Unknown member
- Placeholder dimension row
- One Big Table
- Pre-joined wide table
- Mixed grain
- Double counting
- Flattened hierarchy
- Levels as columns
- Distinct count
- Count orders, not lines
- Time-of-day dimension
- Separate from date
- Drill across
- Combine facts via conformed dims
- Atomic grain
- Finest detail
- Allocation
- Spread header amounts to lines
- Descriptive labels
- Readable attributes
- Outrigger dimension
- Dimension off a dimension
8.3 Slowly changing dimensions and advanced modeling
- Type 0
- Retain original
- Type 1
- Overwrite
- Type 3
- Previous-value column
- Type 4
- Mini-dimension
- Type 6
- Hybrid 1+2+3
- Effective dates
- Version validity
- Current flag
- Latest version marker
- As-was reporting
- History at event time
- As-is reporting
- Current attributes for history
- Durable key
- Stable member ID
- Hash diff
- Change detection
- Inferred member
- Placeholder for late dimension
- Late-arriving fact
- Look up version by date
- Bridge table
- Many-to-many link
- Weighting factor
- Allocates measures
- Hub
- Business keys
- Satellite
- Attributes and history
- Link
- Relationship
- Half-open interval
- [from, to)
- Closure table
- Ancestor-descendant pairs
- Dimension snapshot
- Daily full copy
- Reporting currency
- Standardized amount
- Business-key join
- Multiplied totals
- Soft-deleted member
- Kept for history
- Temporal table
- System-versioned history
8.4 ETL, ELT and loading patterns
- ELT
- Extract, load, then transform inside the warehouse
- Change data capture (CDC)
- Streaming row-level changes from a source database's log
- Watermark gaps
- Deletes and late commits
- Lookback window
- Re-read overlap
- Full reload
- Simple for small tables
- Delete detection
- CDC, soft deletes, key compare
- Log-based CDC
- Reads change log
- Debezium
- Database logs to Kafka
- Initial snapshot
- CDC starting point
- ROW_NUMBER dedup
- Latest row per key
- Insert overwrite
- Replace partition
- Backfill
- Reprocess history
- Reverse ETL
- Warehouse to business tools
- Zero-ETL
- Managed replication
- EL connectors
- Fivetran, Airbyte
- Schema drift
- Changing source schema
- Event time
- When it happened
- Bulk load
- COPY over INSERT
- File sizing
- 100-250 MB compressed
- Quarantine table
- Bad rows set aside
- Micro-batch
- Small frequent loads
- Duplicate merge source
- MERGE error
- UTC timestamps
- No zone ambiguity
- API cursor
- Incremental extract
- Load order
- Dimensions before facts
- Load metadata
- Skips loaded files
8.5 Orchestration and transformation tools
- ref()
- Model dependency
- source()
- Declared raw table
- Generic tests
- unique, not_null, relationships
- Materializations
- View, table, incremental, ephemeral
- is_incremental()
- New rows only
- dbt snapshot
- Type 2 history
- Seeds
- Small CSV tables
- catchup
- Run past intervals
- Data interval
- Period a run covers
- Sensor
- Waits for a condition
- XCom
- Small values between tasks
- Airflow 3
- Versioning, assets, new UI
- Dagster
- Asset-based orchestration
- Prefect
- Decorated Python flows
- Orchestrator role
- Triggers, doesn't crunch
- Lazy evaluation
- Actions trigger work
- Shuffle
- Network data movement
- Broadcast join
- Copy small table
- Salting
- Spread skewed keys
- Azure Data Factory
- Pipelines and connectors
- Glue ETL jobs
- Serverless Spark
- Slim CI
- Changed models only
- Single-node engines
- Polars, DuckDB
- Apache Flink
- Stateful streaming
- dbt targets
- Per-environment schemas
- dbt unit tests
- Logic checks
- Airflow pools
- Concurrency limits
8.6 Data quality, governance and lineage
- Quality dimensions
- Accuracy, completeness and more
- Great Expectations
- Declared data checks
- Data contract
- Producer promise
- Data observability
- Freshness, volume, schema
- Reconciliation
- Source vs target totals
- Freshness check
- Stale data alert
- Write-audit-publish
- Check before release
- Data catalog
- Find datasets
- Business glossary
- Term definitions
- Data steward
- Domain caretaker
- Column-level lineage
- Column-to-column flow
- OpenLineage
- Open lineage standard
- Microsoft Purview
- Azure governance
- Unity Catalog
- Databricks governance
- PII tagging
- Classification for policies
- Dynamic data masking
- Masked query results
- Row access policy
- Per-user row filters
- Pseudonymization
- Re-identifiable
- Erasure in history
- Anonymize all versions
- MDM
- Golden record
- Unenforced constraints
- Test integrity yourself
- Access audit
- Who read PII
- Fix at source
- Upstream quality
- Entity resolution
- Matching records
- Impact analysis
- Downstream effects
- Tokenization
- Surrogate values for secrets
- Metadata types
- Technical, business, operational
- Check severity
- warn vs error
8.7 Warehouse platforms
- Virtual warehouse
- Snowflake compute
- Auto-suspend
- Stop idle billing
- Multi-cluster warehouse
- Concurrency scaling
- Warehouse sizes
- Each step doubles
- Time Travel
- Query past data
- Fail-safe
- Seven-day provider recovery
- Zero-copy clone
- Instant shared-storage copy
- Secure data sharing
- Live access, no copies
- VARIANT
- Semi-structured column
- Streams and tasks
- CDC plus scheduling
- Dynamic table
- Auto-refreshed query table
- Snowpark
- Python in Snowflake
- On-demand pricing
- Bytes scanned
- Nested and repeated fields
- STRUCT and ARRAY
- BigQuery time travel
- Seven days
- Distribution style
- Row placement
- DISTSTYLE ALL
- Full copy per node
- Sort key
- Block skipping
- Redshift Serverless
- RPU-based capacity
- Redshift Spectrum
- Query S3 files
- Concurrency scaling
- Extra capacity for queues
- Photon
- Vectorized engine
- Fabric Warehouse
- Synapse successor path
- MergeTree
- Sorted parts, background merges
- DuckDB
- In-process OLAP
- Pinot and Druid
- Real-time user-facing analytics
- Trino
- Federated SQL engine
- External table
- Data left in files
- BigQuery ML
- SQL machine learning
8.8 Query performance and cost
- SELECT * cost
- Reads every column
- Clustering key
- Co-locates values
- require_partition_filter
- Blocks full scans
- Over-partitioning
- Too many tiny partitions
- Warehouse materialized view
- Precomputed aggregates
- Aggregate table
- Pre-summed facts
- Result cache
- Reuse identical results
- APPROX_COUNT_DISTINCT
- Fast approximate distinct
- Join fan-out
- Inflated totals
- Predicate pushdown
- Filter at scan
- Spilling
- Memory overflow to storage
- Dry run
- Bytes estimate
- LIMIT and scans
- No byte savings
- Resource monitor
- Credit caps
- Workload isolation
- Separate compute
- ANALYZE
- Refresh statistics
- Search optimization
- Point lookups
- Incremental model
- Process new data
- Query tags
- Cost attribution
- Compute-dominated cost
- Queries cost most
- JSON extraction
- Typed columns
- DISTINCT smell
- Hidden bad join
- Partition drop
- Cheap retention
- WLM
- Query queues
- Per-second billing
- 60-second minimum
- BI Engine
- In-memory acceleration
- Failed pruning
- All partitions scanned
- Small updates
- File rewrites
8.9 Lakes, lakehouses and open formats
- Lakehouse
- Lake storage plus warehouse features such as ACID tables and schema enforcement
- Medallion architecture
- Bronze (raw), silver (cleaned) and gold (business-ready) data layers
- Open table format
- Metadata over data files
- Hidden partitioning
- Transforms on columns
- Partition evolution
- Change scheme in place
- Iceberg catalog
- Current metadata pointer
- Delta VACUUM
- Remove old files
- Z-ordering
- Multi-column locality
- Liquid clustering
- Changeable keys
- UniForm
- Iceberg metadata for Delta
- Apache Hudi
- Upserts and incremental
- Copy-on-write
- Rewrite on change
- Merge-on-read
- Merge deltas at read
- Deletion vectors
- Mark deleted rows
- Avro
- Row-based records
- ORC
- Columnar from Hive
- Column IDs
- Safe renames
- Snapshot expiration
- Remove old snapshots
- Orphan files
- Unreferenced files
- Lakehouse choice
- One open copy
- BigLake
- BigQuery over lake data
- Snowflake Iceberg tables
- Open-format tables
- VERSION AS OF
- Read past version
- MERGE INTO
- Upsert
- Change data feed
- Row changes
- Optimistic concurrency
- Commit-time conflict check
- File stats
- Min/max skipping
- Apache Arrow
- In-memory columnar
Sample practice questions
How does OLAP differ from OLTP?
- OLAP runs checkout transactions; OLTP builds the dashboards from them
- OLAP analyzes large historical data; OLTP runs many small, fast transactions
- They're two names for the same workload, used by different vendors
- OLAP only applies to NoSQL data; OLTP only applies to relational data
Answer: B. OLAP analyzes large historical data; OLTP runs many small, fast transactions OLTP systems are normalized for writes. Warehouses are optimized for scans and aggregations.
In a star schema, what does a fact table contain?
- Only descriptive attributes like customer names and categories
- Measurable events with numeric measures and keys to dimensions
- Only the dates of the business's fiscal calendar
- A copy of every table from every source system
Answer: B. Measurable events with numeric measures and keys to dimensions Facts are the "what happened and how much"; dimensions describe who, what, where and when.
A customer moves from Texas to Ohio. The warehouse adds a new customer dimension row with effective dates and keeps the old row. Which slowly changing dimension type is this?
- Type 1
- Type 0
- Type 3
- Type 2
Answer: D. Type 2 Type 2 preserves full history with new rows. Type 1 overwrites the old value; Type 3 keeps a "previous value" column.
What is the difference between ETL and ELT?
- ETL transforms before loading; ELT loads raw data, then transforms in the warehouse
- ETL is only used for databases, while ELT is only used for flat files
- ELT never transforms data at all; it only extracts and loads it as-is
- They're identical processes with the letters written in a different order
Answer: A. ETL transforms before loading; ELT loads raw data, then transforms in the warehouse Cheap, scalable cloud compute made ELT common, often with dbt running SQL transformations in the warehouse.
What is dbt (data build tool) used for?
- Extracting data from SaaS APIs and loading it into the warehouse
- Hosting interactive dashboards and reports for business users
- Version-controlled, tested SQL transformations run inside the warehouse
- Replacing the data warehouse with a set of flat files
Answer: C. Version-controlled, tested SQL transformations run inside the warehouse dbt brings software practices such as Git, testing and CI to analytics engineering.
What is data lineage?
- Tracing where data came from and how it was transformed
- The order in which a table's columns are defined
- The age of the oldest record stored in a table
- A list of the users who can access the database
Answer: A. Tracing where data came from and how it was transformed Lineage helps with debugging, impact analysis and compliance. Microsoft Purview and dbt show lineage graphs.
What is a Snowflake virtual warehouse?
- A database schema that holds only virtual views
- A compute cluster that runs queries, sized and billed separately
- A sandbox where users can test SQL without data
- A logical copy of the data stored in another region
Answer: B. A compute cluster that runs queries, sized and billed separately Storage is shared by all warehouses.
What is partition pruning in a warehouse or lakehouse query?
- Deleting old partitions automatically once they pass retention
- Splitting one query across many servers to run in parallel
- Compressing each partition right after it has been loaded
- Skipping partitions that can't match the filter, scanning less
Answer: D. Skipping partitions that can't match the filter, scanning less Partitioning by a commonly filtered column, such as event_date, makes pruning possible.
What is a data lake?
- A relational database that enforces strict schemas on every write
- Low-cost storage of raw data in native formats like Parquet or JSON
- A real-time message queue that streams events between services
- An in-memory cache that holds frequently used query results
Answer: B. Low-cost storage of raw data in native formats like Parquet or JSON Without governance, data lakes can become "data swamps" that nobody trusts.
Why do analytical databases usually store data in columnar format?
- Columnar storage makes single-row inserts and updates the fastest
- Columnar storage is required for a database to support SQL at all
- Queries touch few columns over many rows, and columns compress well
- Columnar formats can't be compressed, so queries skip decompression
Answer: C. Queries touch few columns over many rows, and columns compress well Snowflake, BigQuery, Redshift, Fabric Warehouse and Parquet files are all columnar.
More Storage and Data
- Relational Database Design and Normalization
- SQL Queries, Joins and Window Functions
- Indexing and Query Optimization
- Transactions, ACID and Isolation Levels
- NoSQL Databases: Document, Key-Value, Wide-Column and Graph
- Caching: Redis, CDNs and Cache Invalidation
- ORMs: Entity Framework Core and Hibernate
- Message Queues and Event Streaming: Kafka, RabbitMQ and Service Bus
- Blob and Object Storage
- Backups, Replication and Disaster Recovery