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
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.

EasyTechnical
40 practiced

Explain the difference between a PRIMARY KEY and a UNIQUE constraint in a relational database. Cover purpose, nullability, index behavior, referencing by foreign keys, and typical usage patterns. Give examples showing (a) a primary key on a single column, (b) a unique constraint on a nullable column, and (c) creating a unique index manually. Discuss practical choices such as composite keys and partial unique indexes.

MediumSystem Design
36 practiced

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.

EasyTechnical
29 practiced

Describe the main differences between OLTP and OLAP systems and how schema design changes for each. Using an e-commerce orders domain, explain how you would design the transactional (OLTP) schema and how you'd design the analytical (OLAP) schema. Discuss normalization, indexing, ETL/ELT patterns, query-latency expectations, and typical query types.

EasyTechnical
36 practiced

What are the primary components of an entity-relationship (ER) model? Describe entities, attributes, relationships, cardinality, and weak entities, and explain how an ER diagram maps to a normalized relational schema.

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.