STCLOUD_mod8_databases FULL

original file
last module, 39:13

Module 8 Databases

Types of Databases

Amazon Relational Database Service (Amazon RDS)

_attachments/Pasted image 20250731114202.png

Unmanaged vs Managed Services

Unmanaged Managed
Scaling, fault tolerance, and availability are managed by you Scaling, fault tolerance, and availability are built into the service/handled by the provider
higher flexibility and configurability, more responsibility but also more contorl less responsibility, you focus on your data
cheaper pricier
when you're using a VM when you're using the DB services

Challenges of Relational Databases

things you have to think about in the traditional/unmanaged sense

if you know how to do these and you can do them yourself it's gonna be cheaper

Amazon RDS

_attachments/Pasted image 20250731114732.png

From on-premises databases to Amazon RDS

bold → managed by AWS

On-premises DB (traditional) -> DB in Amazon Elastic Compute Cloud (EC2) (cloud VM + db engine) -> DB in Amazon RDS or Aurora (db service)
application optimization application optimization application optimization
scaling scaling scaling
high availability high availability high availability
database backups database backups database backups
database software patches database software patches database software patches
database software installs database software installs database software installs
operation system patches operation system patches operation system patches
operating system install operating system install operating system install
server maintenance server maintenance server maintenance
rack and stack servers rack and stack servers rack and stack servers
power, HVAC, network power, HVAC, network power, HVAC, network

Managed Services Responsibilities

Amazon RDS DB Instances

_attachments/Pasted image 20250731115330.png

Amazon RDS in a VPC (virtual private cloud)

_attachments/Pasted image 20250731115459.png

High Availability with Multi-AZ deployment

_attachments/Pasted image 20250731115610.png

there are many architectural advantages you can setup in the cloud to ensure the data will not be lost

Amazon RDS Read Replicas

_attachments/Pasted image 20250731115905.png
Read from a replica when there's high amount of load/traffic on one
Load balancing of transactions

Features

Use Cases

Web and Mobile Applications - high throughput
- massive storage scalability
- high availability
Ecommerce applications - low cost database
- data security
- fully managed solution
Mobile and online games - rapidly grow capacity
- automatic scaling
- database monitoring

When to use Amazon RDS

Use when your application requires...

Module 8 Section 2: Amazon DynamoDB

Relational vs Non-relational

Relational (SQL) Non-Relational
Data Storage rows and columns key-value, document, graph
Schemas fixed dynamic, flexible
Querying uses SQL focuses on collection of documents/data
example _attachments/Pasted image 20250731121419.png _attachments/Pasted image 20250731121426.png
all the columns have fixed amounts or have a strict formatting it's possible that some might not have an author or format (difference in varying cols)

What is Amazon DynamoDB

_attachments/Pasted image 20250731121810.png

Amazon Redshift

_attachments/Pasted image 20250731121857.png

Parallel Processing Architecture

_attachments/Pasted image 20250731121933.png

What can it do

Amazon Redshift use cases

Amazon Aurora (Enterprise RDB/SQL)

1:00:34
_attachments/Pasted image 20250731122410.png

Amazon Aurora Service Benefits

_attachments/Pasted image 20250731122700.png

Summary: The right tool for the right job

what are your requirements?
enterprise-class relational database Amazon RDS, SQL or Enterprise SQL
Fast and flexible NoSQL database service for any scale Amazon DynamoDB, noSQL DB
Operating system access or application features that are not supported by AWS database services Databases on Amazon EC2 (VM + DB engine)
Specific case-driver requirements (machine learning, data warehouse, graphs) AWS purpose-built database services (other)