Databases Flashcards
Which RDS databases can be configured as multi-AZ or single-AZ?
- SQLServer
- Oracle
- MySQL
- PostgreSQL
- MariaBD
Which RDS database is always multi-AZ?
Amazon Aurora
Advantages of RDS?
- up and running in minutes (not days)
- multi-AZ
- failover capability
- automated backups
When do we use RDS?
- for online transaction processing (OTP)*
- for customer orders
- for completing large numbers of small transactions in real time
When don’t we want to use RDS?
- OLAP (Online Analytical Processing)
- complex queries
- large amounts of data
- data analysis
Instead, use a data warehouse like Redshift, which is optimized for Online Analytics Processing
How does Multi-AZ RDS work?
- creates an exact copy of your production database in another AZ
- AWS handles the replication for you
What happens in RDS with an Unplanned Failure or maintenance?
- If AWS notices that you lose your primary DB, there is an automatic failover by updating the DNS to point to the secondary DB
What is Multi-AZ for?**
- disaster recovery
- NOT improving performance
What are Read Replicas for?
- for improving performance
- a read-only copy of your database
- for querying and read-heavy workloads
- NOT for DR
Can Read Replicas be Multi-AZ?
Yes,
- can be in different regions
How many read replicas can you have per DB?
5
Read Replica basics
- a read-only copy of your primary DB in the same AZ, cross-AZ, or cross-region
- used to increase or scale read performance
- great for read-heavy workloads
- takes the load off your primary DB
What is Amazon Aurora?
- Amazon’s proprietary DB
- MySQL & PostgreSQL
- combines speed & availability at a low price point
How much faster is Aurora than mySQL or PostgreSQL?
- 5x faster than mySQL
- 3x faster than PostgreSQL
Aurora Basics
- Storage Auto Scaling - starts with 10 GB. Scales in 10 GB increments up to 128 TB.
- Compute can scale up to 96 vCPUs and 768 GB of memory.
How redundant is Aurora?*
2 copies of your data are stored in each AZ, with a minimum of 3 AZs
- it’s really redundant