Recall & Review
beginner
What is data replication in system design?
Data replication is the process of copying and maintaining database or data storage copies across multiple servers or locations to improve availability, fault tolerance, and performance.
Click to reveal answer
intermediate
Explain the difference between synchronous and asynchronous replication.
Synchronous replication waits for data to be copied to all replicas before confirming success, ensuring consistency but adding latency. Asynchronous replication confirms success immediately and copies data later, improving speed but risking temporary inconsistency.
Click to reveal answer
beginner
What is master-slave replication?
Master-slave replication means one server (master) handles writes and updates, while one or more servers (slaves) copy data from the master and serve read requests, improving read scalability.
Click to reveal answer
advanced
Describe multi-master replication and its main challenge.
Multi-master replication allows multiple servers to accept writes and replicate changes to each other. The main challenge is conflict resolution when the same data is changed on different masters simultaneously.
Click to reveal answer
intermediate
What is eventual consistency in replication?
Eventual consistency means that replicas may temporarily differ but will become consistent over time once all updates propagate, trading immediate consistency for better availability and performance.
Click to reveal answer
Which replication strategy waits for all replicas to confirm before completing a write?
✗ Incorrect
Synchronous replication waits for all replicas to confirm the write to ensure consistency.
In master-slave replication, which server handles write operations?
✗ Incorrect
The master server handles all write operations; slaves replicate data and serve reads.
What is a key challenge of multi-master replication?
✗ Incorrect
Multi-master replication must handle conflicts when multiple masters update the same data.
Which replication type offers lower latency but may cause temporary inconsistency?
✗ Incorrect
Asynchronous replication confirms writes immediately, risking temporary inconsistency.
What does eventual consistency guarantee?
✗ Incorrect
Eventual consistency means replicas will match after some time, not instantly.
Explain the main differences between synchronous and asynchronous data replication.
Think about when the system confirms a write is successful.
You got /3 concepts.
Describe master-slave and multi-master replication strategies and their use cases.
Consider read/write patterns and conflict handling.
You got /3 concepts.