0% found this document useful (0 votes)
347 views63 pages

AcademyCloudFoundations Module 08

This module provides an overview of databases on AWS including Amazon Relational Database Service (Amazon RDS), Amazon DynamoDB, Amazon Redshift, and Amazon Aurora. It discusses how Amazon RDS provides a managed database service and removes the need for users to manage operating systems, software patching, backups, and high availability. The module objectives are to explain each AWS database service and perform tasks like launching and configuring databases on Amazon RDS.

Uploaded by

anmolgupta2468
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
347 views63 pages

AcademyCloudFoundations Module 08

This module provides an overview of databases on AWS including Amazon Relational Database Service (Amazon RDS), Amazon DynamoDB, Amazon Redshift, and Amazon Aurora. It discusses how Amazon RDS provides a managed database service and removes the need for users to manage operating systems, software patching, backups, and high availability. The module objectives are to explain each AWS database service and perform tasks like launching and configuring databases on Amazon RDS.

Uploaded by

anmolgupta2468
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 63

AW S A c a d e m y C l o u d F o u n d a t i o n s

Module 8: Databases

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module overview

Topics Lab
• Amazon Relational Database • Lab 5: Build Your DB Server and
Service (Amazon RDS) Interact with Your DB Using an
• Amazon DynamoDB App
• Amazon Redshift Activity
• Amazon Aurora • Database case studies
Demos
• Amazon RDS console
• Amazon DynamoDB console
Knowledge check
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
2
reserved.
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
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
3
reserved.
Module 8: Databases
Section 1: Amazon Relational Database
Service

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


reserved.
Amazon Relational Database Service

Amazon Relational
Database Service (Amazon
RDS)
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
5
reserved.
Unmanaged versus managed
services
Unmanaged Managed:
:
Scaling, fault tolerance, Scaling, fault tolerance,
and availability are and availability are
managed by you. typically built in to the
service.

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


6
reserved.
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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


7
reserved.
Amazon RDS

Managed service that sets up and operates a relational database in


the cloud.

AWS Cloud

Users Application
Servers Amazon RDS

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


8
reserved.
From on-premises databases to Amazon
RDS
Database in Amazon Elastic Database in Amazon
On-premises
Compute Cloud (Amazon RDS or Amazon Aurora
database
EC2)

Application Application Application


optimization optimization optimization
Scaling Scaling Scaling
High Availability High Availability High Availability
Database backups Database backups Database backups
Database software Database software AWS Database software
patches patches provides patches
Database software Database software Database software
installs installs installs
Operation system Operation system Operation system
patches patches patches
AWS
Operating system Operating system Operating system
provides
install install 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
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
9
reserved.
Managed services responsibilities

You manage:
• Application optimization

AWS manages:
• OS installation and patches
• Database software installation and patches
• Database backups
• High availability
• Scaling
Amazon RDS
• Power and racking and stacking servers
• Server maintenance
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
10
reserved.
Amazon RDS DB instances
Amazon RDS
=
MySQL

DB Instance Class Amazon Aurora


• CPU

M
• Memory Microsoft SQL Server
• Network performance
PostgreSQL
Amazon RDS DB DB Instance Storage
main instance MariaDB
• Magnetic
• General Purpose (solid state drive, or SSD)
• Provisioned IOPS Oracle

DB engines

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


11
reserved.
Amazon RDS in a virtual private cloud
(VPC)
AWS Cloud
Availability Zone

VPC
Public subnet

Internet
Users gateway Amazon EC2

Private subnet

Amazon RDS

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


12
reserved.
High availability with Multi-AZ
deployment
AWS Cloud
Availability Zone 1 Availability Zone 2

VPC
Public subnet

Amazon EC2 Application

Private subnet Private subnet

M Synchronous S
Amazon RDS
RDS Standby
instance
instance

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


13
reserved.
High availability with Multi-AZ
deployment 2
AWS Cloud
Availability Zone 1 Availability Zone 2

