AWS · Database

Amazon RDS

Managed relational databases (PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, Db2) with backups, patching, Multi-AZ failover and read replicas.

On the SAA-C03 exam listRelational databaseDisaster recovery

What it is and what problem it solves

Amazon RDS (Relational Database Service) runs relational database engines for you on managed instances: PostgreSQL, MySQL, MariaDB, Oracle, Microsoft SQL Server and Db2. AWS handles provisioning, patching, automated backups with point-in-time restore, monitoring and failover; you handle schema, queries and tuning.

Key features:

  • Multi-AZ: a standby in another Availability Zone with synchronous replication and automatic failover. A Multi-AZ DB cluster adds two readable standbys.
  • Read replicas: asynchronous copies for read scaling, in the same or another Region, which can be promoted.
  • RDS Proxy: pools and shares connections so applications (including Lambda) do not exhaust the database.
Appwrites + readsRegion us-east-1AZ aAZ bPrimaryreads + writesStandbyno reads (Multi-AZ)syncendpointRead replicasame Region, asyncRead replicaother Region (DR), asyncasync replicationreporting reads
RDS: a Multi-AZ standby for failover (synchronous), read replicas for scaling reads (asynchronous)

When to use it

  • Applications that need SQL, joins, transactions and a familiar engine.
  • Lift-and-shift of existing databases without running servers.
  • Commercial engines (Oracle, SQL Server) with licence-included or bring-your-own options.

When to avoid it

  • Massive scale with simple key-based access: DynamoDB.
  • Higher performance and faster failover on MySQL or PostgreSQL: consider Aurora.
  • Analytics over large datasets: Redshift or Athena.
  • You need OS access or unsupported engine features: RDS Custom (Oracle, SQL Server) or EC2.

Scaling model and bottlenecks

Scale up by changing the instance class (brief downtime, less with Multi-AZ); scale reads out with read replicas; storage can grow automatically with storage autoscaling. Writes are limited to one primary instance.

Performance, latency and throughput

Choose storage by need: General Purpose SSD (gp3) for most, Provisioned IOPS (io2) for heavy I/O. Performance Insights shows which queries load the database. RDS Proxy reduces connection overhead for bursty clients.

Limits and quotas

ItemValueContextSource
Maximum storage, MySQL, MariaDB, PostgreSQL and Db2 64 TiB Oracle and SQL Server can reach 256 TiB with additional storage volumes; some instance classes are lower. Source
checked
Read replicas per source instance 15
Can be raised with a quota request
Source
checked
DB instances per Region 40
Can be raised with a quota request
Counts RDS, Aurora, Neptune and DocumentDB instances. Source
checked
Manual DB snapshots per Region 100
Can be raised with a quota request
Source
checked
Multi-AZ DB cluster A writer and two readable standby instances in three Availability Zones Source
checked

Quotas and limits change. Check the linked source before designing around a number.

Cost model

What you pay for

  • Instance-hours by class and engine (billed per second with a 10-minute minimum), On-Demand or Reserved for 1 or 3 years; Multi-AZ roughly doubles the instance cost.
  • Storage per GB-month and provisioned IOPS; backup storage beyond the free allowance; snapshot copies across Regions.
  • Extended Support for engine versions past their end of standard support, billed per vCPU-hour.
  • Licences for commercial engines (licence-included pricing), and data transfer.

Where it is cost-efficient

Steady databases on Reserved Instances, right-sized classes, gp3 storage, and read replicas only where reads need them.

Where costs grow

Over-sized instances, Multi-AZ and replicas on non-production databases, old engine versions in Extended Support, and many manual snapshots.

Cost controls and common surprises

Right-size with Performance Insights and CloudWatch, stop development databases when idle, upgrade engines before Extended Support, and buy Reserved Instances for steady production.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Instances in private subnets of your VPC with security groups, encryption at rest with KMS (set at creation), TLS in transit, IAM database authentication (MySQL, PostgreSQL), and Secrets Manager integration for master passwords.

What you configure

Keep databases private, encrypt at creation (copy an encrypted snapshot to encrypt an existing database), rotate credentials, apply least-privilege database users, and patch with maintenance windows.

Logging and monitoring

Engine logs to CloudWatch Logs, Database Activity Streams for auditing, Performance Insights, CloudTrail.

Related security services

KMS, Secrets Manager, IAM, AWS Backup, GuardDuty RDS protection.

Shared responsibility

AWS manages the host, engine installation and backups. You manage schema, users, network access, encryption choices and queries.

Availability, backup and failure behavior

Multi-AZ gives automatic failover to a standby in another zone (the endpoint name stays the same). Automated backups and snapshots enable point-in-time restore. For Regional disaster recovery, use a cross-Region read replica (promote it in a disaster) or copy snapshots to another Region.

Common service combinations

RDS Proxy with Lambda, Secrets Manager rotation, read replicas for reporting, ElastiCache in front for hot reads, DMS for migrations, AWS Backup.

Business application examples

  • An e-commerce PostgreSQL database with Multi-AZ and two read replicas for reporting.
  • A legacy SQL Server application moved to RDS with licence-included pricing.

Exam cues and common confusions

  • High availability, automatic failover: Multi-AZ (the standby does not serve reads, except in Multi-AZ DB clusters).
  • Read scaling: read replicas (asynchronous). Cross-Region DR: cross-Region read replica.
  • Too many connections from Lambda: RDS Proxy.
  • Encrypt an unencrypted database: snapshot, copy with encryption, restore.
  • OS-level access to Oracle or SQL Server: RDS Custom.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake