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.
Compare strategies for generating surrogate keys in a distributed or parallel ingestion system where multiple workers insert into the same dimension: central database sequences, UUIDv4, deterministic hash-based keys derived from the natural key, and a centralized key-generation service. Discuss uniqueness guarantees, join performance, collision risk, and behavior under cross-region or multi-writer concurrency.
What is a degenerate dimension? Give an example from an order-processing pipeline (such as an order number with no corresponding dimension table), and explain why you would choose to keep an attribute as a degenerate dimension on the fact table rather than moving it into its own dimension table.
At petabyte scale, compare three modeling choices for an analytical schema: fully normalized (3NF), a dimensional star schema, and a wide denormalized table. Discuss the trade-offs in storage, query performance (joins versus I/O scan volume), update complexity, and ETL cost, and explain when nested or repeated (RECORD/array) types in a columnar warehouse are a better fit than any of the three flat options.
What is the grain of a fact table and why must you declare it before naming a single dimension? Give three concrete grain examples at different levels (for instance, one row per order line item, one row per order, and one row per daily account snapshot), and explain how the chosen grain drives your join logic, aggregation rules, storage volume, and which dashboards the table can support.
What are conformed dimensions, and why do they matter once you have multiple fact tables or data marts (for example, sales, returns, and shipments)? Describe a concrete plan to implement conformed customer and product dimensions so that revenue, support, and marketing dashboards all report consistent attributes and totals, and how you would detect and prevent divergence across teams over time.
Unlock Full Question Bank
Get access to all 19 Dimensional Modeling and Schema Design interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.