VPC
Public subnet

Amazon EC2 Application

Private subnet Private subnet

M Synchronous S
Amazon RDS
RDS Standby
instance
instance

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


14
reserved.
Amazon RDS read replicas
AWS Cloud
Features Availability Zone
• Offers asynchronous replication VPC
Public subnet
• Can be promoted to primary if
needed
Amazon EC2 Application

Functionality Private subnet

• Use for read-heavy database


workloads P R
Amazon RDS Read replica
• Offload read queries primary instance
instance

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


15
reserved.
Use cases

High throughput
Web and mobile
Massive storage scalability
applications
High availability

Low-cost database
Ecommerce applications Data security
Fully managed solution

Rapidly grow capacity


Mobile and online games Automatic scaling
Database monitoring
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
16
reserved.
When to Use Amazon RDS
Use Amazon RDS when your Do not use Amazon RDS when your
application requires: application requires:
• Complex transactions or • Massive read/write rates (for
complex queries example, 150,000 write/second)
• A medium to high query or write • Sharding due to high data size or
rate – Up to 30,000 IOPS (15,000 throughput demands
reads + 15,000 writes)
• Simple GET or PUT requests and
• No more than a single worker queries that a NoSQL database
node or shard can handle
• High durability • Relational database
management system (RDBMS)
customization
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
17
reserved.
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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


18
reserved.
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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


19
reserved.
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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


20
reserved.
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
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
21
reserved.
Build Your DB
Server and
Interact with
Your DB Using
an App

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


22
reserved.
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.
AWS Cloud
Availability Zone A Availability Zone B
VPC: 10.0.0.0/16
Public subnet 1: Public subnet 2:
Internet 10.0.0.0/24 10.0.2.0/24
Security group
Internet NAT Web
gateway gateway Server

Private subnet 1: Private subnet 2:


10.0.1.0/24 10.0.3.0/24

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


23
reserved.
Lab 5: Tasks

Security group
Create a VPC security group.

Create a DB subnet group.


Private subnet

Create an Amazon RDS DB instance and


interact with your database.
Amazon RDS

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


24
reserved.
Lab 5: Final product

AWS Cloud
Availability Zone A Availability Zone B
VPC: 10.0.0.0/16
Public subnet 1: Public subnet 2:
Internet 10.0.1.0/24 10.0.2.0/24
Security group
NAT Web
Internet
gateway gateway Server

Private subnet 1: Private subnet 2:


10.0.3.0/24 10.0.4.0/24
Security group Security group
RDS DB RDS DB
Primary Secondary

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


25
reserved.
Begin Lab 5
~ 30 minutes

Begin Lab 5: Build


your DB server and
interact with your
DB using an
application

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


26
reserved.
Lab debrief:
key takeaways

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


27
reserved.
Recorded
demo:
Amazon RDS

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


28
reserved.
• With Amazon RDS, you can set
Section 1 key up, operate, and scale
takeaways 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,
29
MariaDB, Oracle, Microsoft
© 2019 Amazon Web SQL
Services,Server
Inc. or its Affiliates. All rights
reserved.
Module 8: Databases

Section 2: Amazon DynamoDB

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


reserved.
Relational versus non-relational
databases
Relational (SQL) Non-Relational
Data Storage Rows and columns Key-value, document, graph
Schemas Fixed Dynamic
Focuses on collection of
Querying Uses SQL
documents
Scalability Vertical Horizontal

ISBN Title Author Format {


ISBN: 3111111223439,
Witherin Jackson Title: “Withering Depths”,
Example 3111111223439 Paperback
g Depths , Mateo Author: ”Jackson, Mateo”,
Format: “Paperback”
Wily Wang,
3122222223439 Ebook }
Willy Xiulan

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


31
reserved.
What is Amazon DynamoDB?

Fast and flexible NoSQL database service for any scale

• NoSQL database tables

• Virtually unlimited storage

• Items can have differing


attributes

