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.
Design an audit/change-log schema that lets you reconstruct any customer record's exact state as of a past point in time, for compliance investigations and debugging. Decide what each change-log entry needs to capture to make that reconstruction possible, propose the indexing needed to support lookups by entity and time range efficiently, and write an example query that reconstructs the state as of a given timestamp.
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).
Explain 1NF, 2NF, 3NF and BCNF in practical terms. For each normal form give (a) the rule, (b) a small example table that violates it, and (c) how you'd normalize that table. Explain why normalization matters for update anomalies, deletion anomalies, and maintaining data integrity in OLTP systems.
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.
Explain the trade-offs between OLTP (normalized schema) and OLAP (denormalized/dimensional) schema designs. Provide an example of when you would use a hybrid approach.
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.