Quizzes · Storage · Level 0
RDS (Relational Database Service)
A managed SQL database, like MySQL or PostgreSQL, that AWS runs for you.
Think of it as: A filing cabinet with a librarian AWS employs.
What to know for Level 0
- RDS runs MySQL or PostgreSQL for you: AWS installs, patches and backs it up. You still use SQL and related tables, which is what you want for joins.
- You pay for every second the database instance runs (10-minute minimum), priced by its instance class, plus the storage you provision. It costs money even when nobody is using it.
- Apps connect with a database username and password on the database port (3306 for MySQL), and the database's security group must let the app in.
- RDS runs inside your VPC, in private subnets; DynamoDB doesn't.
- The DB subnet group must cover at least two Availability Zones, even for a single-AZ database, so a standby can be added later.
- CloudTrail sees AWS API calls like
CreateDBInstance, never the SQL run inside the database. The database's own logs record that.
What to know for Level 1
- Automated backups keep 1 to 35 days of daily snapshots plus transaction logs, so you can restore to any second in that window. A restore always creates a new database instance.
- Manual snapshots are kept until you delete them, even after the database is deleted. Automated backups go when the database is deleted (unless you keep them).
- Encryption at rest (with KMS) is chosen when a database is created. Turn it on from the start.
- Storage autoscaling grows a database's storage automatically when free space runs low, up to a limit you set.
What to know for Level 2
- An existing unencrypted database can't be switched to encrypted: snapshot it, copy the snapshot with encryption, and restore a new database from the copy.
- Multi-AZ keeps a synchronous standby in another AZ. If the primary or its AZ fails, RDS fails over to the standby automatically, usually in one to two minutes, and the endpoint stays the same. The standby serves no reads.
What to know for Level 3
- IAM database authentication lets apps log in to MySQL or PostgreSQL with a short-lived token from their IAM role instead of a password.
More detail
AWS handles installation, patching and backups. You still connect the normal way, with a database username and password over the network (port 3306 for MySQL). RDS runs inside your VPC, so security groups decide who can reach it.
RDS goes into a DB subnet group: a list of private subnets it may use. The group must cover at least two Availability Zones, even for a single-AZ database, so that a standby can be added later.
Quiz yourself on RDS (Relational Database Service) →Study flash cards
← All quizzes