Databases Flashcards

1
Q

TRUE or FALSE: Patching or RDS OS and DB is Amazon’s responsibility

A

TRUE

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

Maximum RDS Storage Size

A

16TB

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

Is RDS serverless?

A

FALSE

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

My RDS is not attaching to my EC2 unit what might be the issue?

A

Make sure to add EC2 security group to rds security group

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

TRUE or FALSE: A restored RDS database has the same RDS endpoint

A

FALSE

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

Prerequisite for enabling Read Replica on RDS Database

A

Must have automatic backups turned on

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

TRUE or FALSE: You can have a RDS Read Replica in a different region

A

TRUE

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

What RDS are available (6)?

A

SQLServer
Oracle
MySQLServer
PostgreSQL
Aurora
MariaDB

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

What types of backups does RDS offer?

A

1) Automated Backups

2) DB Snapshot

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

What is the Retention Period of an RDS Automated Backup?

A

1-35 days

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

Describe an RDS Automated Backup

A

Takes a full daily snapshot and store logs throughout the day.

Recovery AWS chooses most recent daily backup and applies logs

Recovery is down to second w/ in retention period (Point int time recovery)

Default

Backups stored on s3 (free storage equal to size of DB)

Storage I/O may be suspended and may experience elevated latency during backup

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

Can you encrypt an RDS database?

A

Yes, encryption is done at rest using KMS.

But you cannot encrypt a currently existing DB

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

How to encrypt an existing DB?

A

Have to create a snapshot and encrypt that

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

What is Multi-AZ?

A

Host RDS in multiple availability zones for DISASTER RECOVERY.

Note this does nothing for performance.

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

What is Read Replica?

A

It is a way to scale out a DB load over multiple read replicas. Uses async replication from primary RDS to read replicas.

Use this on heavy read DB workloads.

Used for SCALING

Must have AUTO BACKUPS on in order to deploy read replica.

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

How many read replicas can you have?

A

5

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

Can you promote RR to become own DB?

A

Yes, but note this breaks replication

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

Which RDS Databases have RR capabilities?

A

MySQL
PostgreSQL
MariaDB
Aurora

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

How to collect all SQL statements that take a long time to execute?

A

Enable slow query log in RDS

20
Q

Default READ consistency of Dynamo DB

A

Eventually Consistent Reads

but can get strong consistent

21
Q

How to add Caching to DynamoDB to increase preformance

22
Q

of AZ for DynamoDB

A

At least 3

23
Q

What type of storage is DynamoDB stored on

24
Q

IF you need ACID all or nothing on DynamoDB

A

Transactions

25
TRUE or FALSE DynamoDB On Demand Backup and Restore effects table preformance
FALSe
26
TRUE or FALSE DynamoDB Point in time recovery is enabled by default
FALSE
27
DynamoDB PITR max # of days to restore from
35 days
28
DynamoDB PITR latest retore time
5 minutes
29
TRUE or FALSE DynamoDB tables can be replicated across Regions
TRUE, DynamoDB Global Tables (based on DynamoDB streams)
30
Benefits of DynamoDB global tables
Multi-region redundandy Disaster Recovery High Availability
31
Want to move MongoDB to the Cloud
Use AWS Database Migration Service Select AWS DocumentDB
32
Database used for big database workloads distributed over many servers (NoSQL)
Cassandra
33
What is AWS Keyspaces
Allows you to run your Cassandra DB in AWS Serverless
34
What AWS Service is used for Graph DB ?
Neptune
35
AWS Service with NoSQL immutable database (Ledger database)
QLDB
36
Uses for QLDB
Crypto Bank Transactions Shipping Claims System System of Record Application
37
AWS Time Series Database
Amazon Timestream
38
Examples of time series data
IoT Analytics Devops Applications
39
Need a database that is relational and can store petabytes of data
Redshift
40
Max size of Redshift database
16 PB of data
41
Automatically on-demand scaling database which is a budget friendly service based on Aurora
Aurora Serverless
42
ACU units are about how big?
Aurora Compute Units are approx 2 GiB memory , matching CPU, and netoworking
43
Aurora allows for how many copies of data (data resilency)
6 copies of data across 3 AZ
44
How to implement high availability on Aurora
Enable multi-AZ
45
6 popular use cases for aurora serverless
Variable Workloads Multi-Tenant Apps New Apps Dev & Test apps Multi-Use Apps Capacity planning
46
How to manage capacity planning on Aurora Serverless databases?
Set Min and Max ACU you want to use Then you are billed per second for what you actually use