RDS, Aurora, and ElastiCache Flashcards
What are the benefits of RDS being a managed service?
- Automated provisioning
- Continuous backups and point in time restore
- Monitoring dashboards
- Read replicas
- Multi AZ setup for disaster recovery
(You can’t SSH into the RDS)
What are the conditions of RDS auto scaling?
- Free storage is less that 10%
- Low-storage lasts at least 5 minutes
- 6 hours have passed since last modification
What do read replicas allow you to do?
Allows you to scale up to 15 read replicas that can either be within AZ, cross AZ, or cross region. This replication is async which means it is eventually consistent. They can also be promoted to their own database aswell. (Good use case is duplicating data to another database for a reporting application to run on)
When will read replica network usage be charged?
When the read replica is in a different region
What does RDS Mutli AZ allow you to do?
Multi AZ is sync replication and is purely used as a standby database in case failover is required
How can you change an RDS from single-AZ to multi-AZ?
Just click ‘modify’ in the database, it is a zero downtime operation
What increments does Aurora storage grow in?
10gb
Why is Aurora good for high availibity and read scaling?
6 copies of your data will be stored across 3 AZ
How does read replicas work with Aurora?
There is 1 master Aurora instance and up to 15 read replicas which will access a shared storage volume.
Define a writer and reader endpoint
Writer endpoint - Points to a master instance which will perform writes
Reader endpoint - Connection point which will load balance traffic across multiple read replicas
What are the 2 forms of encryption?
- At-rest encryption where the storage is encrypted using AWS KMS
- In-flight encryption which uses AWS TLS root certificates client side
Why would you want to use an Amazon RDS Proxy?
Allows you to pool and share DB connections into a database, thus improving database efficiency. Also reduces failover time by up to 66% and allows you to enforce IAM authentication.
What is the purpose of Amazon ElastiCache?
It is a managed service for Redis or MemCache
Describe how AWS ElastiCache could be used to manage user sessions
Suppose a user accesses an application and creates a session, this session can be written to an ElastiCache instance. The next time the user accesses an application on a different EC2 instance, the session can be retrieved from the ElastiCache service.
What technology does Redis use?
Replication across multi AZ and read replicas to scale