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.

MediumTechnical
102 practiced
Describe replication topologies: single primary with read replicas, multi-primary (multi-master), and leaderless architectures (e.g., Cassandra). For each, explain consistency, conflict resolution, and typical operational trade-offs.
EasyTechnical
89 practiced
You're storing semi-structured product metadata. Discuss pros and cons of using a JSON column in PostgreSQL versus fully normalizing attributes into relational columns and tables. Address queryability, indexing, schema evolution, and storage.
MediumSystem Design
102 practiced
Design an analytics ingestion pipeline that streams application events into an OLAP store. Specify decisions about data schema (append-only vs upsert), partition keys, compaction, and how to allow both real-time and batch analytics.
HardTechnical
88 practiced
As a Software Engineer, explain the trade-offs of polyglot persistence. Give an example architecture that uses a relational DB for transactions, a document store for flexible product models, and a columnar store for analytics. Explain data synchronization strategies between them.
HardSystem Design
104 practiced
Design a globally-distributed database architecture that stores user profiles with strong consistency and a social feed with eventual consistency. Specify region placement, replication model, latency expectations, and how you would route reads and writes.

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.