RDS + Aurora + Elasticache Flashcards
What are RDS databases that are managed by AWS?
- Postgres
- MySQL
- MariaDB
- Oracle
- Microsoft SQL server
- IBM DB2
- Aurora
What are the advantages to using RDS insteading of deploying database on EC2?
RDS is a managed service so you get things like:
- Automate provisioning, OS patching
- Continuous backups and restore to a specific timestamp
- Monitoring dashboards
- Read replicas for improved read performance
Etc but you can’t SSH into your instances
___________ helps you increase storage on your RDS DB instance dynamically
RDS- Storage scaling
What are some features of RDS storage auto scaling?
- When RDS detects you are running out of free database storage, it scales automatically
- Avoid manually scaling your database storage
- Your have to set maximum storage threshold (max limit for DB storage)
- Automatically modify storage if:
1. Free storage is less than 10% of allocates storage
2. Low storage last at 5 minutes
3. 6 hours have passes since last modifications - Useful for application with unpredictable workloads
_________ help you scale your reads
Read replicas
What are the features of Read replicas?
- Can have up to 15 read replicas
- can occur Within AZ, cross AZ, or cross region
- Replication is ASYNC, so reads are eventually consistent
- Replicas can be promoted to their own DB
- Applications must update the connection string to leverage read replicas
What are some use case for read replicas?
- When you have a production database thag is taking on normal load
- When you want to run a reporting application to run some analytics
- When you create a read replica to run the new workload
- The production application is unaffected
- Read replicas are used for select (read) only kind of statement (not insert, update, delete)
In AWS there’s a network cost when data goes from ___________
One region to another
Since RDS is a manged service don’t have to pay when using the RDS Read replicas with the ____________ but do have to pay when using cross regions
Same region /different AZ
Describe the RDS multi AZ (disaster recovery)
- Your application does read and writes to RDS master DB instance in one AZ and what it does is have SYNC replication to a standby instance in another AZ
- So one DNS name which results in an automatic app failover to standby
- Which increase the availability
- You can setup your read replicas as multi AZ if you wanted to
How do you make an RDS go from a single AZ to multi AZ?
- It’s a zero downtime operation (no need to stop the DB)
- Just click on “modify” for the database & enable multi AZ (which means your RDS DB instance is going to have a master and have a standby DB with SYNC replication)
___________ manage oracle and Microsoft SQL server database with OS and database customization
RDS Custom
What are some features of RDS custom?
- Access to the underlying database & OS
- Configure settings
- Install patches
- Enable narice features
- Access the underlying EC2 instance using SSH or SSM session manager
- De-activate Automation mode to perform your customizations better to take a DB snapshot before
__________ is a proprietary technology from AWS & postgres and mySQL are both supported as Aurora DB & it’s “AWS cloud optimizes” & claims 5x performance improvement over MySQL on RDS. It’s storage automatically grows in increments of 10GB up to 128 TB. It can also have up to 15 replicas and the process is faster than MySQL
Aurora
What are some features of aurora availability and read scaling?
- Will store 6 copies of your data across 3 AZ & has self healing with peer to peer replication & storage is striped across 100s of volumes
- One Aurora instance takes writes (master)
- Automated failover fir master in less than 30 seconds
- Master + up to 15 Aurora read replicas serve reads ( & supports cross region replication)