RDS Flashcards
What is the best way to instantiate RDS quickly
Restore from a snapshot: the database will have schemas and data ready!
What is the best way to instantiate EBS quickly
Restore from a snapshot: the disk will already be formatted and have data!
What does RDS stand for??
Relational Database Service
What Databases do RDS support (6)
- Postgres
- MySQL
- MariaDB
- Oracle
- Microsoft SQL Server
- Aurora (AWS Proprietary database)
- Automated provisioning, OS patching
- Continuous backups and restore to specific timestamp (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)
RDS
Can you SSH into your RDS instance??
NO
- Helps you increase storage on your RDS DB instance dynamically
- When RDS detects you are running out of free database storage, it scales automatically
RDS – Storage Auto Scaling
You have to set ____________ (maximum limit for DB storage)
Maximum Storage Threshold
RDS – Storage Auto Scaling automatically modify storage if _____ (3)
- Free storage is less than 10% of allocated storage
- Low-storage lasts at least 5 minutes
- 6 hours have passed since last modification
RDS – Storage Auto Scaling is Useful for applications with ____________
unpredictable workloads
Does RDS - Storage Auto Scaling support all RDS database engines??
YES
……….
MariaDB
MySQL
PostgreSQL
SQL Server
Oracle
How many read replicas can an RDS instance have
up to 15 replicas
Can you have RDS in Within AZ, Cross AZ or Cross Region
YES
What type of replication does RDS have?
Async
Can RDS replicas be promoted to their own DB??
YES
Applications must update the __________ to leverage read replicas
connection string
- You have a production database that is taking on normal load
- You want to run a reporting application to run some analytics
- You create a Read Replica to run the new workload there
- The production application is unaffected
- Read replicas are used for SELECT (=read) only kind of statements (not INSERT, UPDATE, DELETE)
RDS Read Replicas – Use Cases
Is there a cost, in AWS, when data goes from one AZ to another??
YES
Is there a cost, in AWS, for RDS Read Replicas within the same region??
NO
What type of replication does RDS Multi AZ (Disaster Recovery) have??
SYNC
- One DNS name – automatic app failover to standby
- Increase availability
- Failover in case of loss of AZ, loss of network, instance or storage failure
- No manual intervention in apps
- Not used for scaling
RDS Multi AZ (Disaster Recovery)
What is the downtime to switch from a single AZ to a multi-AZ??
0 downtime
What happens internally when you switch from single AZ to a multi AZ??
- A snapshot is taken
- A new DB is restored from the snapshot in a new AZ
- Synchronization is established between the two databases
Managed Oracle and Microsoft SQL Server Database with OS and database customization
RDS Custom
Allows you access to the underlying database and OS so you can
* Configure settings
* Install patches
* Enable native features
* Access the underlying EC2 Instance using SSH or SSM Session Manager
RDS Custom
Aurora is “AWS cloud optimized” and claims 5x performance improvement over _________ on RDS, over 3x the performance of _________ on RDS
MySQL
Postgres
Aurora storage automatically grows in increments of _________, up to ________.
10GB
128 TB
What is Aurora’s replica lag time???
sub 10ms
Are Failovers in Aurora is instantaneous????
YES