Introduction To Cloud Course Slides
Introduction To Cloud Course Slides
Name Description
On-demand, self-service A user can consume cloud resources, as needed, automatically,
and without human interaction
Broad network access Capabilities are available over the network using standard
mechanisms. Can be the Internet or a Wide Area Network (WAN)
Resource pooling The providers resources are pooled and serve multiple
consumers using a multi-tenant model
Rapid elasticity Capabilities can scale “elastically” based on demand
Corporate Office
Compute
Storage
Network Database
Internet
Region – eu-west-1
An Availability Zone is
composed of one or Region – ap-southeast-2
more data centers
Availability Availability Availability
Zone Zone Zone
Each region consists of
multiple Availability Zones
aws s3 ls s3://mys3databucket
AWS Account
Unique email
address required
AWS IAM
AWS Account
AWS Management
Console
Authorization: IAM principals
can then create resources
AWS IAM
across AWS Regions
Unique email address for this account Check if you can use a
dynamic alias with an
[email protected] existing email address
[email protected]
[email protected]
AWS account name / alias
An Availability Zone is
composed of one or Region – ap-southeast-2
more data centers
Availability Availability Availability
Zone Zone Zone
Each region consists of
multiple Availability Zones
Availability Zone
AWS Local
Corporate data center Zone
VPC
AWS Outposts Availability Zone
Subnet
Outpost subnet
Instances
VPC
Low latency
Subnet
Servers
5G
© Digital Cloud Training | https://digitalcloud.training
AWS Global Infrastructure
Region
Availability Zone
Public subnet Private subnet
Redundant
Redundant Power
Networking Sources
Region
Edge Global
Amazon S3 location Users
Regional
Edge Cache
Edge
location
Global
Users
© Digital Cloud Training | https://digitalcloud.training
Deploying Services Globally
Region – us-east-1
Region – eu-west-1
Region – us-west-1
Region – ap-
southeast-2
Auto Scaling
Staff training Data encryption IAM User Network ACL SSL encryption Elastic load
EC2 Instance balancer
AWS RESPONSIBILITY
Server
Network router Disk drive
Port: 80/443
Protocol: HTTP(S)
Computer Amazon
Computer Amazon
The web server returns
the website content
Image downloaded
Amazon S3
HTTP PUT (s3:PutObject)
Image uploaded
Amazon S3
User searches
for flights
Fight aggregator
makes API calls to
airlines to find tickets
CAPEX OPEX
What
thought you
Wasted
needed
resources
What you
really needed
Data Center
Innovation
Management
RunInstances
User Role Federated Application
AWS IAM User Actions are
EC2
authorized
A principal is a person or application that on AWS
can make a request for an action or GetBucket resources
Console
operation on an AWS resource
S3
CLI
CreateUser
AWS determines whether Identity- Resource-
to authorize the request based policy based policy
API IAM
(allow/deny)
AWS Account
User
Identity-based policies
can be applied to users,
groups, and roles
API
Access keys are used for
programmatic access
AWS Account
sts:AssumeRole
IAM Role
Identity-based policies
can be applied to users,
groups, and roles Resource-based policies
User Group Role apply to resources such
as S3 buckets
Bucket Policy
S3 Bucket
© Digital Cloud Training | https://digitalcloud.training
Switching IAM Roles
AWS Account C
Azure AD
Limitations:
• OS is tied to hardware
• Underutilized resources
Application / Service App / Service • Higher costs
• Scalability constraints
Operating System Operating System • Longer deployment times
Hardware
Server
Application
Many VMs can run on the
Operating System
same physical hardware
Server
© Digital Cloud Training | https://digitalcloud.training
Server With Virtualization
Hypervisor
Server
© Digital Cloud Training | https://digitalcloud.training
Server Virtualization: Portability
Benefits:
• VM is portable
• Better resource utilization
• Lower costs
• Improved scalability
• Quick deployment times
Hypervisor Hypervisor
Server Server
© Digital Cloud Training | https://digitalcloud.training
Scaling Up vs Scaling Out
Stateless Stateful
No “state” is Amazon stores
recorded about information
the user's session about activity
eCommerce Application
eCommerce Application
Web service
Operating System
Web service
c5.xlarge, 4
vCPU, 8 GB
RAM
t2.micro, 1
vCPU, 1 GB
RAM
Scaling UP Scaling OUT
© Digital Cloud Training | https://digitalcloud.training
Which scaling model should be used?
Scale UP
Scale OUT
Network Card
Web Server 1
User 1
Web Server 2
Availability Zone
User 2
Load Balancer
Web Server 3
User 3
Web Server 4
© Digital Cloud Training | https://digitalcloud.training
High Availability and Fault Tolerance
Cloud
Availability Zone Think of an availability zone as
a separate data center
Web Server 5
Availability Zone
User 2
Auto Scaling Load Balancer
Web Server 3
User 3
Web Server 4
© Digital Cloud Training | https://digitalcloud.training
High Availability and Fault Tolerance
Cloud
Availability Zone Think of an availability zone as
a separate data center
Web Server 1
User 1
Web Server 5
User 2
Load Balancer
User 3
Durability Availability
Durability is protection Availability is a measurement
against: of:
• Data loss • The amount of time the
• Data corruption data is available to access
• S3 offers 11 9s durability • Expressed as a percent of
(99.999999999) time per year
• E.g. 99.99%
If you store 10 million objects in S3,
then you can expect to lose one
object every 10,000 years!
Type Description
Public IP address Lost when the instance is stopped
No charge
EC2 Instance
Private subnet
Internet
gateway
0.0.0.0/0 nat-gateway-id
Customized AMI
© Digital Cloud Training | https://digitalcloud.training
Connecting to
Amazon EC2
Private subnet
Policy
Private subnet
Policy
Limited to
16 KB
EC2 Instance with a web
service is launched
EC2 Instance
Configure VPC
Launch Template Launch Config
and Subnets
Instance 2
Auto Scaling
Availability Zone User 2
Elastic Load Balancer
Public subnet
Instance 3 User 3
User 1 is connected
to instance 4
Instance 4
Instance 2
Auto Scaling User 2
Availability Zone
Public subnet
ELB
User 3
Instance 3
Instance 4 User 4
Web Server
Port 1 Port 3
Port 2 Port 4
Ethernet / 802.1x
(2) Data Link Layer MAC: 00-B0-D0-63-C2-26 MAC: 00-1B-62-45-E2-83
NIC NIC
(1) Physical Layer Cat 8 Cat 8
RJ45 Port RJ45 Port
cable Layer 2 Switch cable
24.1.1.0/24 eth0
Web Server
11.2.1.0/24 eth1
Route Table
Layer 3
Routers
(3) Network Layer IP address: 24.1.1.25 IP address: 11.2.1.10
NIC NIC
(1) Physical Layer Cat 8 Cat 8
RJ45 Port RJ45 Port
cable Layer 2 Switch cable
Web Server
NIC NIC
(1) Physical Layer Cat 8 Cat 8
RJ45 Port RJ45 Port
cable Layer 2 Switch cable
(6) Presentation Layer Data SSL, FTP, SSH, HTML Data representation and encryption
(4) Transport Layer Segments TCP, UDP, TLS End-to-end connections and reliability
(3) Network Layer Packets IP, IPSec, ICMP Path determination (e.g. routing)
(1) Physical Layer Bits Coax, Fiber, Wireless Media, signal, binary transmission
OSI Layer
(5-7) Application Data (5-7) Data
TCP
(4) Transport Layer Data (4) Segments
Header
IP TCP
(3) Network Layer Data (3) Packets
Header Header
Ethernet IP TCP Ethernet
(2) Data Link Layer Data (2) Frames
Header Header Header Footer
Switch Switch
Router
192.168.0.5
10.0.0.5 10.0.0.3
192.168.0.3
192.168.0.4 10.0.0.4
Firewall Rules
IP Subnet A IP Subnet B
11000000 10101000
IP addresses are written in
dotted decimal notation
00000000 00000001
192 168 0 1
. . .
Network ID
24 bits
192.168.0.6 192.168.0.2
192.168.0.0/24
Region
Each subnet has a block of IP addresses You can create multiple VPCs
from the CIDR block within each region
10.0.3.0/24
AWS Cloud
VPC
Availability Zone
Public subnet
Amazon DynamoDB Amazon S3
MyVPC
CIDR 10.0.0.0/16
Main Route Table
us-east-1a us-east-1b Destination Target
Public-1A Public-1B
10.0.0.0/16 Local
10.0.1.0/24 10.0.2.0/24 0.0.0.0/0 igw-id
MyIGW
Availability Zone
Private subnet Public subnet
Security Security
Group B Group A
Security Groups NACLs apply at the
can be applied subnet level
to instances in Network ACL Network ACL
any subnet
Availability Zone
Router
Private subnet Public subnet Security
Security
Group B Group A NACLs apply only to
Security traffic entering /
Group A exiting the subnet
Network ACL Network ACL
Public Cloud The IT services that you consume are hosted and AWS, Microsoft Azure,
delivered from a third-party and accessed over the Google Cloud Platform
Internet
Hybrid Cloud A combination of on-premises, private cloud, and
public cloud services are consumed
Multicloud Usage of two or more public clouds at a time, and
possibly multiple private clouds
Data center
Benefits:
• Complete control of the
entire stack
• Security – in a few cases,
organizations may need to
keep all or some of their
applications and data in
Network & Firewall Virtualization Cluster Storage & Backup house
Corporate Office
Compute
Storage
Network Database
Internet
Data center
Internet
Public Cloud
Private Cloud
The Internet
Public Cloud
Private Cloud
Organization
© Digital Cloud Training | https://digitalcloud.training
AWS VPN and AWS
Direct Connect
VPC
CIDR: 10.0.0.0/16
Public subnet
Supports static routes or
A Virtual Private Gateway is BGP peering/routing
Corporate data center
deployed on the AWS side
CIDR: 192.168.0.0/16
Destination Target
192.168.0.0/16 vgw-id
A customer gateway is deployed
on the customer side
Disk Management
The Operating System
Volume D:
C: (OS) sees a volume. A
Hard drives are 8001000
GB GB200 GB volume can be
block-based partitioned and
storage systems formatted
Hard Disk
Drive (HDD)
NIC
Network Switch Network Attached
Storage Server (NAS)
There is no hierarchy
User uploads objects of objects in the
using a web browser container
Object Storage
Container
EC2 Instance
Volume
EC2 Instance
Snapshot taken to capture a
Snap A Snap B Snap C
point-in-time state of an instance
Snapshots are
incremental
Availability Zone B
Region Region
EC2 Instance
An object is a
file you upload
Object
Object
Internet EC2 Instance
An objects consists of: gateway
• Key (name of objects) Public Internet
• Version ID EC2 instances
Private subnet
• Value (actual data) connect using
• Metadata public addresses
• Subresources EC2 Instance
• Access control information
http://bucket.s3.aws-region.amazonaws.com
Relational Non-Relational
Organized by tables, rows and columns Varied data storage models
Supports complex queries and joins Unstructured, simple language that supports any kind
of schema
Amazon RDS, Oracle, MySQL, IBM DB2, PostgreSQL Amazon DynamoDB, MongoDB, Redis, Neo4j
SELECT FirstName
FROM employees
WHERE Location = Atlanta
Relational examples: Amazon RDS, Oracle, IBM DB2, Relational examples: Amazon RedShift, Teradata, HP
MySQL Vertica
Non-relational examples: MongoDB, Cassandra, Non-relational examples: Amazon EMR, MapReduce
Neo4j, HBase
COPY
COPY
COPY
Amazon RDS
M4 Instance
db.m4.2xlarge 4
M4 instance
vCPUs, 32 GiB RAM
db.m4.large 2 vCPUs,
8 GiB RAM The database must shut
down and restart
Availability Zone
NoSQL type of database Flexible schema, good for when data is not well structured or unpredictable
Horizontal scaling Seamless scalability to any scale with push button scaling or Auto Scaling
Transaction options Strongly consistent or eventually consistent reads, support for ACID transactions
Point-in-time recovery down to the second in last 35 days; On-demand backup
Backup
and restore
Global Tables Fully managed multi-region, multi-master solution
Tables
userid orderid book price date
Auto Scaling
AWS CloudFormation group
Public subnet
Component Description
Templates The JSON or YAML text file that contains the instructions for building out
the AWS environment
Stacks The entire environment described by the template and created, updated,
and deleted as a single unit
StackSets AWS CloudFormation StackSets extends the functionality of stacks by
enabling you to create, update, or delete stacks across multiple accounts
and regions with a single operation
Change Sets A summary of proposed changes to your stack that will allow you to see
how those changes might impact your existing resources before
implementing them
IaaS PaaS
Java Runtime
Availability Zone
Public subnet ALB
Applications:
• Contain environments, environment
configurations, and application
versions
• You can have multiple application
versions held within an application
Results returned
Developer to Developer
pushes code
Application Application
AWS CodePipeline
EB Environment
Node.js App
Developer
Latency is the amount of time it takes to send data from one point to
another measured in microseconds or milliseconds
52.134.26.12
DNS Server
© Digital Cloud Training | https://digitalcloud.training
Fully Qualified Domain Names (FQDNs)
Example is a subdomain com is an example of
a Top-Level Domain
mail is a subdomain
of google.com
CNAME Maps a domain name to another domain name (e.g. mail.dctlabs.com to mailserver1.net)
TXT Associates text with a domain name (used for verification, authorization etc.)
SRV Maps a domain name to a specific service or protocol (e.g. a Kerberos server)
SOA Start of Authority record stores important information about the domain
Amazon Route 53
.net example.com
.com dctlabs.com
.org
EC2 Instances
Amazon Route 53
A hosted zone represents a set of
records belonging to a domain
What’s the address
for example.com? example.com
Region
VPC
Address is 8.1.2.1
Availability Zone
Public subnet
Video is uploaded
to YouTube CDNs improve performance by
caching content closer to users
Edge location
Beach.jpg
doc.html
Users are directed to the
Regional
Edge Cache cached copy of content
Manual.pdf
CloudFront Distribution
Edge location
Custom Origin
Regional
CloudFront reduces latency
Edge Cache
and improves performance
Custom Origin
AWS WAF AWS Shield
ACL
Amazon CloudFront
Website
Windows OS
Docker Engine
Hypervisor Windows OS
Server Server
Windows OS
Server
Order Table
Containers and Functions: Code Customer Service REST API
runs in Docker containers and
Lambda functions for isolation, Notification Shipping
elasticity, and cost-efficiency
Payment Gateway REST API
Payment
Processor
Use of Application Programming Interfaces (APIs) Easier integrations between application components;
assists with loose coupling
Speed and agility Fast to deploy and update. Easy to include high availability
and fault tolerance for each microservice
}
"cpu": 10 Docker container Docker images can be Image Image
stored in Amazon ECR
"image": "wordpress",
"essential": true,
"portMappings": [
{
"containerPort": 80,
Task Task
"hostPort": 80
}
],
"memory": 500,
"cpu": 10
}
User uploads a
Serverless function
file through a
processes file SNS Topic
static website
Processed file is
stored in a bucket
S3 Bucket DynamoDB Table
Lambda
ENI Instance
Direct integration
Auto Scaling Group Auto Scaling Group
Decoupled integration
Auto Scaling Group EC2 instance Auto Scaling Group
polls SQS
SQS Queue
Email
SMS
Text
AWS Services
Custom Apps
Events
Targets
Order submitted
through browser Record of order
added to table
Record of order
added to table
DynamoDB Table
Submit a test event via
console and AWS CLI
Order information Function processes
placed in the queue message from queue
Microservices
Single application
entry point Booking Service
Account Service
Notification
Support Email
DynamoDB Table
Record of order
added to table
DynamoDB Table
Submit a test event via
console and AWS CLI
Order information Function processes
placed in the queue message from queue
Order submitted
through browser Record of order
added to table
AWS Services
Custom Apps
Events
Targets
EventBridge ingests, filters, transforms, and delivers
events to build loosely-coupled applications
Event Bus
Event Target
Event Bus
Event Target
Benefits: Concerns:
• Immediate assistance with • Check when the model was
questions trained, facts could be out of
• Context aware so you can date
have a conversation • Sometimes it’s wrong and
• Extremely broad training sometimes it “hallucinates”
data
Celebrity recognition
Upload to S3 triggers a
Lambda function
AWS Lambda Amazon Rekognition Amazon DynamoDB
A Lambda function
User uploads image processes the results
and creates an item in
DynamoDB
S3 Bucket
Amazon SNS AWS Lambda
Rekognition analyzes
the image
Upload to S3 triggers a
Lambda function
AWS Lambda Amazon Rekognition
Professional Specialty
Associate
Foundational
https://aws.amazon.com/certification/exams/
© Digital Cloud Training | https://digitalcloud.training
Take Action Now!
Prepare for your next AWS Build hands-on cloud Get ready for your next
certification with video skills in a secure cloud job with real-
courses & practice exams sandbox environment world projects in a
virtual classroom