Database Selection and Trade-offs Questions

Choosing the right database and data platform for a workload: relational versus NoSQL versus specialized stores, managed versus self-hosted, and matching technology to consistency, scale, cost, and query or access-pattern needs. Covers OLTP versus OLAP and transactional-versus-analytical workload splits, polyglot persistence across multiple data stores, structuring an ambiguous selection prompt, naming trade-offs, and defending a recommendation to stakeholders.

HardSystem Design
45 practiced

Design a hybrid OLTP/OLAP (HTAP) schema to support fast transactional operations (order placement) and low-latency analytics (live dashboards) on the same system. Discuss schema choices (normalized vs denormalized), indexing, how to protect transactional latency under analytic load, consistency models, and whether to use a purpose-built HTAP DB (TiDB, SingleStore) or maintain separate systems with CDC.

MediumSystem Design
57 practiced

Design the data storage architecture for a social feed service with 10M users and 1B posts. Requirements: personalized feeds with p95 read <100ms, write throughput 50k posts/min, support full-text search over posts, and eventual consistency acceptable for feed freshness. Map query patterns (fanout-on-write vs fanout-on-read) to storage options (wide-column, key-value cache, search engine) and justify replication, caching, and consistency trade-offs.

HardTechnical
41 practiced

You must evaluate three candidate databases for a write-heavy leaderboard system: Redis (in-memory), Cassandra (wide-column), and PostgreSQL (disk-backed). Define benchmark scenarios (writes/sec, reads/sec, read-after-write latency, data size), key failure modes to test, and what metrics and SLOs you would use to pick the right platform.

HardTechnical
42 practiced

For telemetry at 500k writes/sec, compare wide-column stores (Cassandra/Scylla), document stores (MongoDB), and key-value stores (DynamoDB) in terms of write scalability, compaction, consistency, ability to run aggregations, and operational overhead. Which would you recommend and why? Include mention of data modeling patterns to keep throughput high.

MediumTechnical
39 practiced

You operate a MySQL cluster that handles mostly heavy writes plus occasional analytical queries. Compare the InnoDB and MyISAM storage engines on concurrency control, crash safety, and transactional support. Recommend an engine and indexing approach for this workload, and describe how you would provision storage and maintenance so the analytical queries do not interfere with the write path.

Unlock Full Question Bank

Get access to all Database Selection and Trade-offs interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.