SlideShare a Scribd company logo
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Academy Cloud Foundations
Module 8: Databases
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Module overview
Topics
• Amazon Relational Database Service
(Amazon RDS)
• Amazon DynamoDB
• Amazon Redshift
• Amazon Aurora
Demos
• Amazon RDS console
• Amazon DynamoDB console
Lab
• Lab 5: Build Your DB Server and
Interact with Your DB Using an App
Activity
• Database case studies
Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Module objectives
After completing this module, you should be able to:
• Explain Amazon Relational Database Service (Amazon RDS)
• Identify the functionality in Amazon RDS
• Explain Amazon DynamoDB
• Identify the functionality in Amazon DynamoDB
• Explain Amazon Redshift
• Explain Amazon Aurora
• Perform tasks in an RDS database, such as launching, configuring, and interacting
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module 8: Databases
Section 1: Amazon Relational
Database Service
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
Amazon Relational Database Service
Amazon Relational Database
Service (Amazon RDS)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
Unmanaged versus managed services
Unmanaged:
Scaling, fault tolerance, and
availability are managed by
you.
Managed:
Scaling, fault tolerance, and
availability are typically built
into the service.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
Challenges of relational databases
• Server maintenance and energy footprint
• Software installation and patches
• Database backups and high availability
• Limits on scalability
• Data security
• Operating system (OS) installation and patches
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
Amazon RDS
Managed service that sets up and operates a relational database in
the cloud.
Users Application
Servers Amazon RDS
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
From on-premises databases to Amazon RDS
On-premises database
Application
optimization
Scaling
High Availability
Database backups
Database software
patches
Database software
installs
Operation system
patches
Operating system
install
Server maintenance
Rack and stack servers
Power, HVAC, network
Database in Amazon Elastic
Compute Cloud (Amazon
EC2)
AWS
provides
Application
optimization
Scaling
High Availability
Database backups
Database software
patches
Database software
installs
Operation system
patches
Operating system
install
Server maintenance
Rack and stack servers
Power, HVAC, network
Database in Amazon RDS
or Amazon Aurora
AWS
provides
Application
optimization
Scaling
High Availability
Database backups
Database software
patches
Database software
installs
Operation system
patches
Operating system
install
Server maintenance
Rack and stack servers
Power, HVAC, network
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
Managed services responsibilities
You manage:
• Application optimization
AWS manages:
• OS installation and patches
• Database software installation and patches
• Database backups
• High availability
• Scaling
• Power and racking and stacking servers
• Server maintenance
Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Amazon RDS DB instances
Amazon RDS
M
Amazon RDS DB
main instance
DB Instance Class
• CPU
• Memory
• Network performance
DB Instance Storage
• Magnetic
• General Purpose (solid state drive, or SSD)
• Provisioned IOPS
=
DB engines
MySQL
Amazon Aurora
Microsoft SQL Server
PostgreSQL
MariaDB
Oracle
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
Amazon RDS in a virtual private cloud (VPC)
Public subnet
Private subnet
Users
Internet
gateway
Availability Zone
Amazon RDS
Amazon EC2
VPC
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
High availability with Multi-AZ deployment (1 of 2)
Public subnet
Private subnet Private subnet
Availability Zone 1
Amazon EC2
Availability Zone 2
Amazon RDS
instance
RDS Standby
instance
Synchronous
Application
M S
AWS Cloud
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
High availability with Multi-AZ deployment (2 of 2)
Public subnet
Private subnet Private subnet
Availability Zone 1
Amazon EC2
Availability Zone 2
Amazon RDS
instance
RDS Standby
instance
Synchronous
Application
M S
AWS Cloud
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15
Amazon RDS read replicas
Features
• Offers asynchronous replication
• Can be promoted to primary if
needed
Functionality
• Use for read-heavy database
workloads
• Offload read queries
Private subnet
Public subnet
Availability Zone
Amazon EC2 Application
Amazon RDS
primary instance
P R
Read replica
instance
AWS Cloud
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
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
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
When to Use Amazon RDS
Use Amazon RDS when your
application requires:
• Complex transactions or complex
queries
• A medium to high query or write
rate – Up to 30,000 IOPS (15,000
reads + 15,000 writes)
• No more than a single worker node
or shard
• High durability
• Do not use Amazon RDS when
your application requires:
• Massive read/write rates (for
example, 150,000 write/second)
• Sharding due to high data size or
throughput demands
• Simple GET or PUT requests and
queries that a NoSQL database can
handle
• Relational database management
system (RDBMS) customization
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Amazon RDS: Clock-hour billing and database characteristics
Clock-hour billing –
• Resources incur charges when running
Database characteristics –
• Physical capacity of database:
• Engine
• Size
• Memory class
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
Amazon RDS: DB purchase type and multiple DB instances
DB purchase type –
• On-Demand Instances
• Compute capacity by the hour
• Reserved Instances
• Low, one-time, upfront payment for database instances that are reserved
with a 1-year or 3-year term
Number of DB instances –
• Provision multiple DB instances to handle peak loads
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Amazon RDS: Storage
Provisioned storage –
• No charge
• Backup storage of up to 100 percent of database storage for an active
database
• Charge (GB/month)
• Backup storage for terminated DB instances
Additional storage –
• Charge (GB/month)
• Backup storage in addition to provisioned storage
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
Amazon RDS: Deployment type and data transfer
Requests –
• The number of input and output requests that are made to the database
Deployment type—Storage and I/0 charges vary, depending on whether you
deploy to –
• Single Availability Zone
• Multiple Availability Zones
Data transfer –
• No charge for inbound data transfer
• Tiered charges for outbound data transfer
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
Recorded demo:
Amazon RDS
console
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23
Build Your DB
Server and
Interact with Your
DB Using an App
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
Lab 5: Scenario
This lab is designed to show you how to use an AWS managed
database instance to solve a need for a relational database.
Public subnet 1:
10.0.0.0/24
Public subnet 2:
10.0.2.0/24
Availability Zone B
Internet
gateway
Internet
Availability Zone A
Security group
NAT
gateway
Web
Server
VPC: 10.0.0.0/16
Private subnet 1:
10.0.1.0/24
Private subnet 2:
10.0.3.0/24
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
Lab 5: Tasks
Create a VPC security group.
Create a DB subnet group.
Create an Amazon RDS DB instance and
interact with your database.
Amazon RDS
Security group
Private subnet
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26
Lab 5: Final product
Public subnet 1:
10.0.1.0/24
Public subnet 2:
10.0.2.0/24
Availability Zone B
Internet
gateway
Internet
Availability Zone A
Security group
Web
Server
VPC: 10.0.0.0/16
Private subnet 1:
10.0.3.0/24
Private subnet 2:
10.0.4.0/24
AWS Cloud
Security group Security group
RDS DB
Primary
RDS DB
Secondary
NAT
gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27
Begin Lab 5: Build
your DB server and
interact with your DB
using an application
~ 30 minutes
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28
Lab debrief:
key takeaways
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
29
Section 1 key
takeaways
• With Amazon RDS, you can set up,
operate, and scale relational databases in
the cloud.
• Features –
• Managed service
• Accessible via the console, AWS Command Line Interface
(AWS CLI), or application programming interface (API) calls
• Scalable (compute and storage)
• Automated redundancy and backup are available
• Supported database engines:
• Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle, Microsoft SQL
Server
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module 8: Databases
Section 2: Amazon DynamoDB
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 31
Relational versus non-relational databases
Relational (SQL) Non-Relational
Data Storage Rows and columns Key-value, document, graph
Schemas Fixed Dynamic
Querying Uses SQL
Focuses on collection of
documents
Scalability Vertical Horizontal
Example
ISBN Title Author Format
3111111223439
Withering
Depths
Jackson
, Mateo
Paperback
3122222223439 Wily Willy
Wang,
Xiulan
Ebook
{
ISBN: 3111111223439,
Title: “Withering Depths”,
Author: ”Jackson, Mateo”,
Format: “Paperback”
}
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
What is Amazon DynamoDB?
Fast and flexible NoSQL database service for any scale
Amazon DynamoDB
• NoSQL database tables
• Virtually unlimited storage
• Items can have differing attributes
• Low-latency queries
• Scalable read/write throughput
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 33
Amazon DynamoDB core components
• Tables, items, and attributes are the core DynamoDB components
• DynamoDB supports two different kinds of primary keys: Partition key
and partition and sort key
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34
Partitioning
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
Items in a table must have a key
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36
Section 2 key
takeaways
Amazon DynamoDB:
• Runs exclusively on SSDs.
• Supports document and key-value store models.
• Replicates your tables automatically across your
choice of AWS Regions.
• Works well for mobile, web, gaming, adtech, and
Internet of Things (IoT) applications.
• Is accessible via the console, the AWS CLI, and
API calls.
• Provides consistent, single-digit millisecond latency
at any scale.
• Has no limits on table size or throughput.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37
Recorded demo:
Amazon
DynamoDB
console
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 38
Amazon DynamoDB demonstration
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module 8: Databases
Section 3: Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 40
Amazon Redshift
Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 41
Introduction to Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 42
Parallel processing architecture
Amazon Redshift
Dense compute
node
• Virtual Core
• RAM
• Local disk
Leader node
Dense compute nodes
SQL Clients/BI tools
Amazon DynamoDB
Amazon S3
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 43
Automation and scaling
Manage
Monitor
Scale
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 44
Compatibility
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 45
Amazon Redshift use cases (1 of 2)
• Enterprise data warehouse (EDW)
• Migrate at a pace that customers are comfortable with
• Experiment without large upfront cost or commitment
• Respond faster to business needs
• Big data
• Low price point for small customers
• Managed service for ease of deployment and maintenance
• Focus more on data and less on database management
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 46
Amazon Redshift use cases (2 of 2)
• Software as a service (SaaS)
• Scale the data warehouse capacity as demand grows
• Add analytic functionality to applications
• Reduce hardware and software costs
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 47
Section 3 key
takeaways
Amazon Redshift features:
• Fast, fully managed data warehouse
service
• Easily scale with no downtime
• Columnar storage and parallel processing
architectures
• Automatically and continuously monitors
cluster
• Encryption is built in
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module 8: Databases
Section 4: Amazon Aurora
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 49
Amazon Aurora
Amazon Aurora
• Enterprise-class relational database
• Compatible with MySQL or
PostgreSQL
• Automate time-consuming tasks
(such as provisioning, patching,
backup, recovery, failure detection,
and repair).
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 50
Amazon Aurora service benefits
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 51
High availability
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 52
Resilient design
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 53
Section 4 key
takeaways
Amazon Aurora features:
• High performance and scalability
• High availability and durability
• Multiple levels of security
• Compatible with MySQL and PostgreSQL
• Fully managed
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 54
The right tool for the right job
What are my requirements?
Enterprise-class relational database Amazon RDS
Fast and flexible NoSQL database service for any
scale
Amazon DynamoDB
Operating system access or application features
that are not supported by AWS database services
Databases on
Amazon EC2
Specific case-driven requirements (machine
learning, data warehouse, graphs)
AWS purpose-built
database services
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 55
Database case study activity (1 of 3)
Case 1: A data protection and management company that provides services to enterprises. They must provide database
services for over 55 petabytes of data. They have two types of data that require a database solution. First, they need a
relational database store for configuration data. Second, they need a store for unstructured metadata to support a de-
duplication service. After the data is de-duplicated, it is stored in Amazon S3 for quick retrieval, and eventually moved to
Amazon S3 Glacier for long-term storage. The following diagram illustrates their architecture.
Corporate
data center
Configuration
database
???
Amazon EC2 Amazon Simple
Storage Service
(Amazon S3)
Amazon Simple
Storage Service
Glacier
??? Metadata
database
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 56
Database case study activity (2 of 3)
Case 2: A commercial shipping company that uses an on-premises legacy data management system. They must
migrate to a serverless ecosystem while they continue to use their existing database system, which is based on
Oracle. They are also in the process of decomposing their highly structured relational data into semistructured
data. The following diagram illustrates their architecture.
???
Database
AWS AppSync
AWS Lambda
Corporate
data center
AWS Lambda AWS Lambda
Amazon Simple
Notification Service
(Amazon SNS)
Oracle
database
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 57
Database case study activity 3
Case 3: An online payment processing company that processes over1 million transactions per day. They must
provide services to ecommerce customers who offer flash sales (sales that offer greatly reduced prices for a
limited time), where demand can increase by 30 times in a short time period. They use IAM and AWS KMS to
authenticate transactions with financial institutions. They need high throughput for these peak loads. The
following diagram illustrates their architecture.
???
Database
Elastic Load
Balancing
Internet
AWS Identity and
Access Management
(IAM)
AWS Key Management
Service (AWS KMS)
Banks
Amazon EC2
instances
Read replicas
AWS Cloud
AWS SDK
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module 8: Databases
Module wrap-up
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 59
Module summary
In summary, in this module, you learned how to:
• Explain Amazon Relational Database Service (Amazon RDS)
• Identify the functionality in Amazon RDS
• Explain Amazon DynamoDB
• Identify the functionality in Amazon DynamoDB
• Explain Amazon Redshift
• Explain Amazon Aurora
• Perform tasks in an RDS database, such as launching, configuring, and interacting
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 60
Complete the knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 61
Sample exam question
Which of the following is a fully-managed NoSQL database service?
Choice Response
A Amazon Relational Database Service (Amazon RDS)
B Amazon DynamoDB
C Amazon Aurora
D Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 62
Sample exam question answer
Which of the following is a fully-managed NoSQL database service?
The keywords in the question are “NoSQL database service”.
The correct answer is B.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 63
Additional resources
• AWS Database page: https://aws.amazon.com/products/databases/
• Amazon RDS page: https://aws.amazon.com/rds/
• Overview of Amazon database services:
https://docs.aws.amazon.com/whitepapers/latest/aws-
overview/database.html
• Getting started with AWS databases:
https://aws.amazon.com/products/databases/learn/
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 64
Thank you
All trademarks are the property of their owners.

