InterviewStack.io LogoInterviewStack.io

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 needs. Covers structuring the decision, naming trade-offs, and defending a recommendation. A judgment-heavy interview surface for architects and senior engineers.

EasyTechnical
44 practiced

When is polyglot persistence a reasonable architectural choice for a full-stack application? Provide three concrete scenarios where multiple datastores make sense, and three costs or risks that follow from adopting multiple database technologies.

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

You ingest time-series metrics from 5,000 IoT devices at 100 events per second each. Propose a partitioning and retention strategy to avoid hot shards, support efficient per-device range queries, and enable downsampling and cold storage. Include database choices and shard key design.

HardTechnical
42 practiced

Explain with concrete examples how eventual consistency can break multi-step UI workflows (for example: placing an order and immediately viewing order history shows no record). Propose both server-side and client-side patterns to mitigate user confusion, ensure correctness, and surface in-progress state.

HardSystem Design
62 practiced

You're implementing polyglot persistence across a relational DB, a document store, and a graph DB. Design a consistent data access layer and synchronization strategy so read-models stay reasonably fresh and developers can query across datastores. Consider using CDC, event sourcing, transaction boundaries, and query federation.

Unlock Full Question Bank

Get access to all 33 Database Selection and Trade-offs interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.