Databases Flashcards

1
Q

Does Multi-AZ RDS allow to create instances in different regions?

A

No, only in different AZs of the same region

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

How would you store session data?

A

With ElastiCache
In alternative, it can be done by activating sticky session in ELB, but this might cause unbalanced traffic across instances

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

Can you combine Read Replicas and Multi-AZ in a RDS instance?

A

Yes

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

In a Multi-AZ RDS, what happens if the primary instance fails?

A

A secondary replica instance is elected as a primary source of replication

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

Can you use RDS Cross Region for write failover?

A

No, Cross Region is used to create Read Replicas across multiple regions. Use Multi-AZ instead

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

What does RDS use for database and log storage?

A

EBS Volume

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

You try to connect to your RDS instance and you receive an “Error setting/closing connection: Connection refused”. What is most likely the cause of the connection failure?

A

Incorrect DNS name or endpoint was used to connect to the RDS instance

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

You have a RDS instance. Which services are you going to pay for it between:
- Data transfer
- RDS CloudWatch metrics
- Data storage
- I/O requests per month

A

Everything excepts CloudWatch metrics

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

How many types of secondary indexes does DynamoDB support?

A

2, Local secondary index and Global secondary index

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

Does Aurora support schema changes?

A

Yes

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

What type of replication is supported by Multi-AZ RDS instances?

A

Synchronous replication

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

Does Aurora support cross-region replication?

A

Only for MySQL, not for PostgreSQL

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

What is the difference in Aurora between cross-region logical replication and cross-region physical replication?

A

Physical replication can only replicate to one secondary region, logical replication can replicate to multiple regions

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

Can you assign network capacity to RDS instances?

A

Yes

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

What type of replication are RDS Multi-AZ and Read Replicas?

A

Multi-AZ is syncronous
Read Replicas is asynchronouse and can be within AZ, Cross-AZ, Cross-Region

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

Can you enable storage auto scaling for RDS?

A

Yes, if you enable it these factors apply:

Free available space is less than 10 percent of the allocated storage.
The low-storage condition lasts at least five minutes.
At least six hours have passed since the last storage modification.
The maximum storage threshold is the limit that you set for autoscaling the DB instance.

17
Q

Can you set standby instances for Aurora Multi-AZ?

A

No, only for RDS Multi-AZ

18
Q

What traffic charges involve data replication with RDS?

A

There are changes only between replication through different regions. No traffic charges for replication across AZs of the same region

19
Q

What’s the difference between a RDS with Multi-AZ or RDS with standby read replicas?

A

Read replicas do not support automatic failover, promotion to primary instance is manual.
Multi-AZ failover is automatic

20
Q

What’s the difference between RDS Multi-AZ and Aurora Multi-AZ?

A

RDS: failover is done with standby instance
Aurora: failover is done with read replica (no standby instances)
https://aws.amazon.com/rds/features/read-replicas/

21
Q

What’s the maximum retention period for automated backups in RDS?

A

35 days. To increase the retention, you need to create a backup plan with AWS Backup

22
Q

How can you change the instance class of a running Aurora db to serverless?

A

The only way to do that without down time is to use AWS Database Migration Service with ongoing replication

Other methods (with downtime) are:
Take a snapshot and use that to create a new Aurora instance
Add an Aurora replica to the cluster with serverless type. Failover to the read replica and promote it to primary

22
Q

What happens if you have a serverless Aurora DB and it fails?

A

Aurora tries to create a new database instance in a new AZ

22
Q

What happens if you have a single instance Aurora DB (not serverless) and it fails?

A

Aurora tries to create a new database instance in the same AZ

23
Q

Are there data transfer charges for replicating RDS across read replicas in the same region?

A

No, charges apply only for replicating to a different region