AWS-RDS - Notes By ShariqSP
Amazon RDS Overview
What is Amazon RDS?
Amazon RDS (Relational Database Service) is a fully managed database service provided by Amazon Web Services (AWS). It simplifies the process of setting up, operating, and scaling relational databases in the cloud. RDS supports popular database engines such as MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Amazon Aurora.
Why do we need Amazon RDS?
Amazon RDS offers several advantages:
- Managed Service: AWS handles routine database tasks such as provisioning, patching, backups, and scaling, allowing you to focus on your applications.
- Scalability: RDS enables you to easily scale database resources up or down based on demand without downtime.
- High Availability: RDS provides automated backups, multi-AZ deployments, and read replicas for high availability and fault tolerance.
- Security: RDS offers built-in security features such as encryption at rest and in transit, IAM database authentication, and network isolation.
- Compatibility: RDS supports various database engines, making it easy to migrate existing applications to the cloud.
Creating MySQL Database on Amazon RDS
To create a MySQL database on Amazon RDS, follow these steps:
- Log in to AWS Management Console
- Navigate to RDS Dashboard
- Click on "Create Database"
- Choose "MySQL" as the database engine
- Select appropriate DB instance class, storage, and other settings
- Configure advanced settings such as VPC, security groups, and database options
- Review and launch the database instance
Creating MongoDB Database on Amazon RDS
To create a MongoDB database on Amazon RDS, follow these steps:
- Log in to AWS Management Console
- Navigate to RDS Dashboard
- Click on "Create Database"
- Choose "MongoDB" as the database engine
- Select appropriate DB instance class, storage, and other settings
- Configure advanced settings such as VPC, security groups, and database options
- Review and launch the database instance
Interview-Based Questions
Here are some common interview questions related to Amazon RDS:
- What is Amazon RDS, and how does it differ from traditional database hosting?
- What are the benefits of using Amazon RDS?
- How do you choose the appropriate database engine and instance class for your application on Amazon RDS?
- What is Multi-AZ deployment, and why is it important for high availability?
- Explain the concept of read replicas in Amazon RDS.
- What security features does Amazon RDS provide?
- Can you perform backups and restores on Amazon RDS databases? If yes, how?
- What are the cost factors to consider when using Amazon RDS?