AWS Fundamentals: RDS/RDS Custom Flashcards

1
Q

What is AWS RDS?

A

AWS RDS (Relational Database Service) is a managed service that allows you to run and manage relational databases in the cloud. It supports several SQL-based database engines and automates tasks such as provisioning, patching, backups, and scaling.

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

What are the database engines supported by AWS RDS?

A

PostgreSQL
MySQL
MariaDB
Oracle
Microsoft SQL Server
IBM DB2
Amazon Aurora (AWS proprietary database)

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

Why use AWS RDS over deploying a database on EC2?

A

Automated provisioning and OS patching
Continuous backups with Point in Time Restore
Monitoring dashboards
Read replicas for improved read performance
Multi-AZ deployments for disaster recovery
Scaling capabilities (vertical and horizontal)
EBS-backed storage

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

What is RDS Storage Auto Scaling?

A

RDS Storage Auto Scaling automatically increases the storage capacity of your database when it is running out of space. This happens without any downtime, and the scaling is done based on pre-defined thresholds.

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

How does RDS Storage Auto Scaling work?

A

RDS Storage Auto Scaling is triggered when the free storage space falls below 10% of the allocated storage, and this condition persists for more than 5 minutes. It will only trigger if 6 hours have passed since the last storage modification. You can set a maximum storage threshold to prevent unlimited scaling.

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

What are the benefits of RDS Storage Auto Scaling?

A

Prevents manual intervention: No need to manually increase storage.
Supports unpredictable workloads: Automatically scales when needed.
No downtime: RDS handles storage scaling without requiring database downtime.
Works with all RDS database engines.

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

What is Point in Time Restore in AWS RDS?

A

Point in Time Restore allows you to restore an RDS database to a specific timestamp. This is useful for recovering from unintended data loss or corruption.

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

What is Multi-AZ in AWS RDS?

A

Multi-AZ is a deployment option in AWS RDS that automatically replicates your database to a standby instance in a different Availability Zone (AZ) for high availability and failover. This helps improve disaster recovery.

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

What is the maximum storage threshold in RDS?

A

The maximum storage threshold is the upper limit that you can define for the automatic storage scaling in RDS. It prevents the storage from growing beyond a specified capacity.

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

Can you SSH into RDS instances?

A

No, you cannot SSH into RDS instances. AWS manages the underlying infrastructure and prevents direct access to the EC2 instances running the RDS databases.

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

What are the scaling capabilities of AWS RDS?

A

AWS RDS supports both vertical scaling (changing instance size) and horizontal scaling (using read replicas). You can increase the database instance size or add read replicas to improve read performance.

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

Does AWS RDS provide automatic backups?

A

Yes, AWS RDS automatically creates backups of your database. These backups are stored for a retention period that you can configure, and you can restore the database to any point within this retention period.

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

What are Read Replicas in AWS RDS?

A

RDS Read Replicas are used to scale reads in applications. They provide additional read capacity by asynchronously replicating data from the primary database instance. They help offload read-heavy workloads without impacting the performance of the primary database.

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

How many Read Replicas can you create in AWS RDS?

A

You can create up to 15 Read Replicas in AWS RDS.

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

What is the replication method for RDS Read Replicas?

A

RDS Read Replicas use asynchronous replication, meaning changes made in the primary database are eventually propagated to the replicas. This results in eventual consistency, where there may be a delay in data appearing on the Read Replicas.

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

Can Read Replicas be promoted to independent databases?

A

Yes, a Read Replica can be promoted to its own independent database instance, allowing it to accept write operations and function as a standalone database.

17
Q

What types of operations can be performed on RDS Read Replicas?

A

RDS Read Replicas are read-only by design. They can only handle SELECT queries, and not INSERT, UPDATE, or DELETE operations.

18
Q

What are the networking cost implications of using RDS Read Replicas?

A

Same region, different Availability Zones (AZs): No additional networking cost (managed service).

Cross-region Read Replicas: There is a network cost for replicating data across regions.

19
Q

