AWS RDS Flashcards

1
Q

What is RDS service?

A
It is a managed database service, supporting,
MySQL
Aroura
Postgress
Oracal
MsSQL
MariaDB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When it comes to users, what is the AWS RDS best practice?

A

We need a single user for each user accessing AWS RDS

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

I need to ensure my RDS instance is providing the best possible security for my data at rest, what are my options?

A

By default, encryption is enabled for mist all but not all instance sizes (smaller instance sizes do not have encryption)

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

When data is encrypted at rest, where are keys managed?

A

Volumes are encrypted using managed AWS keys.

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

When encryption is enabled on AWS RDS are logs encrypted?

A

Yes, logs are encrypted.

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

When I encrypt an RDS DB and take a snapshot, is the snapshot encrypted?

A

Yes

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

When encryption is enabled and I take a backup of the RDS database, will the backup be encrypted?

A

Yes

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

When I encrypt the RDS database, is the read replicas encrypted?

A

Yes

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

When I encrypt the RDS database, who manages the keys?

A

AWS KMS

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

When I encrypt the RDS database, are logs encrypted?

A

Yes

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

When I encrypt the RDS database, can I copy the encrypted snapshot to another region?

A

No because the keys are only in one region.

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

What is TDE in RDS?

A

For RDS MSSql and Oracle databases, the data is encrypted before it is written to the underlying storage device.

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

With TDE with RDS Oracle, do I need external key management?

A

Yes a KMS or CloudHSM

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

With TDE with RDS MSSQL, where is the encryption key stored?

A

It is managed by RDS after enabling TDE.

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

If I want to use SSL with RDS, what do I need to do?

A

Just set up the client to use SSL as RDS has SSL enables on server end by default.

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

What is MariaDB?

A

It is a fork of the MySQL DB.

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

Can I have read replicas for MSSQL and Oracal?

A

No this is not supported

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

I need to create a read replica in a seperate region for MariaDB, is this possible?

A

Yers, read replicas are supported in seperate regions.

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

When data is replicated to a read replica in a different region is the data replicated using azync data replication?

A

Yes, async is used.

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

Can I have multipal read repliicas for a single master instance?

A

Yes, 100%

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

If I wnat a small RPO and RTO for a MariaDB RDS instrance how can this be asily acheived?

A

Using a read replica, the read replica will only be a few seconds behind the master.

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

How can I scale queries for RDS MariaDB?

A

You can scale the queries by creating read replicas and pushing queries to the read replicas.

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

For MariaDB, how many read replicas can I have?

A

5

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

For MariaDB, what is the max size DB you can have?

A

32TB

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

For MySQL, what is the max size DB you can have?

A

32TB

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

For MySQL, what is the max read replicas?

A

5

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

For MySQL and MultyAZ what will happen when your main DB fails?

A

Things will automatically failover to the replica in the other AZ.

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

For MySQL and MultyAZ, is the backup taken from the main DC or the replica?

A

From the replica.

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

For RDS I need to ensure that I can back up the database, do I use native backup tooling?

A

No, RDS provides automatic backup.

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

I have a MySQL instance in US East and I need to ensure that I have the lowest RPO and RTO for DR, what are my options?

A

I can create a replica of the database in another region, this will perform async writes to the replica DB.

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

For MSSQL can I have read replicas?

A

No

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

I need to scale an MSQL RDS instance, what are my options?

A

Read replicas are not supported, but you can increase instance size.

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

I have a MySQL database and I need to make a copy in another region, what is the best method?

A

Take a snapshot and instruct AWS to copy the same shot to another region for you.

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

I have an MSSQL database and I need to make a copy in another region, what is the best method?

A

Take a snapshot and instruct AWS to copy the same shot to another region for you.

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

For MSQL can I have automatic backups?

A

Yes

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

When you are copying an RDS snapshot, do you pay for interregion copy?

A

Yes you pay for the data between regions.

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

When you copy an RDS snapshot that is encrypted betworrn regions, do you keep the same KMS key?

A

No, you get an new KMS key in the destination region.

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

With MSSQL can I have high availability?

A

Yes, it used mirroring with automatic failover.

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

When a MySQL db fails in a multi az configuration, what will happen?

A

The replica will take over all functionas automaticaly.

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

When you select a MultiAZ instance of RDS, is the standby instance available to use?

A

No

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

What DB’s use MultiAZ Failover

A

-MSSQL
MariaDB
MySQL
Postgres

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

For MultiAZ RDS deployments is the replication synchronous or asynchronous?

A

synchronous, so once a write happens to the master DB you can be 100% sure it has also happened to the standby.

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