More Related Content

PDF
Iso 27000 evolución oct2015
Ricardo Urbina Miranda
 
PPTX
23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx
Avi Networks
 
PDF
Azure Hybid
Thomas Treml
 
PDF
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2021年7月版]
オラクルエンジニア通信
 
PPTX
VMC-02-VMware Cloud on AWS のご紹介_2021.pptx
aaaa273385
 
PPTX
Veean Backup & Replication
Arnaud PAIN
 
PDF
Presentation citrix desktop virtualization
xKinAnx
 
PDF
Data Center Infrastructure Management Powerpoint Presentation Slides
SlideTeam
 
Iso 27000 evolución oct2015
Ricardo Urbina Miranda
 
23.06.15 NSX ALB and vCD integration deepdive_webinar0615.pptx
Avi Networks
 
Azure Hybid
Thomas Treml
 
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2021年7月版]
オラクルエンジニア通信
 
VMC-02-VMware Cloud on AWS のご紹介_2021.pptx
aaaa273385
 
Veean Backup & Replication
Arnaud PAIN
 
Presentation citrix desktop virtualization
xKinAnx
 
Data Center Infrastructure Management Powerpoint Presentation Slides
SlideTeam
 

What's hot (20)

PPTX
AWS Techical Due Diligence to post transaction execution for M&A
Tom Laszewski
 
