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.

MediumTechnical
43 practiced

You must choose between PostgreSQL and MongoDB for an application with flexible JSON fields, occasional complex joins, and multi-entity transactions. Define evaluation criteria including query patterns, transactions, index support, operational expertise, scaling needs, and provide a recommendation plus a migration plan if choosing one over the other.

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

You're designing the storage layer for a new e-commerce product catalog and order service. For each of these two use cases, justify whether you'd choose a relational database (e.g., PostgreSQL), a document store (e.g., MongoDB), or a key-value store. Include considerations such as schema flexibility, transactional guarantees, query patterns (joins, filters), indexing, and expected operational complexity.

HardSystem Design
31 practiced

You must design a global, low-latency user profile store for 200M users supporting reads under 20ms from any region and occasional writes (profile updates). Candidate technologies: DynamoDB Global Tables, Cassandra multi-dc, PostgreSQL with read replicas. Choose a solution, justify it, and outline replication, conflict resolution, cost implications, and read routing.

MediumTechnical
58 practiced

A team is debating between storing large binary objects (images and videos) in the database vs object storage (e.g., S3) with URL references in the DB. List pros/cons for each approach, including backup size, transactional guarantees, performance, and cost. As an engineer, recommend a pattern for a social media app where media is frequently uploaded and read.

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.