Databases 101 Flashcards

1
Q

What is RDS?

A

It is Amazon’s Relational Database System.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is RDS Multi AZ?

A

This is for disaster recovery. If the primary database fails AWS automatically shifts requests over to the secondary database, called FailOver.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is RDS Read Replicas?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many Read Replicas are allowed?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is OLTP vs OLAP?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is ElastiCache?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What AWS Services use OLTP?

A

RDS uses Online Transaction Processing for mysql, oracle, and aurora databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What AWS Services use OLAP?

A

RedShift is a data warehouse that uses Online Analytics Processing for querying large record sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Who is responsible for patches on RDS?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is RDS Serverless?

A

No, RDS is not serverless, with the exception of Aurora dB, which has a serverless option.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the two types of Backups for RDS?

A
  1. Automated Backups - allows recovery any time up to 35 days. Takes full backups plus transaction logs.
  2. Database Snapshots - manual, are stored even after the RDS instance is deleted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does RDS use for Encryption at Rest?

A

It uses the AWS Key Management Service, KMS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: Read Replicas require automatic backups to be turned on.

A

True; they cannot be deployed with automatic backups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can a Read Replica be promoted to a master dB?

A

Yes, however it breaks the replication to that dB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: It is possible to force a Multi AZ failover into another AZ?

A

True; with Multi AZ turned on, you can reboot the RDS instance with failover to force the RDS instance to simulate a disaster scenario.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Dynamo dB?

A

A NoSql database stored on SSD storage, spread across 2 geographically distinct data centers. It has Eventual Consistent Reads by default, and supports Strongly Consistent Reads.

17
Q

What is the difference between Eventual Consistency Reads and Strongly Consistent Reads?

A

Eventual Consistent Reads means consistency across all copies of data occurs within a second.

Strongly Consistent Reads means returns a results for all writes that received a success response prior to the read request. This is designed for applications that need near read after write consistency.

18
Q

What is RedShift?

A

It is AWS’ data warehouse service. It uses OLAP, and is only available in one AZ. The backup retention period is up to 35 days, and Redshift always attempts to maintain at least 3 copies of the data, and can also replicate snapshots to S3 in another region for disaster recovery.

19
Q

What is Aurora?

A

Amazon’s relational database.

Starts w/ 10Gb of storage and scales in 10Gb increments up to 64 Tb.

Compute resources can scale up to 32 vCPUs and 244Gb of memory.

Two copies of data are contained in each AZ with a minimum of 3 AZs, so 6 copies of the data.

Aurora Storage is automatically repaired when errors are detected.

20
Q

How many AZs can Aurora lose with no impact to database write and read availability?

A

Write - 2AZs

Read - 3 AZs

21
Q

How many Read Replicas can Aurora support?

A

Up to 15, but Cross Region is not supported. There are 3 types of replicas, Aurora, MySQL, and Postgres. Failover is only supported for Aurora replicas.

22
Q

What is Aurora Serverless?

A

A simple, cost effective option for infrequent, intermittent, unpredictable workloads. You pay only when someone is requesting data, such as via website.

23
Q

What is the use case for ElastiCache?

A

It is used to increase database and web application performance.

24
Q

What are two options to increase the performance of an overloaded database?

A
  1. Add a Read Replica and point all the reads to the replica.
  2. Add ElastiCache
25
Q

True or False: Redis is Multi AZ?

A

True; it is Multi AZ, and it allows for back ups and restores or Redis.