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
33 practiced
You must migrate a monolithic PostgreSQL-backed application to microservices, each owning its own data store (potentially different technologies). Outline a migration plan that minimizes downtime and preserves data consistency during cutover. Include approaches like change-data-capture (CDC), dual writes, strangler pattern, and verification strategies.
HardTechnical
43 practiced
Propose monitoring, alerting, and SLOs for a full-stack application that uses multiple datastores (RDBMS for transactions, NoSQL for sessions, search for product discovery). What metrics should be collected per store, how do you convert them to user-facing SLOs (frontend latency and error budgets), and how would you structure runbooks for database incidents?
EasyTechnical
43 practiced
Describe the CAP theorem in your own words and give one concrete example of a system that favors availability over consistency, and one that favors consistency over availability. Explain why the trade-off is acceptable in each example.
MediumSystem Design
33 practiced
Design the storage layer for an e-commerce product catalog of 5 million items: heavy reads, infrequent writes, faceted search, and complex filtering. Choose primary datastore(s), indexing strategy, denormalization approach, and caching. Explain how you'd integrate a search engine and maintain sync.
MediumTechnical
42 practiced
You are building a social platform with features: authentication, user profiles, friend-graphs, posts, comments, and analytics. Propose a mapping of data stores (relational, document, graph, key-value) to each feature and justify your choices based on query patterns, transaction needs, and scalability. Mention where caching or search should fit.

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.