What is the primary use case for RDS Read Replicas?

A

RDS Read Replicas are typically used for offloading read-heavy workloads such as reporting or analytics. By using a Read Replica, you can avoid overloading the primary database with read traffic.

20
Q

Can RDS Read Replicas be used for scaling writes?

A

No, RDS Read Replicas are designed for read scaling only. They cannot handle write operations, which must be directed to the primary database.

21
Q

What is RDS Multi-AZ used for?

A

RDS Multi-AZ is designed for disaster recovery. It provides a synchronous replication between the primary database instance and a standby instance in a different Availability Zone. This ensures high availability and failover protection.

22
Q

How does RDS Multi-AZ handle failover?

A

If the primary database instance in RDS Multi-AZ fails (due to an AZ failure or database issues), the standby instance is automatically promoted to become the new primary database. The DNS name of the database remains the same, so applications continue to work with minimal disruption.

23
Q

What is the replication method for RDS Multi-AZ?

A

RDS Multi-AZ uses synchronous replication, meaning that every write to the primary database is also replicated immediately to the standby instance. Both databases stay in sync.

24
Q

Can you perform read operations on the standby instance in RDS Multi-AZ?

A

No, it cannot be used for read or write operations unless it is promoted to become the primary instance.

25
Q

What is the difference between RDS Read Replicas and RDS Multi-AZ?

A

Read Replicas: Used to scale reads by creating multiple copies of the database that handle read traffic. They are asynchronously replicated and can be promoted to independent databases.

Multi-AZ: Used for disaster recovery by providing synchronous replication to a standby instance in another Availability Zone. It offers high availability and automatic failover but does not scale reads.

26
Q

Can RDS Read Replicas be configured as Multi-AZ?

A

Yes, you can configure RDS Read Replicas as Multi-AZ for disaster recovery, allowing the replica to be a standby database in a different Availability Zone. This setup ensures high availability in case of primary database failure.

27
Q

What happens behind the scenes when you enable Multi-AZ for an RDS database?

A

When enabling Multi-AZ, AWS will:

Take a snapshot of the primary database.
Restore the snapshot to a new standby instance in another Availability Zone.
Establish synchronous replication between the primary and standby databases.

28
Q

Is RDS Multi-AZ used for scaling?

A

No, RDS Multi-AZ is not used for scaling read or write traffic. It is designed solely for high availability and disaster recovery. For scaling reads, you would use Read Replicas.

29
Q

Can you change the Multi-AZ setting for an RDS database instance after creation?

A

Yes, you can modify an existing RDS instance to enable or disable Multi-AZ deployment. This can be done with zero downtime.

30
Q

What is RDS Custom?

A

RDS Custom is an AWS service that allows full access to the underlying operating system and database for Oracle and Microsoft SQL Server databases. Unlike standard RDS, which abstracts the OS, RDS Custom provides more control and customization.

31
Q

Which database engines are supported by RDS Custom?

A

RDS Custom supports Oracle and Microsoft SQL Server databases.

32
Q

What additional capabilities does RDS Custom provide compared to standard RDS?

A

Access the underlying EC2 instance using SSH or SSM Session Manager.

Perform customizations on the operating system and database.

Apply custom patches, configure internal settings, and enable native features.

33
Q

What is the role of SSH or SSM Session Manager in RDS Custom?

A

SSH or SSM Session Manager allows you to access the underlying EC2 instance behind RDS Custom for database or OS customizations.

34
Q

What should you do before performing customizations in RDS Custom?

A

Deactivate automation mode to prevent RDS from automatically performing maintenance, scaling, or updates during the customization process.

Take a database snapshot before making changes to ensure you can recover from any mistakes.

35
Q

What is the primary difference between RDS and RDS Custom?

A

RDS: Fully managed service, with no access to the underlying OS or database, and AWS handles all the database and operating system management.

RDS Custom: Offers access to the underlying EC2 instance and operating system, providing full admin control over the database and OS, limited to Oracle and SQL Server engines.