8. RDS + Aurora + ElastiCache Flashcards

1
Q

What are the steps to encrypt an unencrypted RDS database?

A
  1. Create a snapshot of the unencrypted database
  2. Copy the snapshot and enable encryption for the snapshot
  3. Restore the database from the encrypted snapshot
  4. Migrate applications to the new database, and delete the old database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What databases are supported by ElastiCache?

A

Redis and Memcached

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

What features come with Redis?

A
  • Multi-AZ with Auto-Failover
  • Read replicas to scale reads and have high availability
  • Data Durability using AOF persistence
  • Backup and restore features
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What features come with Memcached?

A
  • Multi-node for partitioning of data (sharding)
  • No high availability (replication)
  • Non-persistent
  • No backup and restore
  • Multi-threaded architecture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What databases does RDS support?

A
  1. Postgres
  2. MySQL
  3. MariaDB
  4. Oracle
  5. Microsoft SQL Server
  6. Aurora (AWS proprietary database)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You have set up read replicas on your RDS database, but users are complaining that upon updating their social media posts, they do not see their updated posts right away. What is a possible cause for this?

A

Read replicas have asynchronous replication, therefore it’s likely your users will only read eventual consistency

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

You are running an ElastiCache Redis cluster which you want to ensure is high availability. What should you do?

A

Enable multi-AZ

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

Which databases does Amazon Aurora support?

A

MySQL and PostgreSQL

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

How many Aurora Read Replicas can you have in a single Aurora DB Cluster?

A

15

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

How many Read Replicas can you have in a single RDS database?

A

15

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

How does the cost of Aurora compare to RDS?

A

Aurora costs more than RDS (20% more) but is more efficient

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

What is the Aurora Backtrack feature?

A

Backtrack allows you to restore data at any point in time without using backups

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

What are the 3 ways in which cache evictions can occur?

A
  1. You delete the item explicitly in the cache
  2. Item is evicted bc the memory is full and it’s not recently used
  3. You set an item time-to-live (TTL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If too many eviction happen due to memory, what you should you do?

A

Scale up or out

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

What are the pros and cons of a Lazy Loading cache invalidation strategy?

A

Pros:
- Only requested data is cached; cache isn’t filled with unused data

Cons:
- Cache miss penalty results in 3 round trips
- Stale data - data can be updated in db and outdated in cache

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

What are the pros and cons of a Write Through cache invalidation strategy?

A

Pros:
- reads are quick; data in cache is never stale

Cons:
- Cache churn; a lot of data will never be read