AWS Fundamentals: RDS & AURORA & ElastiCache Flashcards
What does RDS stand for
Relatable Database Service
What is SQL?
Structured Query Language
What is RDS?
Managed DB service that uses SQL
What does RDS allow you to do?
Create databases in the cloud, managed by AWS
What kind of Databases are created using RDS?
Postgres
MySQL
MariaDB
Oracle
Microsoft SQL Server
Aurora (AWS Proprietary Database)
Advantage of using RDS instead of deploying DB on EC2?
It is a Managed Service
What does being managed service mean with RDS?
- Automated provisioning, OS patching
- Continuous backups and point in time restore
- monitoring dashboards
- read replicas for improved read performance
- multi AZ setup for DR (Disaster Recovery)
- Maintenance windows for upgrades
- Scaling capability (vertical and horizontal)
- Storage backed by EBS (gp2 or io1)
What can you NOT do with RDS?
SSH into instances
How does RDS Storage Auto Scaling work?
Helps increase storage dynamically
When RDS detects you are running out of free DB storage, it scales automatically
What do you need to set up in RDS for Auto Scale to work?
Maximum Storage Threshold
What parameters does RDS need to meet for Storage Auto Scaling to work automatically?
- Free storage is less than 10% of allocated storage
- Low storage lasts at least 5 minutes
- 6 hours passed since last modification
When is Automatically modify storage helpful in RDS?
When you have apps with unpredictable workload
Which DB is Storage Autoscale modification available for?
MariaDB
MySQL
PostgreSQL
SQL Server
Oracle
What are RDS Read Replicas?
They are replicated instances (of main RDS instance) and are ASYNChcronised
How many Read Replicas can you have?
Up to 15
Where can you have Cross Replicas of RDS?
Within AZ, Cross AZ, Cross Region
What does it mean to by ASYNC?
It means that eventually the reads will be consistent once all replicas are caught up/updated
What can you do with the replicas if you don’t want them anymore?
You can promote them to be their own DB
What does the app need to do in order to leverage read replicas?
Update the connection string
Read Replica Use case
When you have a prod app using an RDS instance, and you want to have a reporting app ontop of that RDS instance. You create an RDS instance replica, because that will not slow down the RDS instance.
This case your RDS DB instance creates an ASYNC replication with the RDS replica and the reporting app is reading from there. Leaving the RDS unaffected.
What are Read Replicas only for?
Reads
When does a network cost incur in AWS?
When data goes from one AZ to another
Do you pay network cost for RDS when moving data from one AZ to another?
No, RDS is except as long as the AZ are in the same region.
What is RDS Multi-AZ used for?
Disaster Recovery