InterviewStack.io LogoInterviewStack.io

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
33 practiced

For a near-real-time dashboard that requires sub-second response for simple counts and sums, discuss the schema trade-offs between normalized OLTP-style tables and denormalized, pre-aggregated tables. Cover freshness, write amplification, storage cost, and maintenance complexity in your recommendation.

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.

EasyTechnical
36 practiced

Define grain in dimensional modeling. Provide three examples of different fact table grains for an online retail business and explain one practical consequence of choosing a too-coarse or too-fine grain.

HardTechnical
37 practiced

A column is proposed for removal in production. Design a process to determine which dashboards, reports, and downstream jobs will be affected by this schema change. Explain how you'd use metadata, SQL parsing of saved queries, dependency graphs, and stakeholder ownership to drive the communication and remediation plan.

HardSystem Design
36 practiced

You must design a backup/recovery-friendly schema for a large transactional service where some tables must be restorable to a point in time independently (e.g., payments). What schema patterns and DB features help enable per-domain point-in-time recovery with minimal restore time?

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.