Lesson 1 of 7 Amazon RDS and Aurora

Running Managed Relational Databases with Amazon RDS

This lesson explains what Amazon RDS manages for relational databases running MySQL, PostgreSQL, MariaDB, Oracle, SQL Server or Db2, and when a different platform fits.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe what RDS manages.
  • Choose an engine and platform, including RDS Custom.
  • Explain how changes to a running database are planned.

What RDS manages

Amazon RDS takes over most of the operational work of running a relational database. AWS handles provisioning, patching, backups, monitoring and failover, and there is no SSH access to the database host, except with RDS Custom for SQL Server. Storage is gp3 or Provisioned IOPS (io1 or io2), and storage autoscaling grows it automatically, up to a configured maximum, when free space runs low.

Patching and minor version upgrades happen in a weekly maintenance window that the customer chooses. CloudWatch Database Insights, which replaced the Performance Insights console in mid-2026, shows which queries and wait events consume the database's resources, which is the starting point for performance tuning.

Choosing an engine and platform

RDS supports several database engines, and the choice usually follows from the application. MySQL offers the broadest compatibility with existing tools and frameworks, and PostgreSQL offers advanced SQL features and extensions, such as PostGIS for geographic data. Oracle and SQL Server run existing commercial applications that require them, with licence costs either included or brought by the customer. Aurora is compatible with MySQL or PostgreSQL but uses a cloud-native storage layer, which gives higher performance, faster failover and more replicas.

Some applications need more control than RDS allows. RDS Custom for SQL Server gives access to the operating system and database host, for software that requires it, while AWS still handles backups and other management. RDS Custom for Oracle reaches end of support on 31 March 2027, and AWS directs those workloads to self-managed Oracle on EC2. An engine or version that RDS does not support, or a need for complete control, means running the database yourself on EC2. The following table summarises the choice.

NeedChoose
Broad compatibilityMySQL
Advanced SQL, extensions like PostGISPostgreSQL
Existing commercial apps (with licensing costs)Oracle or SQL Server
MySQL or PostgreSQL with better performance and availabilityAurora
OS access on SQL ServerRDS Custom for SQL Server
OS access on OracleEC2 (RDS Custom for Oracle ends support in March 2027)
Unsupported engine or version, or full controlEC2
Scenario questions

Engine and platform

Exam skills 3.3.3 · 3.4.1

Choose the database engine or platform for each requirement.

Log in to try this activity Interactive activities are free with an account.

Changing a running database

Changes to a running database can cause downtime unless they are planned. Changing the instance class causes a short outage while the instance restarts; with Multi-AZ, RDS applies the change to the standby first and then fails over, which reduces the outage to the failover time.

Amazon RDS Blue/Green Deployments go further for major changes, such as engine version upgrades or schema changes. They create a staging copy, the green environment, kept synchronised with production, where the change is applied and tested; switching over then takes about a minute, and the original environment remains available until the switch is confirmed.

True or false

Changing a running database

Exam skills 3.3.2 · 2.2.1

Check how RDS changes can be made with little downtime.

Log in to try this activity Interactive activities are free with an account.
Worked example

RDS, RDS Custom or EC2?

The appropriate database platform depends on the degree of control the workload requires. The following table identifies the choice suited to several requirements.

RequirementChoice
A PostgreSQL database with minimal administrationAmazon RDS for PostgreSQL
Oracle with a third-party agent installed on the database hostOracle on EC2 (RDS Custom for Oracle ends support in March 2027)
A database engine version RDS does not supportEC2 with self-managed installation
MySQL with the highest availability and read scalingAmazon Aurora MySQL
An engine upgrade with about a minute of downtimeAn RDS blue/green deployment

RDS is the default for relational databases on AWS. RDS Custom and EC2 are chosen only when a requirement, such as host access or an unsupported version, rules managed RDS out.

Check yourself

Which tasks does Amazon RDS manage, and which remain with the customer?

Show answer

RDS manages provisioning, engine and operating system patching, automated backups, Multi-AZ failover and monitoring. The customer still manages the schema, queries, users and access.

Exam Tips

Remember for the exam

  • To avoid running out of storage, enable storage autoscaling.
  • For a major engine upgrade with minimal downtime, use an RDS blue/green deployment.
  • When you need access to the database host's operating system, use RDS Custom for SQL Server, or EC2 for Oracle and other engines.
  • To find the queries that slow a database down, use CloudWatch Database Insights.