SpinTheMic
Pro

4 guides

How to answer data modeling interview questions

Data modeling questions are where interviewers check if you think about the business, not just the tables. Strong answers start with the grain, name the trade-off and give one real example. These guides use Kimball's dimensional modeling terms.

  1. What is the difference between a star schema and a snowflake schema?In a star schema, a fact table joins directly to denormalized dimension tables. In a snowflake schema, dimensions are normalized into several related tables. Star means fewer joins and simpler queries; snowflake means less repeated data.Beginner
  2. What is the grain of a fact table, and why does it matter?The grain is exactly what one row of a fact table represents, for example one line on an order. You declare it before choosing dimensions or measures, because every row must be at the same grain or totals go wrong.Beginner
  3. What is the difference between a fact table and a dimension table?A fact table stores measurements from a business process, such as sales amounts, with foreign keys to dimensions. A dimension table stores the descriptive context, the who, what, where and when, that you filter and group by.Beginner
  4. Explain the types of slowly changing dimensions (SCD).Type 0 never changes, Type 1 overwrites, Type 2 adds a new row per change with effective dates and a current flag, Type 3 keeps the previous value in an extra column, and Type 6 adds Type 1 current-value columns to a Type 2 dimension. Type 2 is the usual choice when you need history.Intermediate
All Data modeling practice questions