InterviewStack.io LogoInterviewStack.io

Database Schema Design for Business Scenarios Questions

Design simple database schemas for realistic scenarios (e.g., e-commerce, social media, inventory management). Identify entities, attributes, and relationships. Create entity-relationship diagrams (ERDs). Apply normalization principles. Discuss primary keys, foreign keys, and indexes. Evaluate trade-offs between design options.

EasyTechnical
79 practiced
Explain First, Second, and Third Normal Forms (1NF, 2NF, 3NF). For each normal form provide a concrete example of a schema violation and how to correct it. Briefly describe Boyce–Codd Normal Form (BCNF) and give a scenario where BCNF matters.
HardTechnical
69 practiced
Multiple microservices exchange messages via Kafka using Avro schemas registered in a schema registry. Describe strategies for evolving schemas without breaking consumers: backward/forward/full compatibility rules, use of optional fields and defaults, consumer-driven contracts, and canary rollouts. Also explain how to handle schema evolution for events stored long-term and for relational tables that mirror service boundaries.
HardSystem Design
80 practiced
For a monitoring system ingesting high-volume metrics, design a schema and aggregation pipeline that stores raw metrics and materialized rollups (minute/hour/day aggregates). Explain how to implement materialized views or scheduled aggregation jobs, how to maintain correctness after late-arriving data, and how to partition and compress raw and aggregate data to optimize cost and query performance.
MediumSystem Design
72 practiced
Design a star schema for sales analytics with fact_sales and dimensions for customer, product, store, and date. The customer dimension must support Slowly Changing Dimensions (SCD Type 2) to capture historical changes. Provide table definitions (columns and keys), explain the use of surrogate keys, describe how to load SCD Type 2 records in ETL/ELT, and outline partitioning and indexing strategies for fast analytical queries at scale (hundreds of millions of rows).
MediumSystem Design
71 practiced
Design schema tables to capture audit logs and data lineage for ETL jobs. Requirements: store job runs, input datasets (table, partition, timestamp), SQL/transformation version, output datasets, and optionally row-level provenance for debugging. Provide table structures, examples of queries to find the origin of a record, and storage/retention recommendations for lineage metadata.

Unlock Full Question Bank

Get access to hundreds of Database Schema Design for Business Scenarios interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.