For MultiAZ deployments of RDS, is the database in other regions?

A

No, they are all in the same region but the master and standby are in separate Availability Zones.

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

When using MultiAZ RDS deployments, are backups performed from the master or standby? and why?

A

They are performed from the standby because that enables the master to be unaffected and serve traffic.

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

When using MultiAZ RDS deployments, can I use the standby for read-only traffic?

A

No, this stand buy is only for failover.

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

Can I convert an existing single instance of RDS into a MultiAZ deployment?

A

Yes

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

When using MultiAZ deployment and compared to a single instance is the write latency increased?

A

Yes, but an only very small amount.

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

When using MultiAZ how long does it take to failover to a standby instance?

A

60 - 120 sec.

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

I am using MultiAZ RDS instance and a failover just happened, what does my application have to do to establish a new connection?

A

My application has to do a new DNS resolve as AWS changes the DNS entry to point to the standby instance IP. Failing to lookup the DB instance will cause your application to try to connect to the old IP of the failed master.

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

I have a JAVA application that caches DNS lookups for database connections, this application is connected to a MultiAZ RDS database, a failover happens, do you see an issue?

A

Yes, as the DNS entry is cached, the application may use the old cashed DNS lookup and this will be wrong as AWS during the failover will have updated the DNS record to point to the standby instance.

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

What can cause a RDS instance failover?

A
  • An Availability Zone outage
  • The primary DB instance fails
  • The DB instance’s server type is changed
  • The operating system of the DB instance is undergoing software patching
  • A manual failover of the DB instance was initiated using Reboot with failover
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

I need to know when an RDS instance fails over, how can I achieve this?

A

RDS uses NSN to notify you of events.

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

How can I stop the RDS DB been easily deleted?

A

Enable database protection

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

For RDS, what is a subnet group?

A

It is a group of subnets that RDS will place instances of the database in?

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

I need to get notified of events that occur in my RDS instance, how can I achieve this?

A

RDS has events subscriptions where you can select to send events to and ARN, email or SNS

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

How can I easily see RDS events from the console?

A

In RDS section there are Events that enables you to see all events.

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

For Oracle how can I import data?

A

Use Oracle DB pump to import from,
-Oracle EC2 to RDS Oracle DB instance
-Oracle to another Oracle instance
On-prem DB to RDS Oracle

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

Dose Oracal support cross region replication?

A

No

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

For small Oracle DB how can I import data?

A

Oracle SQL developer

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

How can I backup data from on-prem to AWS S3 for Oracle?

A

RMAN

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

For AWS based Oracle servers how do I perform a backup?

A

Use AWS native snapshot

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

For Oracle EC2 how would I backup?

A

Use RMAN

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

What is RMAN?

A

It is oracle remover manager, used for backup and recovery.

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

I need to backup my MySQL DB, what options do I have?

A

You can use the native AWS incremental backup.

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

Are RDS backups turned on by default?

A

Yes

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

When RDS is backing up you RDS DB, what is it doing?

A

A incremental volume snapshot

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

How long can I set the incremental backups of RDS?

A

35days

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

How often are backups preformed?

A

Once a day

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

What is the default retention period?

A

Deffault 7 but can be upto 35 days

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

I have added some data to my DB about 1hr ago thta messed up my data, what options do I have?

A

Use point in time restore or restore from a backup, that backup is only taken one a day and while you have a running DB you can do a point in time restore from any time.

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

I am about to preform some sensitive data maintenance thta cust cause issues whit my DB, what can I do to ensure I can role back?

A

Preform a snapshot of the database.

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

I have a database and I need to share a copy with another account, what is the best way to do this?

A

Take a snapshot and you can share the snapshot with another account as sharing of snapshots is supported.

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

I need to create a DB in another region, I can do it offline, what options do I have?

A

I can create a snapshot of the database and copy to another region can create a new database from the snapshot.

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

When you are creating a new RDS DB, how many subnets do you need for a production MultiAZ RDS Instance?

A

You need two and they have to be added to a subnet group for the creation of the RDS instance.

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

Do I need a licence for RDS MySQL?

A

No

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

How do I scale an RDS MySQL database?

A

I can not vertically scale the database but I can scale horrazantally

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

I am starting to run out of storage in my RDS instance, what options do I have?

A

I can increase the storage size through the console, CLI or API.

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

I am increasing the RDS storage through the console, will this action take the database down?

A

No

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

I notice that I am reaching the max for the instance CPU and RAM, what options do I have?

A

I can increase the instance size to get more CPU and RAM.

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

I am increasing the size of an instance, will this tale the DB offline?

