InterviewStack.io LogoInterviewStack.io

Replication, Partitioning, and Sharding Questions

Scaling and distributing data across nodes: primary-replica and multi-primary replication, read-replica scaling, horizontal partitioning, and sharding strategies with their key-selection and rebalancing challenges. Covers replication lag, routing, and the operational cost of a partitioned topology. Key to designing databases that scale horizontally.

HardTechnical
86 practiced

You inherited a system with both relational databases and NoSQL stores. The client asks whether to consolidate to a single technology or keep a polyglot approach. As a Solutions Architect, propose evaluation criteria (technical, operational, business) and a decision framework to recommend consolidation, coexistence, or migration.

EasyTechnical
87 practiced

Describe basic replica topologies used in production: primary-secondary (master-slave), multi-primary (multi-master), and leaderless architectures. For each, explain read/write flow, typical use cases, and a key operational caveat.

EasyTechnical
77 practiced

Clarify the difference between logical partitions and physical partitions. As a Solutions Architect, when would you recommend exposing logical partitions in the application versus enforcing physical shard boundaries in the database layer?

MediumSystem Design
103 practiced

Design partitioning for a time-series metrics database used for monitoring: requirements include high ingest (200k events/sec), frequent range queries for recent data (last 7 days), and long-term retention at lower resolution. Describe partitioning scheme, indexing, compaction/retention strategy, and query patterns you would optimize.

MediumTechnical
89 practiced

Design an approach to minimize cross-shard transactions by rethinking the data model. Given a social feed application with users, posts, and likes distributed across shards by user_id, propose how to move to a model that reduces cross-shard joins while preserving correctness and acceptable latency.

Unlock Full Question Bank

Get access to all Replication, Partitioning, and Sharding interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.