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.

EasyTechnical
37 practiced

Describe partitioning and its benefits for very large tables used in analytics. Explain range, hash, and list partitioning in simple terms and when each is useful. What maintenance operations must you consider for partitioned tables?

EasyTechnical
32 practiced

You're storing semi-structured product metadata. Discuss the pros and cons of using a JSON column in PostgreSQL versus fully normalizing the attributes into relational columns and tables. Address queryability, indexing, schema evolution, and storage.

HardTechnical
35 practiced

Explain polyglot persistence and when it makes sense to use multiple specialized databases (relational, document, and graph) within a single product. Provide an example architecture for an e-commerce platform that uses each type, and describe patterns to keep data consistent across the different stores (change data capture, an event bus, or best-effort eventual consistency).

MediumTechnical
39 practiced

Describe how to model one-to-many and many-to-many relationships in a relational database and in a document-oriented NoSQL store such as MongoDB. Provide short schema sketches for both and explain how read and write access patterns influence whether you embed related data or reference it.

EasyTechnical
30 practiced

Describe how to model one-to-one, one-to-many, and many-to-many relationships in a relational schema. Provide example table shapes (table names, key columns) for each relationship and explain how to enforce cardinality and referential integrity. Cover optional versus mandatory relationships and how you would enforce them in SQL.

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.