Service · Database
Amazon Relational Database Service (Amazon RDS)
A managed relational database. You pick the engine, and AWS handles setup, patching, backups and failover.
- 1Users reach your application, which runs on Amazon Elastic Compute Cloud (Amazon EC2).
- 2The application reads and writes data in the primary RDS database.
- 3RDS copies every change to the standby in a second Availability Zone as it happens.
- 4If the primary fails, RDS switches to the standby automatically. The database address stays the same, so the application reconnects to it.
Step by step
- 1Users reach your application, which runs on Amazon Elastic Compute Cloud (Amazon EC2).
- 2The application reads and writes data in the primary RDS database.
- 3RDS copies every change to the standby in a second Availability Zone as it happens.
- 4If the primary fails, RDS switches to the standby automatically. The database address stays the same, so the application reconnects to it.
Main goal
- Multi-AZ deployment
- High availability: keep running if an Availability Zone fails
- Read replicas
- Performance: more capacity for reads
How data is copied
- Multi-AZ deployment
- Synchronously, to a standby in another Availability Zone
- Read replicas
- Asynchronously, in the same Region or another Region
Serves reads
- Multi-AZ deployment
- Not with a single standby. It waits to take over.
- Read replicas
- Yes, read-only queries
If the primary fails
- Multi-AZ deployment
- Automatic failover to the standby
- Read replicas
- You can promote a replica to a standalone database
| Compare | Multi-AZ deployment | Read replicas |
|---|---|---|
| Main goal | High availability: keep running if an Availability Zone fails | Performance: more capacity for reads |
| How data is copied | Synchronously, to a standby in another Availability Zone | Asynchronously, in the same Region or another Region |
| Serves reads | Not with a single standby. It waits to take over. | Yes, read-only queries |
| If the primary fails | Automatic failover to the standby | You can promote a replica to a standalone database |
1 / 2
Main goal
- Multi-AZ deployment
- High availability: keep running if an Availability Zone fails
- Read replicas
- Performance: more capacity for reads
How data is copied
- Multi-AZ deployment
- Synchronously, to a standby in another Availability Zone
- Read replicas
- Asynchronously, in the same Region or another Region
| Compare | Multi-AZ deployment | Read replicas |
|---|---|---|
| Main goal | High availability: keep running if an Availability Zone fails | Performance: more capacity for reads |
| How data is copied | Synchronously, to a standby in another Availability Zone | Asynchronously, in the same Region or another Region |
2 / 2
Serves reads
- Multi-AZ deployment
- Not with a single standby. It waits to take over.
- Read replicas
- Yes, read-only queries
If the primary fails
- Multi-AZ deployment
- Automatic failover to the standby
- Read replicas
- You can promote a replica to a standalone database
| Compare | Multi-AZ deployment | Read replicas |
|---|---|---|
| Serves reads | Not with a single standby. It waits to take over. | Yes, read-only queries |
| If the primary fails | Automatic failover to the standby | You can promote a replica to a standalone database |
What it is
Amazon Relational Database Service (Amazon RDS) is a managed service for relational databases. You choose an engine you already know: MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server or IBM Db2. Amazon Aurora is also part of the RDS family. AWS manages the hardware and handles backups, software patching, failure detection and recovery.
You choose the size of the database instance and can change it later. For high availability, a Multi-AZ deployment keeps a standby copy in another Availability Zone and fails over to it automatically. For heavy read traffic, read replicas take read-only queries away from the primary database.
Remember
- Relational: tables, SQL and joins, with engines you already know.
- Automated backups let you restore to any point in time within the retention period.
- Multi-AZ = high availability. Read replicas = more read capacity.
- It runs in your VPC, and security groups control who can connect.
- You still own your data, database users and query tuning.
On the exam
- “A managed relational database that handles backups, patching and failover” points to Amazon RDS.
- “Keep the database available if an Availability Zone fails” is Multi-AZ. “Scale a read-heavy workload” is read replicas.
- Aurora works with MySQL and PostgreSQL. If a question names Oracle, SQL Server or Db2, the managed answer is RDS.
Do not mix it up with
Amazon AuroraA MySQL- and PostgreSQL-compatible relational database that AWS built for the cloud.
Amazon DynamoDBA serverless NoSQL key-value database with single-digit millisecond performance at any scale.
Amazon RedshiftA fully managed, petabyte-scale data warehouse for fast SQL analytics on large amounts of data.