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)
________ points to the master (in context to aurora DB cluster)
Writer endpoint
_______ connects to the load balancing & connects automatically with the replicas (in context to aurora DB cluster)
Reader endpoint
What the features of Aurora ?
- Automatic failover
- Backup and recovery
- Isolation and security
- Industry compliance
- Push- button scaljng
- Automated patching with zero downtime
Etc
Explain aurora replicas auto scaling
- Let’s say you a client and 3 aurora instances where one is writing through the writing endpoint and the other two are reading through reader endpoint
- If you have many request on reader endpoints it’ll increase the CPU usage which you can setup replica auto scaling which will add aurora replicas and extend the reader endpoints are extended to cover the new replicas and the new replicas will start receiving traffic and request are distributed evenly
With __________ you define a subset of aurora instances as a custom endpoint & the reader endpoint is generally not used after defining custom endpoints
Aurora custom endpoints
What are some features of Aurora serverless?
- Automated database instantiation and auto-scaling based on actual usage
- Good for infrequent, intermittent or unpredictable workloads
- No capacity planning needed
- Pay per second, can be more cost efficitive
What are some features of Global Aurora?
- Aurora cross region read replicas
- Useful for disaster recovery
- Simple to put in place - Aurora global database (recommend)
- 1 primary region (read/write)
- Up to 5 secondary (read-only) regions, replication lag is less than 1 second
- Up to 16 read replicas per secondary region
- Helps for decreasing latency
- Typical cross replication takes less than 1 second (big indicator that it’s talking about global aurora)
What are some features of Aurora machine learning?
- Enables you to add ML- based predictions to your applications via SQL
- Simple, optimized, and secure integration between Aurora and AWS ML services
- Supported services (Amazon sagemaker and aws comprehend)
- Use cases is fraud detection, ads targeting, sentiment analysis, product recommendations
What are some features of RDS backups?
- Has automated backups
- Daily full backup of the database (during the backup window)
- 1 to 35 days of retention, set 0 to disable automated backups
- Manual DB snapshots
- Manually triggered by the user
- Retention of backup for as long as you want
- Trick with RDS backups, in a stopped RDS database, you will still pay for storage. If you plan on stopping it for a long time, you should snapshot & restore instead