InterviewStack.io LogoInterviewStack.io

Database Scalability and High Availability Questions

Architectural approaches and operational practices for scaling and maintaining database availability. Topics include vertical versus horizontal scaling trade offs; replication topologies, leader and follower roles, read replicas and replica lag; read write splitting and connection pooling; sharding and partitioning strategies including range based, hash based, and consistent hashing approaches; handling hot partitions and data skew; federation and multi database federation patterns; cache layers and cache invalidation; rebalancing and resharding strategies; distributed concurrency control and transactional guarantees across shards; multi region deployment strategies, cross region failover and disaster recovery; monitoring, capacity planning, automation for failover and backups, and cost optimization at scale. Candidates should be able to pick scaling approaches based on read and write patterns and explain operational complexity and trade offs introduced by distributed data.

MediumTechnical
38 practiced
Outline a strategy to change a frequently updated column type across a sharded database containing millions of rows. Include online migration techniques, backwards-compatible schema changes, dual-write approaches, verification, and rollback plans to minimize downtime and risk.
HardSystem Design
44 practiced
Design a multi-master replication system across three regions allowing writes in any region that must deterministically resolve conflicting writes and converge. Include conflict-resolution policies (last-write-wins, CRDTs, application-level merge), metadata required (vector clocks), and operational considerations for partitions and eventual convergence.
EasyTechnical
37 practiced
Describe leader-follower (primary-secondary) replication topology. What are the responsibilities of the leader versus followers, how is write and read traffic typically handled, and what considerations should be made for leader failover, promotion, and split-brain prevention?
EasyTechnical
41 practiced
Define sharding and partitioning in databases. Explain the differences and overlap between the terms, list common partitioning strategies (range, hash, list), and describe how each strategy affects query routing, joins, and operational complexity for a large transactional system.
HardTechnical
60 practiced
Propose a detailed strategy to mitigate hot-keys in a consistent-hashing partitioned cache or database. Include techniques such as key-splitting (logical sharding of a hot key), dynamic re-sharding, request routing to dedicated nodes, client-side batching, and rate limiting. Evaluate operational complexity and performance trade-offs.

Unlock Full Question Bank

Get access to hundreds of Database Scalability and High Availability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.