Databases 101 Flashcards
What is RDS?
It is Amazon’s Relational Database System.
What is RDS Multi AZ?
This is for disaster recovery. If the primary database fails AWS automatically shifts requests over to the secondary database, called FailOver.
What is RDS Read Replicas?
This is for performance. It uses one a Primary database that can be used for writes and reads, but a Secondary database also exists for two purposes, redundancy, and to reduce the number read requests on the Primary database which can slow the Primary performance. Read Replicas does not support FailOver.
How many Read Replicas are allowed?
Up to 5, and you can have Read Replicas of Read Replicas, but this increase latency. The Read Replicas also can be in different AZs or Regions that the Primary dB.
What is OLTP vs OLAP?
Online Transaction Processing is database architecture that specifically for finding information, ex. an order number and related info.
Online Analytics Processing is another architecture for database, but is designed for querying large numbers of records, and running calculations on them.
Separate databases allows each architecture to run as efficiently as it can.
What is ElastiCache?
It is a web service that allows for easy deployment of in memory cache in the cloud, like the RAM for a computer. It supports Memcache and Redis.
What AWS Services use OLTP?
RDS uses Online Transaction Processing for mysql, oracle, and aurora databases.
What AWS Services use OLAP?
RedShift is a data warehouse that uses Online Analytics Processing for querying large record sets.
Who is responsible for patches on RDS?
RDS runs on virtual machines, and so it is not possible to log into the OS and patch. AWS is responsible for patching and updates.
Is RDS Serverless?
No, RDS is not serverless, with the exception of Aurora dB, which has a serverless option.
What are the two types of Backups for RDS?
- Automated Backups - allows recovery any time up to 35 days. Takes full backups plus transaction logs.
- Database Snapshots - manual, are stored even after the RDS instance is deleted.
What does RDS use for Encryption at Rest?
It uses the AWS Key Management Service, KMS.
True or False: Read Replicas require automatic backups to be turned on.
True; they cannot be deployed with automatic backups.
Can a Read Replica be promoted to a master dB?
Yes, however it breaks the replication to that dB.
True or False: It is possible to force a Multi AZ failover into another AZ?
True; with Multi AZ turned on, you can reboot the RDS instance with failover to force the RDS instance to simulate a disaster scenario.