PDF
Red Hat Enterprise Linux 8
Kangaroot
 
PDF
VMware Cloud on AWS POC HCX デプロイガイド
Noritaka Kuroiwa
 
PDF
Cloud Services: Types of Cloud
Dr. Sunil Kr. Pandey
 
PDF
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
Amazon Web Services Korea
 
PDF
Oracle Cloud Infrastructure:2021年12月度サービス・アップデート
オラクルエンジニア通信
 
PPTX
DevOps overview and tech interview tips
Daniel Bezerra
 
PDF
ThousandEyes Overview
ThousandEyes
 
PPTX
Ping Identity
Ping Identity
 
PDF
Curso taller: Sistemas de Gestión de Seguridad de la Información
Horacio Veramendi
 
PDF
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Amazon Web Services Korea
 
PDF
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
 
PDF
OCI 購入モデルの整理と Universal Credit 最新情報(2021年2月17日版)
オラクルエンジニア通信
 
PDF
CISSP Cheatsheet.pdf
shyedshahriar
 
PDF
Leveraging Generative AI to Accelerate Graph Innovation for National Security...
Neo4j
 
PPTX
GCP Cloud Storage Security
Joseph Holbrook, Chief Learning Officer (CLO)
 
PPTX
Introduction to Active Directory
thoms1i
 
