Recall & Review
beginner
What is a read replica in database systems?
A read replica is a copy of the primary database that handles read-only queries to reduce load on the primary and improve read scalability.
Click to reveal answer
beginner
How do read replicas improve system performance?
They distribute read traffic across multiple copies, reducing the load on the primary database and allowing more users to read data simultaneously.
Click to reveal answer
intermediate
What is eventual consistency in the context of read replicas?
Eventual consistency means that changes made on the primary database take some time to appear on read replicas, so reads might be slightly out-of-date temporarily.
Click to reveal answer
intermediate
Name one common challenge when using read replicas.
One challenge is replication lag, where the read replica is behind the primary, causing stale data to be served to users.
Click to reveal answer
intermediate
Why might a system use multiple read replicas instead of just one?
Multiple read replicas allow better load balancing, higher availability, and fault tolerance for read operations.
Click to reveal answer
What type of queries are typically sent to read replicas?
✗ Incorrect
Read replicas handle read-only queries to reduce load on the primary database.
What is a common downside of using read replicas?
✗ Incorrect
Replication lag means read replicas may serve slightly outdated data temporarily.
Which of the following best describes eventual consistency?
✗ Incorrect
Eventual consistency means data changes appear on replicas after a short delay.
Why use multiple read replicas?
✗ Incorrect
Multiple replicas help distribute read traffic and provide fault tolerance.
Which component usually handles directing read queries to replicas?
✗ Incorrect
A load balancer or query router directs read queries to replicas to balance load.
Explain what read replicas are and how they help scale database systems.
Think about how copying data helps many users read at the same time.
You got /4 concepts.
Describe the challenges and trade-offs when using read replicas in a system.
Consider what happens when data changes on the primary but not yet on replicas.
You got /4 concepts.