Skip to Content
Asterrr's Handbook
2 · New solutions

Amazon RDS and Aurora

RDS engines, Multi-AZ and read replicas, Aurora storage and Global Database, backups, encryption, RDS Proxy, Blue/Green deployments and the exam traps.

Exam tasks: 2.2 and 2.5 (reliable, scalable data), 3.2, 4.2 (database migration targets), 4.3

The decision: is the problem availability, read scale, or recovery across Regions? RDS and Aurora have a different feature for each, and the exam rewards matching the feature to the problem.

Amazon RDS runs MySQL, MariaDB, PostgreSQL, Oracle, SQL Server and Db2 as managed instances. Aurora is AWS's cloud-native MySQL and PostgreSQL compatible engine, with storage shared across the cluster.

Primary RegionSecondary Regionwritesreadsstorage replicationWriter instanceReader instancesCluster volume,6 copies in 3AZsSecondarycluster,read-only
An Aurora cluster in one Region. One writer and up to 15 readers share a storage volume with six copies across three AZs, and Global Database copies it to another Region.
6 copies
Aurora storage copies across three AZs
15
Aurora replicas per cluster
128 TiB
Maximum Aurora cluster volume size
35 days
Longest automated backup retention on RDS
10
Secondary Regions per Aurora Global Database
15 min
Lifetime of an IAM database authentication token

Read replicas vs Multi-AZ

Multi-AZ (instance)Multi-AZ DB clusterRead replicas
PurposeAvailabilityAvailability plus read scalingRead scaling
ReplicationSynchronousSemi-synchronousAsynchronous
Standby readableNoYes, two readable standbysYes
FailoverAutomatic, DNS endpoint movesAutomatic, typically fasterManual promotion
Cross-RegionNoNoYes
  • Aurora is different: storage keeps six copies across three AZs regardless, replicas share that storage, and any replica can be the failover target (tiers set the order). Failover usually takes under a minute.
  • A cross-Region read replica is a cheap DR option for RDS. For Aurora, Global Database is the better one.

Read replicas for high availability

A read replica doesn't fail over automatically, so it isn't an HA answer for RDS. And Multi-AZ instance standbys can't serve reads, so they don't fix a read bottleneck. Match the feature to the problem.

Aurora features

  • Serverless v2 scales capacity in fine-grained ACUs within seconds, and can scale to zero when idle. Mix serverless and provisioned instances in one cluster, for example a provisioned writer with serverless readers.
  • Global Database replicates storage to up to 10 secondary Regions, typically with under a second of lag. Managed switchover for planned moves, failover for a regional outage. Write forwarding lets apps in a secondary Region send writes that the primary executes.
  • Cloning uses copy-on-write, so a clone of a multi-TB cluster is ready in minutes and costs only for changed pages. Good for test copies of production.
  • Backtrack (Aurora MySQL) rewinds a cluster in place to a point in time, without a restore.
  • Custom endpoints send analytics queries to a subset of larger replicas.

Exam signal

"Test environment with a copy of production, created quickly, minimal extra storage" means Aurora cloning. "Unpredictable, spiky or intermittent SQL workload" means Aurora Serverless v2.

Backups, encryption and security

TopicWhat to know
Automated backupsDaily snapshot plus transaction logs, retained 1 to 35 days, restore to any second in the window. Deleting the instance deletes them unless you keep them
Manual snapshotsKept until you delete them. Share or copy across accounts and Regions
RestoreAlways creates a new instance with a new endpoint. Update the application or the DNS name
EncryptionChosen at creation with KMS. To encrypt an existing instance: snapshot, copy with encryption, restore
Replicas of encrypted sourcesAre encrypted. A cross-Region replica needs a KMS key in the target Region
IAM database authenticationShort-lived tokens instead of passwords for MySQL and PostgreSQL
SecretsSecrets Manager rotates the master password and the application reads the secret
NetworkPlace instances in private subnets, restrict with security groups, and use a DB subnet group across at least two AZs

Encrypt in place

You cannot turn on encryption for a running unencrypted RDS instance. The standard answer is snapshot, encrypted copy, restore, then cut over, or a migration with DMS to a new encrypted instance.

Operating features

  • RDS Proxy pools and shares connections, keeps connections open during failover so failover time drops, and fits Lambda and other bursty clients. Credentials come from Secrets Manager, and it can enforce IAM authentication.
  • Storage autoscaling grows storage when free space runs low, up to a limit you set.
  • Blue/Green Deployments create a synchronized staging copy for engine upgrades and schema changes, and switch over in about a minute with little downtime. It is the answer for a major version upgrade with minimal outage.
  • RDS Custom gives OS and database access for Oracle and SQL Server workloads that need customization, such as legacy packaged applications.
  • Performance Insights shows database load by wait event, and Enhanced Monitoring shows OS metrics.
  • Aurora Serverless v2, cloning, Backtrack, zero-ETL integration with Redshift and the Data API are Aurora-only.
  • Oracle and SQL Server licensing is either license included or bring your own license.

Scenarios

Scenario
A reporting query workload is saturating the primary RDS for PostgreSQL instance. The instance already runs Multi-AZ, and the team wants to offload reads with the least application change. What should they do?
Scenario
A company must upgrade a production RDS for MySQL instance to a new major version with the least possible downtime, and wants to test the upgraded copy before switching. Which feature fits?
Scenario
A global application needs cross-Region disaster recovery for an Aurora MySQL database with an RPO of about one second and a recovery time of minutes. Which solution fits?

Further reading

On this page