Section 9: RDS. Aurora & ElastiCache Flashcards
What is Amazon RDS (relational Database Service)?
Amazon RDS is a collection of managed services that make it simple to set up, operate and scale relational databases in the cloud
What are the eight (8) advantages of using RDS versus deploying a DB on EC2?
1) Autoamted Provisioning and OS patching
2) Continuous backups and point-in-time restore
3) Monitoring dashboards
4) Read replicas for improved read performance
5) Multi AZ setup for disaster recovery
6) Maintenance windows for upgrades
7) Horizontal and Vertical scaling capability
8) Storage backed by EBS
What is the retention period for RDS Backups, and how are the backups stored?
The retention period is 1 to 35 days, and the backups are stored in S3
How do RDS Read Replicas work?
Data is written from an application to an RDS DB instance. A snapshot of the DB is created to replicate it, and the data is then copied to replicas with asynchronous replication. Async replication ensures reads are consistent.
Can RDS read replicas have replicas themselves?
Yes, however it is important to be aware of latency in these scenarios.
How many replicas can you have of a given RDS DB?
Up to five (5) read replicas.
Are RDS read replicas meant for disaster recovery?
No. Although they can be used for disaster recovery in certain cases, RDS read replicas are meant for scaling, not disaster recovery.
What is RDS Multi-AZ?
A snapshot is taken to make a DB copy. A new DB is then restored from a snapshot in a new AZ. Synchronization is then establish between the DBs, and this does hot have a major effect on performance.
Is RDS Multi-AZ meant for disaster recovery?
Yes, RDS Multi-AZ is meant for disaster recovery and not improving performance. However it is confined to the DB AZ. If disaster recovery across regions is required, Aurora Global Database should be used.
What is Amazon Aurora?
Amazon Aurora is a MySQL and PostgreSQL compatible relational database engine
Why is Aurora Better than RDS?
1) higher performance and availability
2) More expensive, but more efficient
3) Has instantaneous failover
4) Storage grows automatically in increments of 10 GB
What is an Aurora DB Cluster?
Aurora DB clusters consist of one or more DB instances and a cluster volume that manages the data for those DB instances
How do Aurora DB Clusters work?
1) The main DB is the only DB that can write to the shared volume
2) Load balancing is used to connect read replicas to one reader endpoint
3) the reader endpoint connects to the client, and the client is connected separately to the write endpoint which is connected to the master DB
How do Aurora security and RDS security differ?
They do not differ.
What is Aurora Serverless and what are its benefits?
Aurora Serverless is Aurora with on-demand, autoscaling configuration, automatic startup / shut down and automatic scaling based on application needs.
The main benefit is its cost-effectiveness for infrequent / unpredictable workloads.
What is Amazon ElastiCache
ElastiCache is a service that allows you to deploy, operate, and scale in-memory caches in the cloud.
What are four (4) main use cases of ElastiCache?
1) Storing user session data
2) Scaling DB reads with only the most current data
3) Make your application stateless
4) Increases web app and DB performance