RDS + Aurora + ElastiCache Flashcards

(26 cards)

1
Q

What is Amazon RDS?

A

Managed DB service for DB using SQL as query language

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

RDS Storage Auto Scaling

A

When RDS detects you are running out of free database storage, it scales automatically (set maximum storage threshold limit for maximum DB storage), good for unpredictable workloads

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

RDS Read Replicas

A

read-only copies of a primary database instance, used to offload read-heavy workloads and improve database performance (only for reading, not updating, as it is async)

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

RDS Read replica use case

A

Team wants to run reporting application on the prod DB but don’t want to slow prod DB down

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

RDS Read Replicas network costs

A

same region/different AZ does not incur a cost but cross region does

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

RDS Multi AZ (disaster recovery)

A

SYNC replication of DB to standby database to increase the availability, resistant to loss of AZ or network or storage failure

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

Can Read Replicas be set up as Multi AZ for disaster recovery?

A

Yes

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

How to make RDS from single AZ to multi AZ?

A

Zero downtime operation (don’t need to stop DB), just click on modify for the DB to create standby DB

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

Amazon Aurora

A

Proprietary DB from AWS, cloud optimised, automatically grows in increments of 10GB

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

Aurora DB Cluster Writer Endpoint

A

Points to the master (as only master writes to DB)

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

Aurora DB Cluster Reader Endpoint

A

Connects to all read replicas for connection load balancing

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

At rest encryption

A

Data is encrypted on the volumes

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

In flight encryption

A

encryption between client and DB

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

Can you use IAM authentication for accessing DB?

A

yes

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

Does RDS and Aurora have SSH access?

A

no (except for custom RDS)

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

Amazon RDS proxy

A

improves DB efficiency by reducing stress on database resources and minimizing open connections by pooling connections

17
Q

How do you enforce IAM auth for your database?

A

Use Amazon RDS proxy, enable IAM auth, store credentials in AWS secrets manager

18
Q

Amazon ElastiCache

A

Helps reduce load off DBs for read intensive workloads by caching

19
Q

What is a cache hit?

A

Query has already been made and it is stored in the cache

20
Q

What is Redis?

A

Multi AZ with auto failover, read replicas to scale reads and have high availability, backup and restore reatures

21
Q

What is Memached?

A

Multi node for partitioning of data, no high availability (read replica), backup and restore only for serverless

22
Q

When is it good to cache data?

A

Data changing slowly, few keys are frequently needed

23
Q

What is Lazy Loading / Cache-Aside / Lazy population?

A

In the case of a cache miss, read from DB and write the data to cache (can be slow, data can get stale)

24
Q

What is write through?

A

When application writes to DB, also write to the cache (data in cache never stale, but a lot of the data will never be read)

25
Cache evictions 3 ways
- delete item in cache - item is evicted because memory is full or not recently used - you set time to live (TTL)
26