Aurora Flashcards

1
Q

What is Aurora?

A

It’s a cloud-optimized SQL database, compatible with postgres and mysql drivers.

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

Why would you choose Aurora?

A

It costs 20% more than RDS, but is way more performant. Any time you need a relational database, consider Aurora.

Advantages:
3-5x more performant
storage automatically grows by 10GB, up to 64TB
Can have more replicas, with faster replication process
HA, fast failover

So, mostly managed for you, but you’re still provisioning a machine type for it (and this doesn’t change automatically unless you enable auto scaling).

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

Is Aurora within one AZ, cross-AZ, or cross-region?

A

It’s cross-az by default, but can be cross-region if you enable that or use Aurora Global Database.

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

If I want higher aurora availability, what can I do?

A

You can enable cross-region replication, but the recommended approach is use Aurora Global Database.

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

Explain HA in Aurora.

A

You have 6 copies of your data across 3 AZ. There’s self-healing, and it’s striped across 100s of volumes.

If you want better HA you can pay for cross-region replication (or aurora global database).

You may want to consider enabling ‘multi-master’ for instant failover of the master.

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

How do backups work with Aurora?

A

AWS does automatic, regular backups (using EC2 under the hood). This allows you to backtrack to a specific point in time. It’s super granular (within seconds supposedly).

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

How do reads/writes work with Aurora?

A

Only the master (with a writer endpoint) does writes. New writes are replicated to other read replicas.

Read requests are load-balanced at the connection level. When you hit the read endpoint, it connects you to a replica.

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

What is Aurora Serverless, and what is it useful for?

A

Automated DB instantiation, and auto-scaling based on actual usage. Good for infrequent, intermittent or unpredictable workloads. No cap planning, pay per second. Gets really expensive if there’s consistent use.

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

What is Aurora auto scaling?

A

You can enable this to automatically scale up replicas if existing ones have high CPU usage

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

What happens if the write instance fails?

A

A read replica needs to be promoted to master, though this can take some time. If you need immediate failover, pay for “multi-master” (which makes every replica do R/W).

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

How does Aurora Global Database work?

A

You have one primary region for read/write, with multiple read-only regions. Replication lag is less than 1 second. Each secondary region can have multiple read replicas.

Gives you decreased latency.

Promoting another region (disaster recovery) has a RTO of less than a minute.

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