A

Yes as the OS has to be reset/

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

I need to have redundancy for my RDS database, what options do I have?

A

You can deploy the database in more than one AZ, this will give you a replica for the main instance, and in the event of a failover, it will take 60 to 120 seconds for failover to happen.

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

When failover happens for an RDS instance, is it the IP that gets mapped over to the new instance?

A

No, AWS chnages the DSN name, this means thet you need to be looking at the TTL to ensure you do a DNS lookup to gte the new IP.

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

I need to scale my MySQL/Maria DB, what are my options?

A

For reads you can have read replicas. You would still be limited to inserts, updates and deletes.

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

Is aurora MySQL compatable?

A

Yes it supports MySQL and Postgress

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

Is aurorapostgress compatable?

A

Yes it supports MySQL and Postgress

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

Is aurora a hot standby or a cluster?

A

It’s not a hot stand, it a cluster but there is only one write node the other are read nodes.

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

What is a RDS parameter group?

A

It is a container of parameters thet applies to more or more databases.

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

When you change a parameter in the parameter group, what effect will it have on an instance?

A

for static parameters the database needs to restart for the parameter to be loaded. For dynamic parameters thet will be applied to the DB automaticaly.

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

How much faster is aurora DB?

A
  • 9x faster for MySQL

- 3x faster for Postgress

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

I am selecting a database for a new application, I need to have continious backup to s3, what are my options?

A

Use aurora as it can continous backup to s3.

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

I am designing an application and database and need at least 15 read replicas, what options do I have?

A

Use aurora as it supports upto 15 read replicas.

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

I am designing an application and selecting a database, I need a database with multipal masters, what options do I have?

A

Aurora.

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

I am designing an application with database, I wnat to keep my costs low and require a mySQL compatable database, I have varable workload, some times zero for long periods, what options do I have?

A

Aurora serverless as it can scale to noting where i am onnly paying for storage.

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

With aurora serverless, what am i paying for?

A

You are paying for,

  • compute time used
  • storage
  • IOPs used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
95
Q

How often are automatic backups taken?

A

One a day and retained for 35 days.

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

As backups are only taken once a day, dose this means thta I can only restore to the backup point as was taken once a day?

A

No, when you pick a point in time, to restore, AWS will restore to the previous taken backup and tensd play the transaction logs forwared to get to the point you wnat to restore to.

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

When you pict a point in time ot restore the RDS DB to , how is AWS geteting to any point in time?

A

They replay the logs from the backup.

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

I need to backup my database, with retention time of 6mts, what options do i have?

A

You will have to manual snapshot the database.

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

I need to make a copy of the database to another region, what options do i have?

A

I cna take a snapshot and use the copy functionality to copy it to another regiona.

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

I need to ensure regional DR for my database, what options do I have?

A

I an use a read replica in another region.

I can take a snapshot and copy to another region and restore when needed.

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

What is a cross region read replica?

A

This si where you have the master in one region and the read replica in another region. Dat is async copied between regions.

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

What is the database port for MySQL?

A

3306

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

When I have cross region replication of a database, is there lag?

A

Yes 100% dure to distance as 1ms havery 90miles.

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

