Chp 9: AWS Fundamentals- RDS, Aurora, & Elasticache Flashcards

1
Q

What is Amazon Aurora

A

Amazon Aurora is a MySQL and PostgreSQL-compatible relational database built for the cloud that combines the performance and availability of traditional enterprise databases with the simplicity and cost-effectiveness of open source databases.

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

Advantages of Amazon Aurora

A
  • An AWS managed service
  • automated updates
  • automated backups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

RDS- Autoscaling group

A

Helps increase storage on your RDS DB instance dynamically. It scales automatically when it detects resources are running out.

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

When is using RDS (ASG) useful?

A

useful for apps with an unpredictable workload

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

Who sets the RDS max storage threshold

A

user have to manually set it

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

How many read replicas for RDS?

A

5 read replicas

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

Can read replicas scale within regions? wherelse?

A

regions, across AZ, and across region

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

T/F RDS read replicas cannot be promoted to its own database

A

FALSE… It CAN be promoted

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

How do apps leverage read replicas?

A

They have to update the connection string

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

RDS read replicas are used for what kind of statements?

A

READ statements

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

RDS Read replicas – is there a cost when data goes from one AZ to another?

A

yes there is

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

When are RDS read replicas free?

A

when they are within the same region

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

How to set up RDS read replicas for disaster recovery?

A

Read replicas are set up as multi AZ

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

is RDS multi AZ used for scaling and availability?

A

its used to increase availability and not used for scaling

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

Ecryption tupes for RDS read replicas

A
  1. at rest encryption

2. in flight encryption

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

Describe at rest encryption

A
  • encrypt using aes-256
  • encryption has to be defined at launch time
  • if the master is not encrypted, then the read replicas cannot be encrypted
17
Q

Describe in flight encryption

A
  • SSL certs
18
Q

T/F: A user can copy a snapshot of an unencrypted db can turn into a encrypted one

A

tru

19
Q

what subnet is used when deploying a RDS database?

A

RDS db are usually deployed within a private subnet

20
Q

describe RDS security

A

security works by leveraging security groups. it controls which ip/sg can communicate with RDS

21
Q

describe access management for RDS

A
  • IAM policies control who can manage RDS
  • traditional UN & PW can be used to login into db
  • IAM-based authentication can be used to login into RDS MySQL + Postgres
22
Q

are mysql and postgres supported as Aurora DB>

A

yes

23
Q

Aurora High Availability + Read Scaling

A
  • 6 copies of your data across 3 AZ
  • 1 is a master /writes
  • support for cross region replication
24
Q

When is aurora cross region read replicas useful?

A

useful for disaster recovery

25
Q

describe aurora global db

A
  • 1 primary region with r/w
  • 5 secondary read only
  • up to 16 read replicas per secondary region
  • helps for decreasing latency
26
Q

What is ElastiCache?

A

Amazon ElastiCache is a fully managed, in-memory caching service supporting flexible, real-time use cases. You can use ElastiCache for caching, which accelerates application and database performance, or as a primary data store for use cases that don’t require durability like session stores, gaming leaderboards, streaming, and analytics. ElastiCache is compatible with Redis and Memcached.

27
Q

Describe ElastiCache Redis

A
  • multi AZ with auto-failover
  • read replicas to scale reads and have high availability
  • data durability using persistence
  • backup + restore features
28
Q

Describe ElastiCache Memcahced

A
  • multinode for partitioning of data
  • no high availability (replication)
  • non persistent
  • no backup & restore
  • multithreaded architecture
29
Q

describe cache in elasticache

A
    • do not support IAM authentication

- - IAM policies on elasticache are only used for AWS API-lvl security

30
Q

describe redis cache security

A
  • you can set pw/token when creating a redis cluster
  • an extra lvl of security for your cache
  • support SSL in flight encryption
31
Q

describe memcached cache security

A
  • supports SASL based authentication
32
Q

use case for elasticache

A

gaming leaderboard

33
Q

Patterns for ElastiCache

A
  1. lazy-loading: all the read data is cached, data can become stale in cache
  2. write through: adds or update data in the cache when written to a DB
  3. session store: store temp session data in a cache