InterviewStack.io LogoInterviewStack.io

Data Modeling and Architecture Questions

Design and modeling principles for transactional and analytical data systems. Topics include entity relationship modeling, normalization and denormalization trade offs, dimensional modeling with fact and dimension tables and star and snowflake schemata, indexing strategies, partitioning and sharding, and schema design for performance and maintainability. Cover data pipelines and integration patterns including extract transform load and extract load transform approaches, data warehousing and data lake concepts, ETL orchestration, and how sources feed into reporting and business intelligence systems. Also include considerations for data quality, governance, and the differences between online transaction processing and online analytical processing workloads.

HardTechnical
51 practiced
Given a complex SQL query that runs slowly over a 2TB fact table, explain how you would methodically optimize it. Consider rewriting subqueries, using window functions, partition pruning, predicate pushdown, materialized aggregates, and indexes. Provide a sample transformation of a nested query into a faster pattern or explain when to pre-aggregate.
MediumTechnical
46 practiced
When and how would you use materialized views in a data warehouse for reporting? Discuss refresh strategies (incremental vs full), cost and maintenance, staleness guarantees, and when materialized views are preferable to precomputed ETL tables.
HardTechnical
53 practiced
Design a data retention and cold-storage archive strategy for a petabyte-scale analytics warehouse that must keep raw events for 7 years but provide fast interactive access to recent 90 days. Discuss partitioning, compaction, lifecycle policies, tiered storage (warm/cold), and metadata strategies to find archived data when needed.
MediumTechnical
47 practiced
Design a lightweight data governance model for a mid-sized analytics team: define ownership, data contract basics, lineage capture, and a practical enforcement mechanism for sensitive datasets. Prioritize minimum viable governance that reduces risk but doesn't slow analysis.
MediumTechnical
43 practiced
Given the following simplified schema:
sql
orders(order_id BIGINT PRIMARY KEY, user_id BIGINT, order_date DATE)
order_items(order_item_id BIGINT PRIMARY KEY, order_id BIGINT, product_id BIGINT, qty INT)
products(product_id BIGINT PRIMARY KEY, price DECIMAL)
A query that calculates daily revenue by product is running very slowly on a 500M row order_items table. List specific indexing and physical design changes you would consider to improve performance and explain why.

Unlock Full Question Bank

Get access to hundreds of Data Modeling and Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.