PPTX
Cyberark training ppt
Akhil Kumar
 
PPTX
Dell Technologies - The Portfolio in 20+9 Minutes
Smarter.World
 
AWS Techical Due Diligence to post transaction execution for M&A
Tom Laszewski
 
Red Hat Enterprise Linux 8
Kangaroot
 
VMware Cloud on AWS POC HCX デプロイガイド
Noritaka Kuroiwa
 
Cloud Services: Types of Cloud
Dr. Sunil Kr. Pandey
 
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
Amazon Web Services Korea
 
Oracle Cloud Infrastructure:2021年12月度サービス・アップデート
オラクルエンジニア通信
 
DevOps overview and tech interview tips
Daniel Bezerra
 
ThousandEyes Overview
ThousandEyes
 
Ping Identity
Ping Identity
 
Curso taller: Sistemas de Gestión de Seguridad de la Información
Horacio Veramendi
 
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Amazon Web Services Korea
 
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
 
OCI 購入モデルの整理と Universal Credit 最新情報(2021年2月17日版)
オラクルエンジニア通信
 
CISSP Cheatsheet.pdf
shyedshahriar
 
Leveraging Generative AI to Accelerate Graph Innovation for National Security...
Neo4j
 
Introduction to Active Directory
thoms1i
 
Cyberark training ppt
Akhil Kumar
 
