High Availability Flashcards

1
Q

You need to provide high availability to RDS. How do you do that?

A

Build a multi-AZ RDS

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

What happens when the AZ that contains your RDS end point goes down?

A

RDS will update end point DNS and re-points to other AZ automatically

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

How does RDS multi AZ work?

A

It maintains two exact copies of your DB in two AZ’s

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

What are the advantages of RDS multi AZ?

A

high availability

backups and restores are taken from the secondary

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

How do you force a RDS failover?

A

reboot primary in console or using the rebootinstance API call

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

What are read replicas and what are they used for?

A

read only copy of DB

Used to scale beyond compute or I/O capacity of a single DB instance by serving read traffic from read only copies

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

How do you create a RDS read replica?

A

AWS console or CreateDBInstanceReadReplica

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

What RDS instance types support read replicas?

A

MySQL
postgres
MariaDB
Aurora

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

You’ve created a read replica. While being created users complain of performance issues. Why?

A

The RDS instance is not multi-az. If it was the read replica would have been created from the secondary instance.

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

How do you connect to read replica?

A

a new DNS endpoint is created

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

You have an RDS db and wish to create a dev copy. How can you do that?

A

Create a RR and promote the RR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
Q

Can you have read replicas in different regions?

A

Yes

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

What is the key metric for read replicas?

A

REPLICA LAG

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

How can you tell what RDS version you are using>?

A

AWS console - details or CLI = aws rds describe-db-instance –region

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

What are the 4 key metrics to monitor for elasticache?

A

CPU ute
Swap ute
Evictions
Concurrent connections

17
Q

What service should you use if you have performance issue on a read-heavy DB that is infrequently changed?

A

elasticache

18
Q

What service should you use if you have performance issue on a DB that has many OLAP transactions?

A

Redshift

19
Q

What are the two types of Aurora?

A

Aurora

Aurora Serveless

20
Q

How many copies does Aurora maintain of your DB?

A

2 copies in 3 seperate AZ’s

21
Q

What AWS RDS service is self healing?

A

Aurora

22
Q

The Aurora CPU utilization is at 100% How do you resolve?

A

If it is writes causing the issue, scale up the instance size
If it is reads causing the issue, scale out by increasing the number of read replicas

23
Q

You have an Aurora DB and need to ensure encryption at rest is enabled. How do you do that?

A

Encryption is turned on by default

24
Q

How do you define the read replica fail-over order for Aurora?

A

Set the tier value

25
Q

Will a new Aurora cluster be created in another region if cross region replication is enabled?

A

Yes

26
Q

What are some reasons why auto scaling is not working?

A

Associated key pair does not exist
Sec group does not exist
Autoscaling config is not working
Instance type specified is not supported in the AZ
AZ is no longer supported
Invalid EBS device
Autoscaling service is not enabled on your account
Attempting to attach a service is not enabled on your account
Attempting to attach a EBS block device to an instance - store AMI

27
Q

What are the maximum number of instances per AZ for a spread placement group

A

7

28
Q

What failover option allows unhealthy instances to be redirected to active instances with minimal downtime?

A

active active