Overview of AWS Database Services
 Himanshu Sangshetti
Himanshu SangshettiThis content is from the lesson "3.4 AWS Database Services" in our comprehensive course.
View full course: AWS Cloud Practitioner Study Notes
Definition:
- AWS Database Services provide fully managed, scalable, and highly available database solutions in the cloud.
- They eliminate the need for customers to manage underlying infrastructure, operating systems, or database software, allowing them to focus on application development and data utilization.
- AWS offers various database types, including relational, NoSQL, and specialized options.

___
How It Works & Core Attributes:
Deciding between EC2-hosted Databases or AWS Managed Databases
This is a fundamental choice when running databases on AWS, impacting your operational responsibility and cost:
EC2-hosted Databases:
- Description: You launch an Amazon EC2 instance and then manually install, configure, and manage your chosen database software (e.g., MySQL, PostgreSQL, Oracle, SQL Server) directly on that EC2 instance.
- Control vs. Management: Provides maximum control over the database engine, operating system, and software stack. However, you are responsible for all patching, backups, replication, high availability, and scaling.
- Use Cases: When specific database features or customizations are required that aren't supported by managed services, or for legacy applications that cannot easily migrate.
- Think: Building and maintaining your own database server from scratch.
AWS Managed Databases (Database as a Service - DBaaS):
- Description: AWS takes on the "undifferentiated heavy lifting" of database administration. You choose the database engine and AWS handles the underlying infrastructure, OS patching, backups, replication, scaling, and high availability.
- Control vs. Management: Less control over the underlying OS/database software specifics, but significantly reduces operational burden.
- Use Cases: The vast majority of new cloud-native applications and migrations where operational simplicity, automatic scaling, and high availability are priorities.
- Think: Having AWS fully manage your database for you, like a utility.
___
Relational Databases
Relational databases store data in a structured, tabular format with predefined schemas, using SQL for querying. AWS offers highly scalable and managed relational database services.
- Amazon Relational Database Service (Amazon RDS):  - Function: A managed service that makes it easy to set up, operate, and scale a relational database in the cloud. It supports several popular database engines.
- Supported Engines: Amazon Aurora (AWS's own high-performance relational database), PostgreSQL, MySQL, MariaDB, Oracle Database, and SQL Server.
- Key Features: Automated backups, software patching, automatic failure detection and recovery, resizable compute and storage capacity, multi-AZ deployments for high availability, and read replicas for read scaling.
- Use Cases: Web and mobile applications, enterprise applications, CRM, ERP systems requiring structured data and transactional integrity.
- Think: Your managed, highly available, and scalable SQL database.
 
- Amazon Aurora:  - Function: An AWS-proprietary relational database management system (RDBMS) that is compatible with MySQL and PostgreSQL. It combines the speed and availability of high-end commercial databases with the simplicity and cost-effectiveness of open-source databases.
- Key Features: Five times faster than standard MySQL, three times faster than standard PostgreSQL, highly scalable, highly available (data replicated across 3 AZs automatically, 6 copies of data), self-healing storage, continuous backup.
- Use Cases: High-performance relational workloads, global applications, large-scale web applications, enterprise-grade applications.
- Think: A super-charged, highly optimized version of MySQL or PostgreSQL, designed for the cloud.
 

__
NoSQL Databases
NoSQL (Non-Relational) databases are designed for flexible schemas, massive scalability, and high performance for diverse data types, often at the expense of strict ACID compliance found in traditional relational databases.
- Amazon DynamoDB:  - Function: A fast and flexible NoSQL database service for all applications that need single-digit millisecond latency at any scale. It's a fully managed, multi-Region, multi-master, durable database with built-in security, backup and restore, and in-memory caching.
- Data Model: Key-value and document data model.
- Key Features: Automatic scaling, high availability, very low latency (single-digit milliseconds), supports virtually unlimited throughput and storage.
- Use Cases: Web and mobile applications (user profiles, session management), gaming, ad tech, IoT, microservices, anywhere fast, flexible, and massive scale is needed.
- Think: A super-fast, infinitely scalable database for flexible data, where you just store and retrieve items by a key or document.
 

__
Memory-Based Databases
These databases store data primarily in RAM (Random Access Memory) for ultra-fast access, ideal for caching or real-time analytics.
- Amazon ElastiCache: - Function: A fully managed in-memory caching service compatible with Redis and Memcached. It helps speed up application performance by retrieving information from fast in-memory caches instead of relying entirely on slower disk-based databases.
- Use Cases: Caching frequently accessed data (session management, leaderboards, real-time analytics, reducing database load).
- Think: A super-fast, temporary storage layer that sits in front of your main database to serve frequently requested data instantly.
 

__
Database Migration Tools
AWS provides services specifically to help you move your existing databases to AWS with minimal downtime.
- AWS Database Migration Service (AWS DMS):  - Function: A service that helps you migrate databases to AWS quickly and securely. It supports homogeneous migrations (e.g., Oracle to Oracle) and heterogeneous migrations (e.g., Oracle to PostgreSQL).
- Key Feature: Can perform continuous data replication, minimizing downtime during the migration process.
- Use Cases: Migrating databases from on-premises to AWS, or between AWS database services, without significant disruption.
- Think: A specialized moving company for your databases, capable of moving different types of furniture and even keeping them accessible during the move.
 
- AWS Schema Conversion Tool (AWS SCT): - Function: A desktop application that helps you convert your existing database schema and application code from one database engine to another.
- Use Cases: Part of heterogeneous migrations (e.g., converting an Oracle schema to an Aurora PostgreSQL-compatible schema) before using DMS for the data transfer.
- Think: A translator and re-designer for your database blueprints, helping your old database structure fit a new database type.
 
___
Analogy: A Library's Diverse Book Collections and Moving Services Imagine your applications need to store various types of information, much like a library with different kinds of book collections, and you need ways to move them.
- EC2-hosted Database (Your Own Custom Bookshelf): You buy a raw bookshelf (EC2 instance) and then meticulously organize and manage all your books (data) on it yourself. You have full control, but it's a lot of work.
- AWS Managed Database (The Professionally Managed Library Section): The library (AWS) provides a beautifully designed and maintained section (RDS, DynamoDB) just for your books. They handle all the shelving, organizing, and ensuring the section is always available. You just bring your books and tell them where they go. - Relational (The Classic Fiction Section): All books are neatly organized by author, genre, and series, with clear cross-references. Easy to find specific details or entire series (Aurora, RDS).
- NoSQL (The Flexible Magazine Rack): Magazines (documents) of all shapes and sizes, tossed onto a rack. No strict categories, but incredibly fast to grab the latest issue (DynamoDB).
- Memory-Based (The "Hot Reads" Display): A small, super-fast display at the front of the library for the most popular books everyone wants right now, copied from the main sections. (ElastiCache).
 
- Database Migration Service (The Specialized Library Movers): When you want to move entire collections from your personal bookshelf to the managed library, you hire these specialized movers. They can even keep the books accessible while they're moving them!
- Schema Conversion Tool (The Language Translator for Books): If you're moving books from, say, a French collection to a German collection, this tool helps translate the cataloging system so the books fit perfectly in the new section.
___
Common Applications:
- Amazon RDS/Aurora: Backend for e-commerce sites, content management systems, CRM applications, online transaction processing (OLTP).
- Amazon DynamoDB: Gaming leaderboards, mobile app backends, IoT device data streams, microservices state management, ad tech.
- Amazon ElastiCache: User session stores, leaderboards, frequently accessed product catalogs, real-time analytics.
- AWS DMS/SCT: Migrating Oracle, SQL Server, MySQL, PostgreSQL, or MongoDB databases from on-premises or other clouds to AWS managed database services.
___
Quick Note: The "Data Powerhouse"
- AWS Database Services provide the "data powerhouse" for your applications, offering specialized tools for every data need.
- For the Cloud Practitioner exam, focus on understanding the distinction between self-managed and managed databases, the primary use cases for RDS (including Aurora), DynamoDB, and ElastiCache, and the purpose of DMS and SCT for database migrations.
- Choosing the right database is crucial for application performance and operational efficiency.
TAGS
Want to learn more?
Check out these related courses to dive deeper into this topic