Dell Technologies - The Portfolio in 20+9 Minutes
Smarter.World
 
Ad

Similar to AcademyCloudFoundations_Module_08 (1).pptx (11)

PDF
AWSomeDayOnline Q322_2. Introduction to AWS Services Compute, Storage, Databa...
SwamiSparthsarathi
 
PPTX
AWS SSA Webinar 7 - Getting Started on AWS
Cobus Bernard
 
PPTX
Leveraging serverless in fullstack development
Eric Johnson
 
PDF
AWS-services.pdf
K173845ArbazSohailKh
 
PDF
Opinionated re:Invent recap with AWS Heroes & Builders
Daniel Zivkovic
 
PDF
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Kristana Kane
 
PDF
Uses, considerations, and recommendations for AWS
Scalar Decisions
 
PDF
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Ian Massingham
 
PDF
saa3_wk5.pdf
Michgo1
 
PPTX
AWS Startup Day Bangalore: Being Well-Architected in the Cloud
Adrian Hornsby
 
PPTX
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
Cobus Bernard
 
AWSomeDayOnline Q322_2. Introduction to AWS Services Compute, Storage, Databa...
SwamiSparthsarathi
 
AWS SSA Webinar 7 - Getting Started on AWS
Cobus Bernard
 
Leveraging serverless in fullstack development
Eric Johnson
 
AWS-services.pdf
K173845ArbazSohailKh
 
Opinionated re:Invent recap with AWS Heroes & Builders
Daniel Zivkovic
 
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Kristana Kane
 
Uses, considerations, and recommendations for AWS
Scalar Decisions
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Ian Massingham
 
saa3_wk5.pdf
Michgo1
 
AWS Startup Day Bangalore: Being Well-Architected in the Cloud
Adrian Hornsby
 
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
Cobus Bernard
 
Ad

Recently uploaded (20)

PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
Information Retrieval and Extraction - Module 7
premSankar19
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 

