What is the difference between RDS Multi-AZ and a read replica?
IntermediateConceptMySQL
Answer
Short answer
Multi-AZ is for high availability: a synchronous standby copy in another AZ that you can't read from (in the classic setup) and that takes over automatically on failure. A read replica is for read scaling (and DR): an asynchronous copy you can query, which you must promote manually if you want it as the new primary.
Comparison
| Multi-AZ (standby) | Read replica | |
|---|---|---|
| Purpose | Availability / failover | Read scaling, reporting, cross-region DR |
| Replication | Synchronous | Asynchronous (some lag) |
| Readable? | No (classic) | Yes |
| Failover | Automatic, same endpoint | Manual promotion, new endpoint |
| Can be another region? | No | Yes |
Note
Multi-AZ DB clusters (newer option) have two readable standbys with faster failover — a mix of both ideas.
What to say in the interview
"Multi-AZ gives a synchronous standby for automatic failover with no data loss but isn't for reads; read replicas are asynchronous, readable copies for scaling reads or cross-region DR, promoted manually. Production usually uses Multi-AZ plus replicas if read load needs it."
More on MySQL
How do you set up MySQL and log in to it?BeginnerHow do you create a database, a table and see data in MySQL?BeginnerHow do you create a MySQL user for an application and give it permissions?BeginnerHow do you back up and restore a MySQL database?BeginnerWhat is a relational database?BeginnerWhat is the difference between a database, a table, a row and a column?Beginner