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.

MediumTechnical
36 practiced

For an on-demand food-delivery platform, list the primary entities and relationships for a conceptual data model that supports ordering and delivery. Include entities such as Orders, Customers, Restaurants, Menus, MenuItems, Drivers, Deliveries, Payments, Addresses, Promotions, and Logs. For each entity, list 5-8 core attributes and specify the cardinalities (one-to-many, many-to-many) between key entities. State your assumptions about timestamps, soft deletes, and versioning needed for the business logic.

HardTechnical
49 practiced

Design a schema and strategy to store and query slowly changing product prices where price can change multiple times per day. Business needs: (1) ability to query price at any historical timestamp, (2) ability to aggregate revenue by price band per day. Discuss storage format, indexes, and typical queries.

MediumTechnical
38 practiced

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.

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?

MediumTechnical
33 practiced

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 Continue

Join thousands of developers preparing for their dream job.