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.

HardTechnical
38 practiced

Your team must choose between single-region managed RDBMS with strong consistency and a globally replicated NoSQL store with eventual consistency. The service stores user shopping carts and must guarantee that an item added is visible when the user immediately fetches their cart. Evaluate the correctness and UX implications of both choices and propose a design that preserves user expectations across geographic regions.

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.

HardSystem Design
36 practiced

Your team is considering migrating from a monolithic Postgres instance to a distributed NewSQL database to handle scale. What criteria would you use to decide whether the migration is worth it, and what would a migration checklist look like that minimizes data loss and downtime during the cutover?

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
40 practiced

Case study: an e-commerce business needs inventory availability checks with <50ms global latency for checkout and daily analytics for replenishment. Propose a storage architecture that serves fast reads for availability and eventual-consistency analytics. Include a migration plan from a single-region RDBMS to this architecture.

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.