Data Modeling and Schema Design Questions

Designing relational schemas end to end: entity-relationship modeling, normal forms and deliberate denormalization, primary/foreign keys, data types, and integrity constraints, together with applied schema design driven by real business requirements and query access patterns. Covers modeling a domain from ambiguous requirements, choosing structures that serve the queries a system must run, trading normalization for correctness against denormalization for read performance, and evolving schemas as needs change. Foundational data-modeling judgment for building and reviewing databases, tested through open-ended domain-modeling prompts.

HardTechnical
50 practiced

You inherit a reporting schema where many dimension tables have nullable surrogate foreign keys to a central 'master' table. Query performance suffers from many LEFT JOINs producing repeated nulls. Propose schema and query-level optimizations to reduce join cost and simplify reporting queries.

HardSystem Design
32 practiced

You are asked to design a schema for a real-time analytics dashboard that needs near-real-time metrics (within seconds) and supports ad-hoc drilldowns. Outline a hybrid architecture and schema choices to meet low-latency ingestion and flexible querying.

MediumTechnical
51 practiced

A 'created_at' column is currently stored as TIMESTAMP WITHOUT TIME ZONE. Describe the risks when analyzing data across multiple regions, how you'd normalize timestamps for analysis, and whether you would change the schema or enforce UTC at ingestion. Include a brief SQL example for the Postgres conversion.

EasyTechnical
29 practiced

In a timed data assessment you're presented with a complex, unfamiliar schema at the start. Describe in detail what you would do in the first 60 seconds to orient yourself: what to scan for (keys, timestamps, table sizes), what immediate questions to note, and how you'd prioritize which tables and columns to inspect first.

MediumTechnical
37 practiced

Write SQL (specify dialect) or describe steps to implement a Type 2 Slowly Changing Dimension for a customer dimension: when a customer's 'tier' changes, create a new row while preserving history. Include recommended constraints and indexes.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.