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.
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.
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.
Given a denormalized reporting table that is periodically rebuilt from source systems, how would you design incremental rebuilds to minimize downtime and keep the table consistent for readers? Include transactional considerations and schema-level techniques.
Explain strategies to perform potentially breaking schema changes (a column rename, a type change, dropping a column) in production with minimal downtime and minimal impact on dashboards and downstream consumers. Cover techniques such as dual-writing, compatibility views, backfill, feature flags, and staged rollouts.
Describe how you would model and index time series sensor data with high write throughput and queries that need both range scans and fast retrieval of the latest value per sensor. Include schema columns, primary key choices, and retention strategies.
Unlock Full Question Bank
Get access to all Data Modeling and Schema Design interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.