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.
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.
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.
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?
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.
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 ContinueJoin thousands of developers preparing for their dream job.