AcademyCloudFoundations_Module_08 (1).pptx

  • 1. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Academy Cloud Foundations Module 8: Databases
  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2 Module overview Topics • Amazon Relational Database Service (Amazon RDS) • Amazon DynamoDB • Amazon Redshift • Amazon Aurora Demos • Amazon RDS console • Amazon DynamoDB console Lab • Lab 5: Build Your DB Server and Interact with Your DB Using an App Activity • Database case studies Knowledge check
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3 Module objectives After completing this module, you should be able to: • Explain Amazon Relational Database Service (Amazon RDS) • Identify the functionality in Amazon RDS • Explain Amazon DynamoDB • Identify the functionality in Amazon DynamoDB • Explain Amazon Redshift • Explain Amazon Aurora • Perform tasks in an RDS database, such as launching, configuring, and interacting
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Module 8: Databases Section 1: Amazon Relational Database Service
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5 Amazon Relational Database Service Amazon Relational Database Service (Amazon RDS)
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6 Unmanaged versus managed services Unmanaged: Scaling, fault tolerance, and availability are managed by you. Managed: Scaling, fault tolerance, and availability are typically built into the service.
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7 Challenges of relational databases • Server maintenance and energy footprint • Software installation and patches • Database backups and high availability • Limits on scalability • Data security • Operating system (OS) installation and patches
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8 Amazon RDS Managed service that sets up and operates a relational database in the cloud. Users Application Servers Amazon RDS AWS Cloud
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9 From on-premises databases to Amazon RDS On-premises database Application optimization Scaling High Availability Database backups Database software patches Database software installs Operation system patches Operating system install Server maintenance Rack and stack servers Power, HVAC, network Database in Amazon Elastic Compute Cloud (Amazon EC2) AWS provides Application optimization Scaling High Availability Database backups Database software patches Database software installs Operation system patches Operating system install Server maintenance Rack and stack servers Power, HVAC, network Database in Amazon RDS or Amazon Aurora AWS provides Application optimization Scaling High Availability Database backups Database software patches Database software installs Operation system patches Operating system install Server maintenance Rack and stack servers Power, HVAC, network
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10 Managed services responsibilities You manage: • Application optimization AWS manages: • OS installation and patches • Database software installation and patches • Database backups • High availability • Scaling • Power and racking and stacking servers • Server maintenance Amazon RDS
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11 Amazon RDS DB instances Amazon RDS M Amazon RDS DB main instance DB Instance Class • CPU • Memory • Network performance DB Instance Storage • Magnetic • General Purpose (solid state drive, or SSD) • Provisioned IOPS = DB engines MySQL Amazon Aurora Microsoft SQL Server PostgreSQL MariaDB Oracle
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12 Amazon RDS in a virtual private cloud (VPC) Public subnet Private subnet Users Internet gateway Availability Zone Amazon RDS Amazon EC2 VPC AWS Cloud
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13 High availability with Multi-AZ deployment (1 of 2) Public subnet Private subnet Private subnet Availability Zone 1 Amazon EC2 Availability Zone 2 Amazon RDS instance RDS Standby instance Synchronous Application M S AWS Cloud VPC
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14 High availability with Multi-AZ deployment (2 of 2) Public subnet Private subnet Private subnet Availability Zone 1 Amazon EC2 Availability Zone 2 Amazon RDS instance RDS Standby instance Synchronous Application M S AWS Cloud VPC
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15 Amazon RDS read replicas Features • Offers asynchronous replication • Can be promoted to primary if needed Functionality • Use for read-heavy database workloads • Offload read queries Private subnet Public subnet Availability Zone Amazon EC2 Application Amazon RDS primary instance P R Read replica instance AWS Cloud VPC
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16 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
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17 When to Use Amazon RDS Use Amazon RDS when your application requires: • Complex transactions or complex queries • A medium to high query or write rate – Up to 30,000 IOPS (15,000 reads + 15,000 writes) • No more than a single worker node or shard • High durability • Do not use Amazon RDS when your application requires: • Massive read/write rates (for example, 150,000 write/second) • Sharding due to high data size or throughput demands • Simple GET or PUT requests and queries that a NoSQL database can handle • Relational database management system (RDBMS) customization
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18 Amazon RDS: Clock-hour billing and database characteristics Clock-hour billing – • Resources incur charges when running Database characteristics – • Physical capacity of database: • Engine • Size • Memory class
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19 Amazon RDS: DB purchase type and multiple DB instances DB purchase type – • On-Demand Instances • Compute capacity by the hour • Reserved Instances • Low, one-time, upfront payment for database instances that are reserved with a 1-year or 3-year term Number of DB instances – • Provision multiple DB instances to handle peak loads
  • 20. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20 Amazon RDS: Storage Provisioned storage – • No charge • Backup storage of up to 100 percent of database storage for an active database • Charge (GB/month) • Backup storage for terminated DB instances Additional storage – • Charge (GB/month) • Backup storage in addition to provisioned storage
  • 21. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21 Amazon RDS: Deployment type and data transfer Requests – • The number of input and output requests that are made to the database Deployment type—Storage and I/0 charges vary, depending on whether you deploy to – • Single Availability Zone • Multiple Availability Zones Data transfer – • No charge for inbound data transfer • Tiered charges for outbound data transfer
  • 22. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22 Recorded demo: Amazon RDS console
  • 23. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23 Build Your DB Server and Interact with Your DB Using an App
  • 24. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24 Lab 5: Scenario This lab is designed to show you how to use an AWS managed database instance to solve a need for a relational database. Public subnet 1: 10.0.0.0/24 Public subnet 2: 10.0.2.0/24 Availability Zone B Internet gateway Internet Availability Zone A Security group NAT gateway Web Server VPC: 10.0.0.0/16 Private subnet 1: 10.0.1.0/24 Private subnet 2: 10.0.3.0/24 AWS Cloud
  • 25. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25 Lab 5: Tasks Create a VPC security group. Create a DB subnet group. Create an Amazon RDS DB instance and interact with your database. Amazon RDS Security group Private subnet
  • 26. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26 Lab 5: Final product Public subnet 1: 10.0.1.0/24 Public subnet 2: 10.0.2.0/24 Availability Zone B Internet gateway Internet Availability Zone A Security group Web Server VPC: 10.0.0.0/16 Private subnet 1: 10.0.3.0/24 Private subnet 2: 10.0.4.0/24 AWS Cloud Security group Security group RDS DB Primary RDS DB Secondary NAT gateway
  • 27. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27 Begin Lab 5: Build your DB server and interact with your DB using an application ~ 30 minutes
  • 28. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28 Lab debrief: key takeaways
  • 29. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 29 Section 1 key takeaways • With Amazon RDS, you can set up, operate, and scale relational databases in the cloud. • Features – • Managed service • Accessible via the console, AWS Command Line Interface (AWS CLI), or application programming interface (API) calls • Scalable (compute and storage) • Automated redundancy and backup are available • Supported database engines: • Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle, Microsoft SQL Server
  • 30. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Module 8: Databases Section 2: Amazon DynamoDB
  • 31. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 31 Relational versus non-relational databases Relational (SQL) Non-Relational Data Storage Rows and columns Key-value, document, graph Schemas Fixed Dynamic Querying Uses SQL Focuses on collection of documents Scalability Vertical Horizontal Example ISBN Title Author Format 3111111223439 Withering Depths Jackson , Mateo Paperback 3122222223439 Wily Willy Wang, Xiulan Ebook { ISBN: 3111111223439, Title: “Withering Depths”, Author: ”Jackson, Mateo”, Format: “Paperback” }
  • 32. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32 What is Amazon DynamoDB? Fast and flexible NoSQL database service for any scale Amazon DynamoDB • NoSQL database tables • Virtually unlimited storage • Items can have differing attributes • Low-latency queries • Scalable read/write throughput
  • 33. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 33 Amazon DynamoDB core components • Tables, items, and attributes are the core DynamoDB components • DynamoDB supports two different kinds of primary keys: Partition key and partition and sort key
  • 34. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34 Partitioning
  • 35. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35 Items in a table must have a key
  • 36. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36 Section 2 key takeaways Amazon DynamoDB: • Runs exclusively on SSDs. • Supports document and key-value store models. • Replicates your tables automatically across your choice of AWS Regions. • Works well for mobile, web, gaming, adtech, and Internet of Things (IoT) applications. • Is accessible via the console, the AWS CLI, and API calls. • Provides consistent, single-digit millisecond latency at any scale. • Has no limits on table size or throughput.
  • 37. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37 Recorded demo: Amazon DynamoDB console
  • 38. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 38 Amazon DynamoDB demonstration
  • 39. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Module 8: Databases Section 3: Amazon Redshift
  • 40. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 40 Amazon Redshift Amazon Redshift
  • 41. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 41 Introduction to Amazon Redshift
  • 42. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 42 Parallel processing architecture Amazon Redshift Dense compute node • Virtual Core • RAM • Local disk Leader node Dense compute nodes SQL Clients/BI tools Amazon DynamoDB Amazon S3
  • 43. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 43 Automation and scaling Manage Monitor Scale
  • 44. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 44 Compatibility
  • 45. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 45 Amazon Redshift use cases (1 of 2) • Enterprise data warehouse (EDW) • Migrate at a pace that customers are comfortable with • Experiment without large upfront cost or commitment • Respond faster to business needs • Big data • Low price point for small customers • Managed service for ease of deployment and maintenance • Focus more on data and less on database management
  • 46. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 46 Amazon Redshift use cases (2 of 2) • Software as a service (SaaS) • Scale the data warehouse capacity as demand grows • Add analytic functionality to applications • Reduce hardware and software costs
  • 47. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 47 Section 3 key takeaways Amazon Redshift features: • Fast, fully managed data warehouse service • Easily scale with no downtime • Columnar storage and parallel processing architectures • Automatically and continuously monitors cluster • Encryption is built in
  • 48. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Module 8: Databases Section 4: Amazon Aurora
  • 49. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 49 Amazon Aurora Amazon Aurora • Enterprise-class relational database • Compatible with MySQL or PostgreSQL • Automate time-consuming tasks (such as provisioning, patching, backup, recovery, failure detection, and repair).
  • 50. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 50 Amazon Aurora service benefits
  • 51. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 51 High availability
  • 52. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 52 Resilient design
  • 53. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 53 Section 4 key takeaways Amazon Aurora features: • High performance and scalability • High availability and durability • Multiple levels of security • Compatible with MySQL and PostgreSQL • Fully managed
  • 54. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 54 The right tool for the right job What are my requirements? Enterprise-class relational database Amazon RDS Fast and flexible NoSQL database service for any scale Amazon DynamoDB Operating system access or application features that are not supported by AWS database services Databases on Amazon EC2 Specific case-driven requirements (machine learning, data warehouse, graphs) AWS purpose-built database services
  • 55. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 55 Database case study activity (1 of 3) Case 1: A data protection and management company that provides services to enterprises. They must provide database services for over 55 petabytes of data. They have two types of data that require a database solution. First, they need a relational database store for configuration data. Second, they need a store for unstructured metadata to support a de- duplication service. After the data is de-duplicated, it is stored in Amazon S3 for quick retrieval, and eventually moved to Amazon S3 Glacier for long-term storage. The following diagram illustrates their architecture. Corporate data center Configuration database ??? Amazon EC2 Amazon Simple Storage Service (Amazon S3) Amazon Simple Storage Service Glacier ??? Metadata database AWS Cloud
  • 56. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 56 Database case study activity (2 of 3) Case 2: A commercial shipping company that uses an on-premises legacy data management system. They must migrate to a serverless ecosystem while they continue to use their existing database system, which is based on Oracle. They are also in the process of decomposing their highly structured relational data into semistructured data. The following diagram illustrates their architecture. ??? Database AWS AppSync AWS Lambda Corporate data center AWS Lambda AWS Lambda Amazon Simple Notification Service (Amazon SNS) Oracle database
  • 57. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 57 Database case study activity 3 Case 3: An online payment processing company that processes over1 million transactions per day. They must provide services to ecommerce customers who offer flash sales (sales that offer greatly reduced prices for a limited time), where demand can increase by 30 times in a short time period. They use IAM and AWS KMS to authenticate transactions with financial institutions. They need high throughput for these peak loads. The following diagram illustrates their architecture. ??? Database Elastic Load Balancing Internet AWS Identity and Access Management (IAM) AWS Key Management Service (AWS KMS) Banks Amazon EC2 instances Read replicas AWS Cloud AWS SDK
  • 58. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Module 8: Databases Module wrap-up
  • 59. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 59 Module summary In summary, in this module, you learned how to: • Explain Amazon Relational Database Service (Amazon RDS) • Identify the functionality in Amazon RDS • Explain Amazon DynamoDB • Identify the functionality in Amazon DynamoDB • Explain Amazon Redshift • Explain Amazon Aurora • Perform tasks in an RDS database, such as launching, configuring, and interacting
  • 60. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 60 Complete the knowledge check
  • 61. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 61 Sample exam question Which of the following is a fully-managed NoSQL database service? Choice Response A Amazon Relational Database Service (Amazon RDS) B Amazon DynamoDB C Amazon Aurora D Amazon Redshift
  • 62. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 62 Sample exam question answer Which of the following is a fully-managed NoSQL database service? The keywords in the question are “NoSQL database service”. The correct answer is B.
  • 63. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 63 Additional resources • AWS Database page: https://aws.amazon.com/products/databases/ • Amazon RDS page: https://aws.amazon.com/rds/ • Overview of Amazon database services: https://docs.aws.amazon.com/whitepapers/latest/aws- overview/database.html • Getting started with AWS databases: https://aws.amazon.com/products/databases/learn/
  • 64. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 64 Thank you All trademarks are the property of their owners.