All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
What is a read replica for?
The strongest answer
A copy of the database that receives writes from the primary and serves reads, so read traffic scales out and the primary is left for writes; reads from it can lag slightly behind the primary
Why it works
Right. Reads scale out; expect replication lag.
What a good answer covers
- Copies primary; serves reads.
- Scales reads, not writes.
- Lag exists.
- Primary stays for writes.
Answers that fall short
- Close, but not the strongest: A backup you restore from when the primary fails
Replicas can help failover, but their purpose is read scaling. - Weak: A second database that also takes writes
Only the primary writes in this setup. - Red flag: A cache for the database
A replica is a full database, not a cache.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- Why would you put a queue between two parts of a system?
- What is the difference between latency and throughput?
- An interviewer asks for p99 latency. What does that mean and why ask for it?
- How do you estimate storage for 100 million short URLs?
- What does a CDN do for a web application?
- Why would a class take its database client as a constructor parameter instead of creating one inside itself?
- The interviewer asks: “Should this service be CQRS?” Strongest answer?
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…