InterviewStack.io LogoInterviewStack.io

Database Design and Architecture Questions

Designing and architecting databases for production and cloud environments with attention to data modeling, schema design, and access pattern optimization. Topics include normalization and denormalization trade offs, schema versus query driven modeling, entity and relationship design for transactional and analytical workloads, indexing and query optimization techniques, partitioning and sharding design decisions, schema evolution and migration strategies, materialized views and caching strategies, selection of storage layers for different data shapes, and practical operational runbooks for provisioning, monitoring, alerting, backups, disaster recovery, and capacity planning. Candidates should justify schema and architecture choices with respect to latency, throughput, development and operational complexity, maintainability, and cost.

EasyTechnical
93 practiced
You are advising a client building an e-commerce platform. They need low-latency product search, strong transactional checkout, and hourly analytics. Propose which database technologies and patterns you would use for each requirement (OLTP, search, analytics) and justify your choices in terms of latency, throughput, maintainability, and cost.
MediumTechnical
108 practiced
For an analytics-heavy application, explain how you would design indexing and storage layout when queries frequently aggregate across very large historical tables with complex joins. Compare columnar stores, materialized aggregates, and covering indexes, and describe when each is preferable.
EasyTechnical
73 practiced
SQL (PostgreSQL): Given table orders(order_id PK, user_id INT, status TEXT, total NUMERIC, created_at TIMESTAMP) write a query that finds users who placed duplicate identical orders within 5 minutes (same total and status). Provide efficient SQL using window functions or grouping and explain index recommendations to speed this query.
HardSystem Design
94 practiced
Design schema and indexing for a geospatial property search service that supports 1000+ possible filter attributes (high-cardinality), bounding-box and radius queries, and faceted counts for UI. Discuss data storage choices (RDBMS, Elasticsearch, PostGIS), index strategies (R-tree, geohash, inverted indexes), and how to keep facets fast.
HardTechnical
92 practiced
Given a normalized OLTP schema that causes 'join explosion' for common read paths, propose a migration path to a polyglot persistence architecture combining relational, document, and columnar stores. Include mapping strategies, synchronization patterns (CDC, eventing), and how you'd keep data consistent for critical operations.

Unlock Full Question Bank

Get access to hundreds of Database Design and Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.