Databases Flashcards

1
Q

RDS DB Tips

A

SQL server, Oracle, MySQL, Postgre SQL, Mana DB, and Amazon Aurora

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

When to use RDS

A

Great for online transaction processing, lots of small transactions like customer orders, banking transactions, payments & booking systems

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

When to not use RDS

A

Not good for online analytics processing.

Use Redshift for data warehousing & OLAP Tasks like analyzing large amounts of data, reporting, and sales forecasting

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

Read Replicas for RDS

A
  1. Scaling Read Performance
    Used for scaling not disaster recovery
  2. Requires Automatic Backups
    Automatic backups must be enabled in order to deploy a read replica
  3. Multiple Read Replicas are supported
    Maria DB, MYSQL, PostgreSQL, Oracle, & SQL server allow up to 5 read replicas to each instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

RDS Multi AZ

A

An exact copy of your Prod DB in another AZ

Used only for disaster recovery

In the event of a failure RDS will automatically swap to the standby instance

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

What is Amazon Aurora Compatible with?

A

MySQL and postgreSQL

It is also an Amazon Proprietary db solution

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

Does Amazon Aurora create replicas?

A

Yes, 2 copies of your data are kept in each AZ w/ a min of 3 AZs = min 6 copies of your data

Supports 3 types of replicas

MySQL

postgre SQL

And Aurora

Only Aurora can do automated failovers from replicas not my sql or Postgre sql

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

Does Aurora support back ups / snapshots?

A

Yes
Aurora has automated backups turned on by default

You can also take snapshots with Aurora and these are shareable with other AWS accounts

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

Aurora Serverless Use cases

A

Provides a relatively simple, cost effective option for infrequent, intermittent, or unpredictable workloads

Scenarios about a serverless DB = Aurora

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

General Dynomo DB

A

Stored on SSD storage

Spread across 3 geographically distinct data centers

Eventually consistent reads

Strongly persistent reads are an option

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

What is Eventually Consistent Read

A

Consistency across all copies of data is usually reached with in a second.

Repeating a read after a short time should return the updated data.

Best read performance

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

What is a strongly consistent read

A

A strongly consistent read returns a result that reflects all writes that have received a successful response prior to the read

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

Dynomo DB Transactions

A

It consists of all or nothing operations

Good for financial transactions

Fulfilling orders

Etc.

Can have up to 25 items or 4 mb of data per write

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

Options for Dynomo DB Transactions

A

Reads can be: transactional, strong consistency, or eventual consistency

Write can be standard or transactional

Dynomo db transactions provides devs, atomicitu, consistency, isolation and durability (ACID) across one or more tables w/in a single AWS account and region

ACID scenarios think Dynomo DB

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

Dynomo DB on Demand Backup & Restore

A

Full backups @ anytime

Zero impact on table performance or availability

Consistent w/in same region as the source table

Consistent within seconds & retained until deleted

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

Dynomo DB Point in Time Recovery (PITR)

A

Protects against accidental write and deletes

Restore to any point in the last 35 days

Incremental back up

Not enabled by default

Latest restorable is 5 min in the past

17
Q

Dynomo DB Streams

A

Helps maintain first in first out records of your data

Time ordered sequence of item level changes in a table

Stored for 24 hours

Includes: inserts, updates, & deletes

Can combine w/ lambda functions for functionality like stored procedures

18
Q

Dynomo DB Global Tables

A

Managed multi master multi region replication

For globally distributed apps

Based on streams so streams must be turned on

Multi region redundancy for disaster recovery and availability

No application rewrites

Replication latency under 1 second

To add redundancy you need to turn on global tables and streams