Amazon DynamoDB • Low-latency queries

• Scalable read/write
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights 32
reserved.
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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


33
reserved.
Partitioning

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


34
reserved.
Items in a table must have a key

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


35
reserved.
Amazon DynamoDB:
Section 2 key • Runs exclusively on SSDs.
takeaways • 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.

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


36
reserved.
Recorded
demo:
Amazon
DynamoDB

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


37
reserved.
Amazon DynamoDB demonstration

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


38
reserved.
Module 8: Databases

Section 3: Amazon Redshift

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


reserved.
Amazon Redshift

Amazon Redshift

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


40
reserved.
Introduction to Amazon Redshift

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


41
reserved.
Parallel processing architecture

SQL Clients/BI tools

Amazon Redshift
Leader node

Dense compute
node Dense compute
nodes
• Virtual Core
• RAM
• Local disk Amazon DynamoDB
Amazon S3

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


42
reserved.
Automation and scaling

Manage

Monitor

Scale

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


43
reserved.
Compatibility

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


44
reserved.
Amazon Redshift use cases

• 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

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


45
reserved.
Amazon Redshift use cases 2

• Software as a service (SaaS)


• Scale the data warehouse capacity as demand grows
• Add analytic functionality to applications
• Reduce hardware and software costs

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


46
reserved.
Amazon Redshift features:
Section 3 key
• Fast, fully managed data
takeaways warehouse service
• Easily scale with no downtime
• Columnar storage and parallel
processing architectures
• Automatically and
continuously monitors cluster
• Encryption is built in

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


47
reserved.
Module 8: Databases

Section 4: Amazon Aurora

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


reserved.
Amazon Aurora

• Enterprise-class relational database

• Compatible with MySQL or

PostgreSQL

• Automate time-consuming tasks


Amazon Aurora (such as provisioning, patching,
backup, recovery, failure detection,
and repair).
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
49
reserved.
Amazon Aurora service benefits

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


50
reserved.
High availability

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


51
reserved.
Resilient design

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


52
reserved.
Amazon Aurora features:
Section 4 key
• High performance and
takeaways scalability
• High availability and durability
• Multiple levels of security
• Compatible with MySQL and
PostgreSQL
• Fully managed

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


53
reserved.
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 Databases on


that are not supported by AWS database services Amazon EC2
Specific case-driven requirements (machine AWS purpose-built
learning, data warehouse, graphs) database services
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
54
reserved.
Database case study activity 1
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.

AWS Cloud

??? Metadata
??? database

Configuratio
Corporate n
data database
center
Amazon EC2 Amazon Simple Amazon Simple
Storage Service Storage Service
(Amazon S3) Glacier

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


55
reserved.
Database case study activity 2
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 AWS Lambda

Corporat Oracle AWS Lambda


e data database Amazon Simple
center Notification Service
(Amazon SNS)

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


56
reserved.
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.
AWS Cloud

Database
??? AWS Identity and
Access Management
Elastic Load (IAM)
Internet Balancing
Banks
AWS SDK
AWS Key
Amazon EC2 Read replicas Management Service
(AWS KMS)
instances
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
57
reserved.
Module 8: Databases

Module wrap-up

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


reserved.
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
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights
59
reserved.
Complete the knowledge check

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


60
reserved.
Sample exam question

Which of the following is a fully-managed NoSQL database


service?
A. Amazon Relational Database Service (Amazon RDS)
B. Amazon DynamoDB
C. Amazon Aurora
D. Amazon Redshift

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 61
Additional resources

• AWS Database page


• Amazon RDS page
• Overview of Amazon database services
• Getting started with AWS databases

© 2019 Amazon Web Services, Inc. or its Affiliates. All rights


62
reserved.
Thank you

© 2019 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior
written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited. Corrections or feedback on the course, please email
us at: [email protected]. For all other questions, contact us at: https://aws.amazon.com/contact-us/aws-training/. All trademarks are the
property of their owners.

You might also like