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.
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.
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?
Design a schema to store customer addresses that supports: a current-address lookup, a historical audit of changes with timestamps, queries like 'what was the address at time T', and efficient deletion and retention. Propose the table(s), primary keys, and indexing strategy, and explain the trade-offs related to storage and query cost.
Explain the difference between 1NF, 2NF, and 3NF. Give a concrete example table (columns and sample rows) that violates 2NF and show how to transform it into 2NF.
An API evolves with new fields, and older clients must not break. Describe schema-evolution strategies to support backward and forward compatibility both in a relational database and in a message schema (for example Avro or Protobuf).
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.