InterviewStack.io LogoInterviewStack.io

Database Selection and Trade Offs Questions

How to evaluate and choose data storage systems and architectures based on workload characteristics and business constraints. Coverage includes differences between relational and nonrelational families such as document stores, key value stores, wide column stores, graph databases, time series databases, and search engines; mapping query patterns and latency requirements to storage options; trade offs between strong consistency and eventual consistency and their impact on availability and complexity; partition key design, replication strategies, and high availability considerations; operational concerns including backups, monitoring, vendor and cost trade offs, migration or hybrid strategies, and when to adopt polyglot persistence. Senior level discussion includes selecting specific managed services and reasoning about expected load patterns, failure modes, and operational burden.

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.
EasyTechnical
38 practiced
Describe workloads and trade-offs for key-value stores (Redis, DynamoDB) used as primary storage versus as a cache. Discuss persistence/durability options, eviction strategies, TTL usage, memory vs disk trade-offs, and scenarios where an in-memory KV store is acceptable as primary storage versus when persistence is required.
MediumTechnical
36 practiced
Explain how you would architect a highly available PostgreSQL deployment for a write-heavy OLTP workload (5k writes/s) with RPO <= 1 minute. Cover primary/standby topology, synchronous vs asynchronous replication trade-offs, failover automation tooling, monitoring alerts, and backup/point-in-time recovery strategy to meet RTO/RPO.
HardSystem Design
45 practiced
Architect read-write separation for a Postgres cluster serving both OLTP and analytical workloads. Requirements: 10k TPS for writes, complex analytical queries must not impact write tail latency, and eventual consistency for analytics is acceptable. Discuss replica lag, async replicas, query routing, materialized views, logical replication to analytical stores, and SLO maintenance.
HardTechnical
33 practiced
Explain trade-offs between normalized and denormalized data models for high-scale services. Provide examples where denormalization improves read performance at the cost of write complexity, and describe practical patterns (CDC, event sourcing, reconciliation jobs) to keep denormalized copies consistent in production.

Unlock Full Question Bank

Get access to hundreds of Database Selection and Trade Offs interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.