Module 08
Module 08
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Module overview
Topics
• Amazon Relational Database Service
(Amazon RDS)
• Amazon DynamoDB
• Amazon Redshift
• Amazon Aurora
Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Module objectives
After completing this module, you should be able to:
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Section 1: Amazon Relational
Database Service
Module 8: Databases
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Relational Database Service
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
Unmanaged versus managed services
Unmanaged: Managed:
Scaling, fault tolerance, and Scaling, fault tolerance, and
availability are managed by availability are typically built
you. into the service.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
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. 7
Amazon RDS
Managed service that sets up and operates a relational database in the cloud.
AWS Cloud
Users Application
Servers Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
From on-premises databases to Amazon RDS
Database in Amazon Elastic
Database in Amazon RDS or
On-premises database Compute Cloud (Amazon EC2)
Amazon Aurora
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
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
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
Amazon RDS DB instances
Amazon RDS
=
MySQL
M • Network performance
PostgreSQL
Amazon RDS DB DB Instance Storage
main instance • Magnetic MariaDB
• General Purpose (solid state drive, or SSD)
• Provisioned IOPS Oracle
DB engines
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Amazon RDS in a virtual private cloud (VPC)
AWS Cloud
Availability Zone
VPC
Public subnet
Internet
Users gateway Amazon EC2
Private subnet
Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
High availability with Multi-AZ deployment (1 of 2)
AWS Cloud
Availability Zone 1 Availability Zone 2
VPC
Public subnet
M Synchronous S
Amazon RDS
RDS Standby
instance
instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
High availability with Multi-AZ deployment (2 of 2)
AWS Cloud
Availability Zone 1 Availability Zone 2
VPC
Public subnet
M Synchronous S
Amazon RDS
RDS Standby
instance
instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
Amazon RDS read replicas
Features AWS Cloud
Availability Zone
• Offers asynchronous replication
VPC
• Can be promoted to primary if needed Public subnet
workloads
P R
• Offload read queries Amazon RDS Read replica
primary instance instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15
Use cases
High throughput
Web and mobile applications Massive storage scalability
High availability
Low-cost database
Ecommerce applications Data security
Fully managed solution
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
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. 18
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. 19
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. 20
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. 21
Section 1 key • With Amazon RDS, you can set up, operate, and
scale relational databases in the cloud.
takeaways
• 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
22
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Section 2: Amazon DynamoDB
Module 8: Databases
© 2022, 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
Querying Uses SQL Focuses on collection of documents
Scalability Vertical Horizontal
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
What is Amazon DynamoDB?
• Low-latency queries
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
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. 26
Partitioning
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27
Items in a table must have a key
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28
Section 2 key Amazon DynamoDB:
• 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.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 29
Section 3: Amazon Redshift
Module 8: Databases
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Redshift
Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 31
Introduction to Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
Parallel processing architecture
Amazon Redshift
Leader node
Dense compute
node Dense compute nodes
• Virtual Core
• RAM
• Local disk Amazon DynamoDB
Amazon S3
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 33
Automation and scaling
Manage
Monitor
Scale
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34
Compatibility
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
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. 36
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. 37
Section 3 key Amazon Redshift features:
takeaways • 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. 38
Section 4: Amazon Aurora
Module 8: Databases
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 40
Amazon Aurora service benefits
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 41
High availability
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 42
Resilient design
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 43
Section 4 key Amazon Aurora features:
takeaways • 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. 44
The right tool for the right job
Fast and flexible NoSQL database service for any scale Amazon DynamoDB
Operating system access or application features that are not Databases on Amazon
supported by AWS database services EC2
Specific case-driven requirements (machine learning, data AWS purpose-built
warehouse, graphs) database services
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 45
Module wrap-up
Module 8: Databases
© 2022, 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)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 47
Complete the knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 48
Sample exam question
Which of the following is a fully-managed NoSQL database service?
Choice Response
B Amazon DynamoDB
C Amazon Aurora
D Amazon Redshift
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 49
Sample exam question answer
Which of the following is a fully-managed NoSQL database service?
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 50
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. 51
Thank you
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 52