Can I promote a read replica (both AZ and croiss region to be a master?

A

Yes 100%.

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

I have a single instance RDS DB, I am concerned about maintanbce update from both amazon and own operations teams causing outages, what options do i have to ensure DB is not down during maintabnce?

A

You should upgrade the database to be a MultiAZ database, this way when maintance is happening the DB will failover.

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

For AWS RDS Aurora DB, what DB engines are supported?

A

Postgres

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

Is AWS RDS Aurora DB 100% MySQL and Postgres compatible?

A

Yes 100%

108
Q

For Aurora, what is the max size of the database we can have?

A

64TB

109
Q

I have a MySQL database and reached its max size and performance, what is an easy option to improve on size and performance?

A

Move to the 100% compatible Aurora where speed is 5 times faster for MySQL and 3 times faster for Postgres, while the storage increase to 64TB.

110
Q

With Aurora what is the max number of reading replicas?

A

15, it moves form 5 in MySQL and Postgres to 15.

111
Q

With Aurora how many times is my data replicated?

A

6 times across 3 AZ with two copies in each AZ.

112
Q

Is Aurora 100% compatible with MySQL and Postgre?

A

Mostly, we can say it is, we should test to be sure. Also, check to make sure version is available if migrating.

113
Q

How can I migrate from MySQL to Aurora?

A

You can use MySQL dump and mysqlimport to export and import databases. You can also use,

114
Q

When you create an Aurora cluster, how my instances do you get?

A

You get 2 instances in different AZ

115
Q

For Aurora cluster how can I scale out reads?

A

You just use console, CLI, API to create another read replica.

116
Q

For aurora cluster I have a application that needs to read infromation from the aurora cluster, the application is in a seperate region, how cna I do this?

A

Set up a read replica in another region.

117
Q

For aurora is there multipal writers in a cluster?

A

No, there is still only one writer, this is you scalability limit.

118
Q

For MySQL I need to create a read replica, do I need to set the read replica up my self in the other region and conect?

A

No just use the Console to create read replica, you will be asked what region you want it in.

119
Q

I have MySQL DB on RDS and I wnat to migrate it to Aurora, what options do i have?

A

AWS RDS MySQL has a mugration to take a MySQL dat and create a new aurora cluster our of it.

120
Q

If I replicate a DB, is it the same as migrating the database?

A

No, replication is ongoing e3vent, migration is a one-off event.

121
Q

I want to replicate the RDS instance in AWS to an on-prem instance, is the possible?

A

Yes, to migrate data from Amazon RDS for MySQL to an on-premises database server, create a read replica on AWS, and then change the MySQL instance from the AWS read replica to the on-premises server.

122
Q

What is a Multi-AZ DB?

A

It is where RDS is deployed into multiple zones for availability. For MySQL, this will be a Master (primary) and failover replica (standby).

123
Q

What are the processes AWS takes over as a managed service in relation to Databases and RDS?

A
  • Provisioning
  • Patching
  • Backup
  • Recovery
  • Failure Detection
  • Repair
124
Q

For Oracle, can I use AWS licencing?

A

No, you have to BYOL

125
Q

For MSSQL, do I have top BYOL?

A

No, AWS has a deal done with MS and licence is included in the cost of running the Database for you?

126
Q

What type of storage can i have when creating an anRDS database?

A
  • Provisioned IOPS

- General purpose SSD

127
Q

What is a Max IOPS available for provisioned IOPS for RDS

A

32K

128
Q

Can I log on the RDS OS with SSH?

A

No RDS is a managed service and you have no access to the OS. You can only access the DB.

129
Q

What is a database instance,

A

It is a database environment in the AWS, it is one or more VM running your Database.

130
Q

What is the database type in RDS?

A
It is one for the following,
MySQL
MaraiDB
MSSQL
Postgres
Oracle
Aurora
131
Q

What is the database instance class?

A

It is the size of the instance, the CPU, mem capacity.

For example db.m4.large, this is like m4.large VM.

132
Q

What is the primary host?

A

It is the database instance that handles the read and write traffic.

133
Q

What is the secondry host?

A

Is this the host witch is not actively handling w/e traffic., it is going to be the failover instance.

134
Q

Can i BYOL for MSSQL?

A

Ni, at one time you were able but now it is included in the cost.

135
Q

What type of data exchange is between primary and secobnndy databases, snc or async?

A

Sync

136
Q

For RDS was is the GP2 specs,

A

Max 16TB of storage
3 IOPS per GB
Burst to 3L IOPS

137
Q

For RDS was is the IO1 specs,

A

Max 16TB

Max 40K IOPS (20LK for SQL)

138
Q

What is a parameter group?

A

Thye are a set of optopns you can edit the affect the enginer of you database.

139
Q

What contributs tgo RDS cost?

A
  • Instance hours (region, instance type, database engine and licence.
  • Storage (EBS or Aurora storage) (GPS.IO1, Magnetic) (Allocation)
  • Backup storage (No charge upto 100% of total DB storager)
  • Data transfer
140
Q

When resizing a DB thet is MultiAZ, how is the sizing completed by AWS?

A

Secondry firsts then the master.

141
Q

I wnat to scale my EBS, what should i do about down time?

A

No worry, EBS can be scaled with no downtime.

142
Q

I have a requirement where there will be masive amunt of reads to the DB, more then a single instance, how can I ensure we can scale our RDS DB?

A

We cna provision read replicas, up to 5 for MySQL.

143
Q

In multiAz, what host is backups taken from?

A

Secondry

144
Q

How long will it take to preform a multiaz failover?

A

1 - 2 min

145
Q

What type of data is bets stored in RDS SQL databases?

A

Structured relational data.

146
Q

What are the anti-patterns for RDS?

A

Blob objects = S3
Automated Scalability = DynamoDB
Named /Value Pair = DynamoDB
Data thet is not structured very good - DynamoDB
If database is not supported (DB2, HANA) = EC2
Complete control over the database = EC2

147
Q

Do MySQL support replication?

A

No, you must use InnoDB.

148
Q

When should I use sync vs async replication?

A

As distance grows so does latency, this affects sync in that the master has to with for the other DB location to receive the data and ACK it is wrote to disk, this takes to long if latency is long and caused the matter to s perform poorly. When latency is high then

149
Q

Do a MultiAz deployment use sync or async replication?

A

Sync

150
Q

Do a read replica use sync or async replication?

A

Async

151
Q

What use cases can I use read replicas for?

A

Horizontal scaling of reads

DR, where i can promote the read replica

152
Q

What is an RDS subnet group?

A

It is a group of subnets that RDS will use when provisioning your RDS database.

153
Q

When you deploy RDS MySQL in multi-az, what will get deployed?

A

You will get a master and a slave node, synchronous replication is used to keep the slave up to date.

154
Q

When you deploy RDS MySQL in multi-az, how will failover happen?

A

When the master fails the slave automatically becomes the master and the RDS will update the DNS name with the new IP of the slave promoted to master. You have to have your app update its DNS if it fails to make a connection as the IP will have changed.

155
Q

When you deploy RDS in multi-az, how can I use the slave DB to provide read access for scaling?

A

You can, RDS-MySQL does not allow the slave to be used for reads, the only purpose of the slave is to receive the synchronous writes from the master.

156
Q

What storage types options do I have in RDS MySQL?

A

You have the option to use GP2 SSD or IO1 provisioned ips

157
Q

Is data encryption enabled by default?

A

Yes, AWS managed keys, there is an option to use customer-managed keys.

158
Q

Do I need to enable backups for RDS?

A

By default, automatic backups are enabled for 7daya and can be up to 35 days retentions time.

159
Q

How are automatic backups taken of RDS AWS MySQL?

A

Automatic backups take a snapshot and also the transaction logs, using both you can recover from any point in time, this is done by restoring the snapshot and replaying back the logs from the chosen backup data/time.

160
Q

Can I also create a snapshot of the AWS MySQL?

A

Yes, this is also available, but it does not do anything with transaction logs.

161
Q

I have taken a snapshot, will it also enable you to recover using the snapshot transactions logs?

A

No, as a snapshot will not also separately snapshot the transaction logs. You will only have the snapshot to recover from.

162
Q

Can I use reserved instances for RDS?

A

Yes.

163
Q

When I need to restore an RDS MySQL instance and I recovering to the same instance?

A

No, recovery is to a separate database instance.

164
Q

Can I create a read replica in a different region for AWS RDS MySQL?

A

Yes

165
Q

Can I create a read replica in the same region for AWS RDS MySQL?

A

Yes

166
Q

For read replicas for AWS RDS MySQL what is the replication type, sync or async?

A

Async

167
Q

Is the comms for AWS RDS MySQL read replica encrypted?

A

Yes

168
Q

I need to perform thousands of reports again a single AWS RDS MySQL, how cna I architect and make changes to ensure I can create the reports?

A

You can create read replicas and run the reports again the replicas.

169
Q

For AWS RDS MySQL, can I scale both read and write operations, if so how?

A

You cna not scale writes, writes only happen again a single master, you can scale reads through creating read replicas.

170
Q

I wnat to take a hot copy of the AWS RDS MySQL database to a separate region and then make it a master for a new application, how is this possible?

A

You create a read replica in a separate region and once synced, promote it to be a master.

171
Q

I wnat to create a DR for the RDS AWS MySQL in a separate region, how cna I do this?

A

You cna use a read replica and in the event of a DR, promote the read replica to be a master.

172
Q

What is a parameter group?

A

These are a set of options that would normally have been available in the MySQL config files.

173
Q

What happens to the backups when you delete an RDS MySQL?

A

The DB is deleted but the backups are not, keep in mind that the retention period will still apply for the backups so after it expires so too does the backups.

174
Q

When it comes to AWS RDS MySQL, what monitoring integrations are provided?

A

AWS integrated with CloudWatch metrics and also CloudWatch Logs.

175
Q

What does the aurora DB architecture look like?

A

The aurora DB architecture uses a shared clustered storage volume that is spread across 3 AZ’s. Only one master in the cluster and read replicas. The master does all the writes to the storage clustered volumes and the replicas do the read form the storage volumes. The replicas are not the same read replicas with async commas as MySQL, they just read from the storage data volumes and the master writes to the data volumes.

176
Q

I am using Aurora and I wnat to access the read replicas, how can I do this?

A

Aurora makes the read replicas available as a single endpoint that you can access.

177
Q

What happens when the master node fails in Aurora?

A

It will automatically failover to one of the replicas

178
Q

I am creating an Aurora cluster, how do you define how much storage you need?

A

You do not, Aurora is a pay as you use model, you only pay for the storage you are using.

179
Q

What is the Aurora supported Database types?

A

Postgres and MySQL.

180
Q

What is the max Aurora storage available to a cluster?

A

64TB

181
Q

Can I use an aurora replica in a seperate region?

A

No now the aurora replica, you can create a Cross region replica (this is using the old sync method)

182
Q

What is Aurora backtrack?

A

You cna restore the database to a previous point in time without creating a new DB instance.

183
Q

How are backups taken on Aurora?

A

Aurora does not have backups like MySQL, Aurora is continuously backup data and you can restore to any point in the 35days retention period.

184
Q

For AWS RDS multi-az deployment of MySQL, can I use the slave instance for reading and writing?

A

No

185
Q

For AWS RDS multi-az deployment of MySQL, what is the purpose of the slave instance?

A

It is to receive synchronous database update traffic from the master nodes and in the event of the failure of the master node, the slave gets promoted to master and the cname is updated to point to this node.

186
Q

How is backup performed for AWS RDS MySQL?

A

Automatic backups are performed during a window, you can choose the window, this backup is a snapshot and also the transaction log, having both enables you to restore from any point during the backup period.

187
Q

I require access to the traditional MySQL logs, like audit log, error log. General log, Slow query log is it possible to get these logs and how?

A

Yes, when you are setting up the database you can have these logs exported to CloudWatch.

188
Q

I have been asked to help reduce the cost for several RDS MySQL instances, I know these instances run consistently for a long period and will be needed for the next 3years, how cna I reduce cost?

A

You could change the on-demand instance to reserved instance and pay upfront to get a large discount.

189
Q

Where are both automated backups and snapshots of AWS RDS MySQL stored?

A

S3

190
Q

For Aurora do you have to have three AZ’s?

A

No, you can have as little as a single node, you can add replicas in other availability zones as needed, these will be read-only replicas.

191
Q

For aurora there is no master and slave, what are the instance types?

A

Primary and replicas (no read replicas)

192
Q

What is an aurora endpoint?

A

It is an endpoint that is used to access the readers or writer nodes. The endpoint groups together all the reader nodes under one accessible endpoint, this is a group of read instances under a single endpoint. You cna also access each instance by its separate endpoint.

193
Q

Can you create custom endpoints?

A

Yes, you create a new endpoint, give it a name and select the instances to be accessed through it.

194
Q

Can I povision a Aurora replica in a seperate region?

A

No, but you can create a read replica in another region, this used the older async method. Replicas can only be provisioned in the same region, the reason for this is the share cluster volume storage that needs to be available to the database instances.

195
Q

In Aurora, how many copies of your data are kept and where are they located?

A

6 copies and across the AZ on the shared cluster files systems used for the Aurora DB.

196
Q

What is a self-managed database?

A

This is a database that you create on an EC2 instance and manage 100% your self.

197
Q

Do I need root level access to the instance of my database instance, is RDS a good choice?

A

No, RDS does not give you instance root access

198
Q

How is a clone of Aurora performed?

A

Because of the clustered file system, AWS is able to make a clone of the database, this is not a copy, its a marker for any new writes again the existing data, it’s extremely fast and it is happening at the clustered FS.

199
Q

I have a requirement where I run reports again the Aurora replicas, I do not wnat to have a fixed set of replicas as my demand for reports fluctuates, what is my best option?

A

You cna use autoscaling on the replicas.

200
Q

I require a DR solution for Aurora, where we can failover to another region, which is my best option.

A

Aurora has a global database, this is a read replica in another region.

201
Q

For Aurora, what am I doing when I access Aurora serverless Data API?

A

I am using Aurora Serverless HTTP data plain interface for accessing the database, this is an option available to the legacy SQL interface.

202
Q

With Aurora serverless can I still use traditional connection?

A

Yes

203
Q

My org requires that all data be encrypted at rest, I am using RDS with encryption, will the read replicas be encrypted also?

A

A Read Replica of an Amazon RDS encrypted instance is also encrypted using the same key as the master instance when both are in the same AWS Region. If the master and Read Replica are in different AWS Regions, you encrypt using the encryption key for that AWS Region.

204
Q

How can I scale my master database for reads?

A

You can create read replicas?

205
Q

Are read replicas async or sync replication?

A

Async

206
Q

I have MYSQL server in EU and another in Asia, each day in the US a large combined report is run from the data in the EU, Asia and also an MYSQL in the US. How is best to architect this solution?

A

Create a read replica of the EU and Asia masters in the US so the data is async copied and can easily be queried in the US.

207
Q

Wikipedia has a small number of writes to large number of reads, it has millions of customers so there is large read load. How would you architect using MYSQL?

A

MYSQL master in a multi-AZ configuration for availability. Read replicas for read load.

208
Q

I wnat to create a DR solution for my existing MYSQL database in the eu-west-1 (Ireland). How can I do this?

A

I can create a read replica in eu-west-3 (Paris). Data is still in the EU. RDS has the ability when creating a read replica to allow you to select the region. If required you can promote the read replica database to be a master database.

209
Q

What do I need dot to ensure when using read replicas?

A

Backups are turned on

210
Q

How may read replicas can I have?

A

Up to 5 for SQL and 15 for aurora.

211
Q

Can I promote a read replica to be a master?

A

Yes

212
Q

When using Multi-AZ and we get a failover will the RDS endpoint change?

A

No, the endpoint will stay the same, but you have to have reconnected logic in your SQL code.

213
Q

What are the types of failures you can get on a Multi-AZ RDS deployment that causes it to failover?

A
  • Compute: host server failure
  • Network: Loss of connectivity to primary
  • Storage: storage failure.
214
Q

How can we force the failover of a Multi-AZ for the test?

A

Reboot the current primary

215
Q

I wnat to receive a notification by email if the RDS instances failed over. How can I do this?

A

Using EDS events and RDS event subscriptions, you have option to get notified by email, SNS or SMS. You cna select the type of events you wnat to get notified on.

216
Q

For Multi-AZ and Read replica what are the sync types

A
  • Multi-AZ in sync

- Read replica is async

217
Q

I am creating my first RDS MYSQL, what do I need from a subnet perspective?

A

You need to set up a subnet group, this is a group of subnets your instance will use.

218
Q

For MYSQL what si the deployment model, as in what is deployed and where for a multi-az deployment?

A

A master and a slave are deployed in two separate AZs in your VPC, the master sync replicated to the slave. There is a single endpoint URL thet is used to connect with the MYDQL instance currently active and in the event of a failure of the node, this endpoint CNAME will move to the other node, where it becomes the master node.

219
Q

I need to use the MYSQL slave for queries, what is the process?

A

You cna not use the slave, there is no access, you have to use the master.

220
Q

I am using MSSQL, what licence options do I have?

A
  • BYOL

- On-demand

221
Q

What are the storage types available to RDS?

A
  • General Purpose (SSD)

- Provisioned IOPS

222
Q

I wnat to be able to scale the RDS storage independently of the storage size, what is my best option?

A

Provisioned IOPS enables you to scale the storage independently of the size of the storage.

223
Q

I need high-performance storage with small volume size, what storage option should I use?

A
  • Provisioned IOPS
224
Q

My orgnization requires encryption on all data at rest and in transit, what options do I have?

A

The protocol used by the DB engines is encrypted for traffic in transit and we can enable encryption for data stored.

225
Q

When using encryption can I use my own key for encryption?

A

Yes, you can upload your own CMK to KMS and select it to be used for encryption by RDS. You also can use AWS own managed KMS keys.

226
Q

I am using encryption with my RDS instance and I do not what to manage the keys, what is my best option?

A

Use AWS KMS managed keys this way the key rotation is taken care of by AWS KMS and you do not have to get into the key rotation.

227
Q

My orgnization requires thet you back up RDS, how can I do this?

A

You can select to have RDS perform a daily backup

228
Q

I am about to perform maintenance on the SQL, what options do I have to protect the data and ensure I can recover if needed?

A

You have daily backups but you can also take a snapshot and it will give you the most recent DB changes.

229
Q

If I snapshot an encrypted volume, will the snapshot be encrypted?

A

Yes

230
Q

For backups what is the default, mon and max retention periods?

A
  • Default is 7 days
  • Min is zero for disabling backup
  • Max is 35 days
231
Q

I want backups to hepping between 1am and 6am, is this possible?

A

Yes 100% there is an option to set the backup window

232
Q

How can we get deeper monitoring of RDS?

A

RDS is integrated with CloudWatch

233
Q

I wnat to get access to the traditional SQL logs, how cna I do this?

A

You have the option to store the traditional SQL logs to CloudWatch Logs. Logs you can get are,

  • Audit log
  • Error Log
  • General Log
  • Slow query log
234
Q

Can I have maintenance performed by AWS in a maintenance window?

A

Yes 100%

235
Q

What options do I have for instance types regarding payment?

A
  • On-demand
  • Reserved
  • But no spot instance
236
Q

Where are RDS backups stored?

A

S3

237
Q

Where are RDS snapshots stored?

A

S3

238
Q

I am restoring my RDS database from a snapshot, how is this done?

A

You can not restore to the same database, you have to restore to a new database.

239
Q

How do we access an MYSQL database?

A

You use the database CNAME.

240
Q

When using a read replica is the data in transit between master and slave secure?

A

Yes

241
Q

I am using MySQL, how can I create 10 read replicas when you are limited to 5?

A

You cna use tiered read replicas, where you create replicas of replicas, this will add a mall added amount of latency.

242
Q

I have two regions and currently, I have an RDS instance with and application. I wnat to create a separate standalone copy of the app and RDS instance in a separate region, how cna I do this?

A

You can create a read replica in the new region and when 1000% synced promote it to be a standalone master database.

243
Q

Can the read replica have different versions than the master?

A

Yes

244
Q

When you delete the database, what happens to the backups?

A

They get retained but will expire after the retention period.

245
Q

I have a database thet is preforming poor and CPU is always near 100%, what cna I do to fix this?

A

You cna resize the SQL instance, this is a supported option in AWS RDS.

246
Q

How can I control who cna create and change RDS databases?

A

You can use IAM, keep in mind this is creating and changing the RDS and not the database its self.

247
Q

What is Aurora?

A

Aurora is a MySQL compatible SQL, created by AWS and is a clustered SQL, cluster only has one write node other are read. There is a shared file system between all the nodes.

248
Q

For aurora, what performance improvement do you get/

A

%x for MySQL and 3x for Postgres.

249
Q

What engines are supported on aurora?

A
  • MySQL

- Postgres

250
Q

What is aurora architecture?

A

It is a clustered database

251
Q

I wnat to be able to roll the aurora database back in time 4 hrs, how cna I do this?

A

Use the backtrack feature, backtrack can be set up to 72hrs

252
Q

I would like to be able to have two nodes to read from and one thet I can read and write a form, what DB engine is the best option and why?

A

Aurora is the best option, with Aurora the replica nodes you can use to read from. So you need just 3 nodes for the solution a Mater and two Replica nodes. Compared to MYSQL, where you have a Master, Slave and two replica nodes to read from, you can not read from the slave.

253
Q

What is a reader endpoint?

A

This is the endpoint for all the replica nodes in the cluster. You cna use this endpoint to connect to for reading. You also get an endpoint for the master to read and write.

254
Q

Should I be concerned about the provisioning storage up front for aurora?

A

No, there is no up from storage provisioning, you just pay for what you use up to 64TB.

255
Q

With Aurora is it possible to have a replica in another region?

A

No, but you can have a cross-region replica, this is the async type read replica as used bu MYSQL.

256
Q

When MySQL backups your database, how is it doing it?

A

It is taking a snapshot during the maintenance window.

257
Q

How does point-in -time-recovery work?

A

Every 5min DB engine uploads the transaction logs to S3

258
Q

Using Aurora how can I make a copy of the database?

A

You cna create a clone, this is quick as it creates a copy of the storage in the storage cluster.

259
Q

How are backups performed on aurora?

A

Backups are different than MYSQL, Aurora backups are continuous and you cna restore to any point in time during the 35 days of backup available.

260
Q

I have a sales system using MySQL and at Christmas time we get huge number of reads and then the rest of the year we get little reads, how best should I architect this solution?

A

Aurora is MySQL compatible and has an autoscaling group for replicas.

261
Q

In aurora what si the max number of replicas, you can have?

A

15

262
Q

Explain Aurora Global?

A

Two aurora databases clusters in two separate regions and where they are connected at the storage cluster layer. Only one region will be the write region, the other region will be read-only.

263
Q

I have created a serverless architecture for my web application, it uses a single page application on the frontend with API Gateway and Lambda on the backend I wnat to use a relational database, what is my best option and why?

A

Aurora serverless is a good option, it has an HTTP API you call when you wnat to query the SQL. The HTTP API is not like traditional connection, you get to send a query and get the result without needing to maintain connectivity. You do not need to maintain any infrastructure.

264
Q

I want the high-level of security, where my RS encryption keys are meeting the high level of security, what options do I have?

A

You cna use the CloudHSM for key management.

265
Q

Does RS provide automatic out of the box backup?

A

Yes, 100%. RS provides the ability to have you RS data backed up, this happens every 6-8 hrs or hewn you get a 5GB data change. Retention is settable for 1 - 35 days.

266
Q

How can I lower cost in RDS?

A

Opt to use reserved instances for RDS that is running for very long periods.