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

Compare global secondary indexes in DynamoDB (GSI) and global indexes in Cassandra (global-index approaches). Describe how each system maintains the index, consistency guarantees, write amplification, and limitations when used across shards/partitions for strongly consistent queries.

HardTechnical
90 practiced

Design a resharding testing framework and CI/CD pipeline that validates correctness, performance, and rollback for different workloads. Include workload generators (including skew/hot keys), chaos tests (node failures, network partitions), canary rollout steps, automated verification (row-level checksums, aggregated metrics), and integration with deployment pipelines.

HardTechnical
87 practiced

After a network partition you observe inconsistent state across replicas: some records diverged and cause application errors. Walk through a practical incident response: how to detect which keys diverged, automated tools to reconcile (CRDTs, last-writer-wins, operational reconciliation scripts), how to prevent recurrence, and how to communicate with affected customers.

MediumTechnical
69 practiced

Explain resharding techniques: copy-based (copy then switch), scatter-gather, redirect-based (proxy forwarding), and consistent-hash-incremental. For each technique describe impact on writes/reads during migration, expected downtime, and operational complexity. Provide recommendations for 100TB datasets.

MediumTechnical
84 practiced

Design a sharding strategy for a user-profile store that must support low-latency reads (<10ms p95) and high write throughput. Discuss shard-key choice, consistent hashing vs modulo sharding, replication factor for reads, re-sharding strategies, handling hot keys, and cross-shard transactions or queries.

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.