Dimensional Modeling and Schema Design Questions

Designing analytical schemas: star and snowflake schemas, fact and dimension tables, grain selection, slowly changing dimensions, and normalization vs denormalization for analytics. Covers modeling business requirements into queryable structures and schema design for large datasets. The data-modeling backbone of BI and warehouse work.

HardSystem Design
39 practiced

You need a star schema where the natural facts occur at two different grains at once, for example session-level and event-level activity. Describe your options for modeling this (separate fact tables at each grain, a single consolidated multi-grain fact table with nulls for the coarser grain's extra columns, or an event table with derived aggregates), and explain how you would support cross-grain analysis without double counting.

EasyTechnical
31 practiced

You are designing a fact table for cart-abandonment analysis. Stakeholders want to measure abandonment by session, device, and marketing campaign. Propose at least two candidate grains for this fact table (for example, one row per session versus one row per cart event), list the trade-offs of each, and recommend which one to implement first for the fastest business value.

HardTechnical
32 practiced

For a B2B SaaS analytics product, compare three ways to power the BI dashboards: a classic star schema, a single wide denormalized table, and a lakehouse (raw events plus views). Recommend one approach and justify it in terms of migration effort, query performance, and long-term maintainability.

HardSystem Design
33 practiced

Design an analytics data model for an e-commerce company processing 1 million transactions a day that needs near-real-time dashboards for orders, revenue, inventory, and product performance. Name the fact and dimension tables (with key columns), your SCD handling for the changing dimensions, and how you would get data in near-real-time (CDC versus streaming). State any technology assumptions you make.

HardBehavioral
31 practiced

Tell me about a time you pushed back on a stakeholder who wanted to change the grain of a report, for example from user-level to session-level. Walk through how you approached the conversation, the technical arguments you made, and the outcome.

Unlock Full Question Bank

Get access to all Dimensional Modeling and Schema Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.