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
43 practiced
Design a storage solution for metrics/time-series: system must handle 100 million unique series, an ingest rate of 500k writes/sec, queries for arbitrary time ranges and rollups, retention of 1 year at full resolution and 7 years of aggregated resolution. Recommend database family and explain compression, downsampling, partitioning/shard placement, and lifecycle.
EasyTechnical
43 practiced
You're choosing between a columnar data warehouse (Redshift, BigQuery, ClickHouse) and a row-oriented OLTP database for analyzing event logs and building ML features. Describe the factors you would use (query shape, latency, ingestion characteristics, storage cost, concurrency) and give a recommendation for nightly model training versus low-latency feature lookups.
MediumSystem Design
33 practiced
Design an online feature store to support model serving: 10M distinct feature keys, 1M QPS reads with <10ms read latency, nightly batch feature computation, and 7-day online retention. Recommend storage technologies (Redis vs DynamoDB vs Cassandra vs Bigtable), replication strategy, and operational considerations (capacity planning, TTLs, failover).
EasyTechnical
45 practiced
Define polyglot persistence and provide three distinct practical examples where different stores are combined in a single product (for example, product catalog: relational for transactions, document DB for denormalized views, search engine for discovery). For each example, explain the data flows and synchronization constraints.
HardTechnical
43 practiced
Describe storage and architectural considerations required to implement GDPR's 'right to be forgotten' across systems: relational databases, NoSQL stores, search indexes, analytics data lake, and backups. Provide an implementation approach (tombstones, lineage, selective anonymization) and a testing/verification strategy.

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.