CLF-C02 Exam Guide Slides
CLF-C02 Exam Guide Slides
• https://portal.tutorialsdojo.com/courses/aws-certified-
COURSE LINK cloud-practitioner-clf-c01-video-course/
Tutorials Dojo
www.tutorialsdojo.com
AWS Certified Cloud Practitioner
CLF-C02 Exam Overview
2013
CERTIFICATION PROGRAM
S T A R T E D
CLF-C01
2013 2023
CERTIFICATION PROGRAM
S T A R T E D
CLF-C01 CLF-C02
Multiple Choice
Multiple Response
• TASK STATEMENT #1
Tutorials Dojo
www.tutorialsdojo.com
Domain 1: Domain 2: Domain 3: Domain 4:
Cloud Concepts Security & Cloud Technology Billing, Pricing
Compliance & Services & Support
Tutorials Dojo
www.tutorialsdojo.com
AWS Overview
Tutorials Dojo
www.tutorialsdojo.com
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
Amazon
Web
Services
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
Amazon
Web
Services
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
Amazon
Web
Services
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
Amazon
Web = Cloud Service Provider
Services •
•
provides a cloud-based platform or cloud services
Allows you to rent out virtual servers that you access remotely
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
I need a car
$40,000
for just
vs
3$100
days Brand New Car
?
for my trip
$100
$40,000
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
Virtual Machines
Physical Servers
Storage Appliances
Network Devices
Available for RENT and accessible online via Web Service interfaces (REST, SOAP etc…)
WHAT WHEN WHY
is AWS? did AWS start? is AWS so popular?
2004
2004
Today
Data Center
er Data Center Data Center Data Center Data Center Data Center Data Center
Edge Networks
Improves the “Availability” Region Literally a
of your systems Geographic “Zone”
Availability Zone
Data Center
AVAILABILITY ZONE22
Availability Zone AVAILABILITY ZONE33
Availability Zone
Availability Zone
Data Center Data Center
Data Center
Region
Origin
Serve
r
Availability Zone
PoP
PoP
Go Global in Minutes
AWS Shared Responsibility
Model
A model for enabling ubiquitous,
convenient, on-demand network
access to a shared pool of
configurable computing
CLOUD COMPUTING
resources
that can be rapidly provisioned
and released with minimal
management effort
or service provider interaction.
Tutorials Dojo
www.tutorialsdojo.com
configurable computing resources
configurable computing resources
configurable computing resources
HOST COMPUTER
GUEST OS
HYPERVISOR
HOST OS
CUSTOMER DATA
CUSTOMER
PLATFORM, APPLICATIONS, IDENTITY & ACCESS MANAGEMENT
SOFTWARE
Who is responsible for applying the security patches of the guest operating system that your
EC2 instance is using?
Who is responsible for running the host operating system and the virtualization layer that
powers your Amazon EC2 instances?
Who is responsible for managing all your IAM user access and secret keys?
WHO? Who is responsible for maintaining the underlying server of your AWS Lambda functions?
Who is responsible for the Service and Communications Protection or Zone Security of your
data?
Who is responsible for the physical security of the servers and the entire network of data
centers of the AWS Global Infrastructure?
Who is responsible for designing encryption-at-rest strategies and other security features in
your Amazon RDS database?
Who is responsible for the security OF the cloud and the security IN the cloud?
HOST OS GUEST OS
CLIENT-SIDE
CLIENT-SIDE && SERVER-SIDE
SERVER-SIDE
DATA ENCRYPTION
ABSTRACTED
ABSTRACTED
SERVICES
ZONE SECURITY
INFRASTRUCTURE CONFIGURATION
CONFIGURATION
SECURITY MANAGEMENT
MANAGEMENT
IT CONTROLS
INHERITED
PHYSICAL & ENVIRONMENTAL
CUSTOMER-SPECIFIC
ZONE
SECURITY
SHARED
PATCH MANAGEMENT
PHYSICAL
HOST OS GUEST OS CUSTOM APPS
SERVERS
CONFIGURATION MANAGEMENT
Who is responsible for applying the security patches of the guest operating system that your
EC2 instance is using?
Who is responsible for running the host operating system and the virtualization layer that
powers your Amazon EC2 instances?
Who is responsible for managing all your IAM user access and secret keys?
Who is responsible for maintaining the underlying server of your AWS Lambda functions?
Who is responsible for the Service and Communications Protection or Zone Security of your
data?
Who is responsible for the physical security of the servers and the entire network of data
centers of the AWS Global Infrastructure?
Who is responsible for designing encryption-at-rest strategies and other security features in
your Amazon RDS database?
OF IN Who is responsible for the security OF the cloud and the security IN the cloud?
AWS Support Plans
PEOPLE
TOOLS
PROGRAMS
TECHNOLOGY
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
RESPONSE TIME
ARCHITECTURAL 30 DAY
GUIDANCE MINIMUM TERM
PROGRAMMATIC
CASE MANAGEMENT
3RD-PARTY
SOFTWARE SUPPORT CLOUD SUPPORT CLOUD SUPPORT
ASSOCIATES ENGINEERS
PROACTIVE SELF SERVICE
PROGRAMS
ACCOUNT
ASSISTANCE
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
• 24/7 access to the AWS customer service, documentation, whitepapers & AWS re:Post site
• Access to the core security & service quota checks in AWS Trusted Advisor LIMITED ACCESS
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
• Access to the core security & service quota checks in AWS Trusted Advisor LIMITED ACCESS
CLOUD SUPPORT
• Support provided by: ASSOCIATES
CLOUD SUPPORT
• Support provided by: ASSOCIATES
MON - FRI
RESPONSE
• General guidance: < 24 hours
SUPPORT AUTOMATION
WORKFLOWS (SAW)
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
BASIC PREMIUM
RUNBOOK RUNBOOK
AWS Systems Manager
BASIC
RUNBOOK
Tutorials Dojo
www.tutorialsdojo.com
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
CLOUD SUPPORT
• Support provided by: ENGINEERS
RESPONSE
• System impaired: < 12 hours
Tutorials Dojo
www.tutorialsdojo.com
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
3RD-PARTY
SOFTWARE SUPPORT
BASIC PREMIUM
SUPPORT AUTOMATION RUNBOOK RUNBOOK
WORKFLOWS (SAW)
AWSSupport- AWSPremiumSupport-
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
CONCIERGE SUPPORT
TEAM
• Primary contact for AWS Billing & AWS Support
• Consultative review
ARCHITECTURAL
GUIDANCE • Architectural Guidance based on your
applications (one-per-year only)
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
Tutorials Dojo
www.tutorialsdojo.com
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
< 24 hours
• General guidance:
RESPONSE
• System impaired: < 12 hours
INFRASTRUCTURE
EVENT MANAGEMENT
• Can be used for multiple corporate events
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
AWS SUPPORT
PROACTIVE SERVICES
• Workload reviews, best practices workshops, and deep
dives delivered by AWS Experts
ENTERPRISE
BASIC DEVELOPER BUSINESS ENTERPRISE
ON-RAMP
Advantages of Cloud Computing
Advantages of Cloud Computing
Tutorials Dojo
www.tutorialsdojo.com
Advantages of Cloud Computing
Go Global in Minutes
Advantages of Cloud Computing
SERVER UTILIZATION
M T W TH F SAT SUN
80% 100%
100% 50% 100%
50% 100%
20% 100%
20% 0% 0%
The bill remains CONSTANT
even if the utilization is LOW ON-PREMISES DATA CENTER
80% 100%
100% 50% 100%
50% 100%
20% 100%
20% 0% 0% SLOW PROCESS
NO FLEXIBILITY
FIXED EXPENSE: $10,000 per month L FOUWL LU T CI A
L IP ZAACT I I TOYN
HIGH
ADMINISTRATIVE
OVERHEAD
TO
NO DECOMMISSION
FLEXIBILITY THE SERVERS
–––––
SLOW PROCESS
Availability Zone 2
3 AVAILABILITY ZONE 3
Availability Zone 3
AVAILABILITY ZONE22
Availability Zone
Data Center
Data Center
Data
Center
Data Center
Availability Zone 2
3
MASSIVE
AVAILABILITY ZONE22
Availability Zone
Data Center
AVAILABILITY ZONE33
Availability Zone
$ 3.00
$ 6.00
$ 12.00
$6 Savings
Tutorials Dojo
www.tutorialsdojo.com
Advantages of Cloud Computing
Pay-As-You-Go Pricing
CPU: 30 Cores
200,000
100,000
150,000
50,000
75,000
RAM: 64 GB
NETWORK: 20 Gbps
CPU: 30 Cores
200,000
100,000
150,000
75,000
RAM: 64 GB
NETWORK: 20 Gbps
SCALE DOWN
SCALE IN
4 vCPU Cores
4 GB RAM
Large Amazon EC2
SCALE UP Instance Type
VERTICAL SCALING
SCALE DOWN
1 vCPU Core
HORIZONTAL SCALING
SCALE OUT
HORIZONTAL SCALING
Serverless = Less Server Management
Less Server Management
•Hastens the momentum of product deliveries, system •Easily shift to a totally new implementation
upgrades, and expansion
•Low cost to experiment, develop and test different
solutions
•Accelerates the pace of scaling the business by
removing time-consuming infrastructure tasks
•Removes the constraint of being limited by the
physical assets of the organization
•Ability to deploy an entire online solution in the
cloud with just a click of a button
•Have the leverage to use the various available
automation tools and features in the cloud
•Expedites software development process
•Gain more free time to explore various solutions
•Faster deployment of your IT infrastructure and
enterprise applications
Advantages of Cloud Computing
Tutorials Dojo
www.tutorialsdojo.com
Costs of Running a Data Center
PROVIDER
Data Center
Advantages of Cloud Computing
Go Global in Minutes
Content Delivery
Network
Consists of a global network of
point-of-presence locations
(PoPs) scattered in various
countries.
cloud architectural
? QUESTIONS
AWS Well-Architected
Design Principles
Pillar 1
Design Patterns
Pillar 3
Pillars Anti-Patterns
Pillar 4
Implementation Guide
Pillar 5
Risks
Pillar n...
Benefits
Best Practices
AWS Well-Architected
HOW DOES IT WORK?
Your Cloud Solution
DATA TRANSPORT
FIREWALL
IDENTITY & ACCESS NETWORK
MANAGEMENT
Your App
USER
Security Pillar
COMPUTE
GROUP
GROUP
ROLE
DATA
LAYER
AWS Well-Architected
HOW DOES IT WORK?
Your Cloud Solution
Security Pillar
DATA TRANSPORT
FIREWALL
IDENTITY & ACCESS NETWORK
MANAGEMENT
How do you protect your data at rest?
Your App
USER
COMPUTE
GROUP
GROUP
DATA
LAYER
AWS Well-Architected
TRADE-OFFS
AVERAGE COST
REQUIREMENTS
ENVIRONMENT
TRADE-OFF RELIABILITY
DEV
over
LOW COST
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected
TRADE-OFFS
REQUIREMENTS
TEST
DEV LOW NONE PCI-DSS
LOW COST
AWS Well-Architected
TRADE-OFFS
HIGH COST
REQUIREMENTS
MISSION-CRITICAL
APPLICATIONS
REQUIREMENTS
IN PRODUCTION, SECURITY IS
NOT USUALLY
TRADED-OFF WITH ANY OTHER
FACTORS
Covers Data Sovereignty
requirements
Abide by the Regional Rules that
needs to be strictly followed
Quickly establish a digital
presence in other countries while
Foreign Laws &
being compliant with its data
Security Requirements
protection and privacy laws
Example: General Data Protection
Regulation (GDPR)
Each country has its own data
privacy law with a unique data
residency and data sovereignty
requirements
The Pillars of the
AWS Well-Architected
Framework
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected
Framework Pillars
AWS Well-Architected
Framework Pillars
OPERATIONAL EXCELLENCE
SECURITY
RELIABILITY
PERFORMANCE EFFICIENCY
COST OPTIMIZATION
SUSTAINABILITY
AWS Well-Architected
OPERATIONAL EXCELLENCE PILLAR
Revolves around how you run your operations to deliver business value
Allows you to verify that your AWS workloads are operating excellently or
poorly
Provides the ability to:
• Effectively run workloads in AWS
• Gain helpful insight into your cloud operations
• Continuously improve your supporting processes & procedures
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected
SECURITY PILLAR
Granting the least privilege to your staff with the minimum permissions
required to perform a task
AWS Well-Architected
SECURITY PILLAR
Ensures your applications remain reliable even if there are traffic surges,
unexpected system changes, or natural disasters
Includes the ability to operate and test your AWS workloads throughout its
entire lifecycle
Verifies that your application has the ability to recover from service
disruptions, natural disasters, application failures, and other type of outages
Covers the ability to improve the performance factors efficiently to meet your
system requirements
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected
COST OPTIMIZATION PILLAR
Focuses on the ability to run your systems and deliver business value at the
lowest price point possible
• “...a type of development that meets the needs of the present without compromising the
ability of future generations to meet their own needs”
JUST A
PDF DOCUMENT!
AWS Well-Architected
Security Pillar
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected
Security Pillar
AWS Well-Architected
Tool 3 Apply Best Practices
AWS Well-Architected Tool: STEP #1
Define a Workload
Workload ?
AWS + On-Premises Workload s
Architectural
Design
Environment Type
Business Purpose
Scope
Review Owner
AWS Regions
Other Attributes
Lens
Lens Architectural
Design
Environment Type
Business Purpose
Scope
Review Owner
AWS Regions
Other Attributes
1 SPECIFY PROPERTIES
Tutorials Dojo
www.tutorialsdojo.com
1 SPECIFY PROPERTIES
1 SPECIFY PROPERTIES
AppRegistry
AWS Service
Catalog
1 SPECIFY PROPERTIES
AWS Trusted
Advisor
2 APPLY LENSES
Workload
Your Cloud Solution
Your App
Amazon
EC2
SELF-HOSTED DATABASE
AWS Well-Architected Tool: STEP #2
Automate runbooks/playbooks by
using the AWS Systems Manager
Automation service
Enable Amazon GuardDuty
Automate
runbooks/playbooks by using
the AWS Systems Manager
Automation service
AWS Well-Architected Tool: STEP #3
Tutorials Dojo
www.tutorialsdojo.com
AWS Well-Architected Framework Documentation
AWS Services Overview
Tutorials Dojo
www.tutorialsdojo.com
Host Run Real-Time
Web Apps Data Analytics
COMPUTE SERVICES
Amazon Route 53
Tutorials Dojo
www.tutorialsdojo.com
Amazon Elastic Container Amazon Elastic Kubernetes
Amazon EC2
Service Service
AWS Compute Services
Overview
AWS Compute Services
Tutorials Dojo
www.tutorialsdojo.com
Used by MULTIPLE Tenants / Customers Used by a SINGLE Customer
Network
Virtual
CPU
Storage
Instance
DEFAULT
VIRTUALIZATION
CUSTOM
VIRTUALIZATION
VIRTUALIZATION
Also called a
Virtual Machine Monitor
or a
Hypervisor
SHARED DEDICATED
Serverless Hybrid
CPU
SSH or RDP
Unlike
Amazon EC2
• A computing service that runs virtual servers in AWS
Guest
OS
Host
Amazon EC2 OS
Elastic Compute Cloud
• Flexible
• Customizable
• Scalable
Amazon EC2
Elastic Compute Cloud
Serverless
SSH connection
RUNTIME ENVIRONMENT
AWS Lambda
CUSTOM
Lambda function RUNTIME
Orchestration
Beanstalk
AWS Elastic
Beanstalk
Your Applications
AWS Elastic
Beanstalk
Your Applications
Beanstalk
• An easy-to-use Virtual Private Server (VPS)
Tutorials Dojo
www.tutorialsdojo.com
• A hybrid service that allows you to run AWS services, like Amazon
EC2, in your on-premises data center
AWS Outposts
AWS Outposts
AWS Container Services
Overview
AWS Container Services
CLI Tools
A2C
HYPERVISOR
CONTAINER ENGINE
HYPERVISOR
Host
Host
Host
OS
OS OS
Firmwar
e
• Amazon Elastic Container Service (Amazon ECS)
Amazon ECS
Amazon ECR
Storage Integration Scaling
ECS Task 1
Amazon ECS
Service Auto Scaling
Data
Data
Amazon SQS
Amazon ECS
Amazon EFS Amazon FSx
ECS Task 2
• Amazon Elastic Kubernetes Service (Amazon EKS)
• Containers are grouped into Pods — the basic operational unit for
Kubernetes.
• Works on:
Amazon ECR • Stores your docker images in a highly available and scalable
architecture
AWS App2Container • Configures the network ports and generates the ECS task and
(A2C) Kubernetes pod definitions.
Tutorials Dojo
www.tutorialsdojo.com
• Also a command-line tool, just like AWS App2Container (A2C)
Amazon FSx for Lustre Amazon FSx for Windows AWS Backup AWS Storage Gateway
File Server
Underlying Host Computer that
powers your .
• Uses the local disks or storage volumes that are physically attached to
the underlying host computer of the Amazon EC2 instance.
• Your data will still be there even if you stop, restart, or terminate
your Amazon EC2 instance, unlike:
Amazon EC2
Instance Store
Can be used as
Boot Volume for ? Yes No
Amazon EC2
Solid State Drive Hard Disk Drive
(SSD) (HDD)
EBS
Multi-Attach
Amazon EC2 Amazon EC2 Amazon EC2 Amazon EC2
Nitro-based Nitro-based Nitro-based Nitro-based
Instance Instance Instance Instance
Amazon EFS
Tutorials Dojo
www.tutorialsdojo.com
• An object storage service
For changing or
For frequently accessed data
unknown access patterns
S3 Standard S3 Intelligent-Tiering
S3
S3 Standard S3 Standard-IA Intelligent-Tiering S3 Glacier S3 Glacier
Lifecycle Policy S3 One Zone-IA
Deep Archive
Bucket Policy
Version
x.* - Prevent accidental data deletion in Amazon S3.
Amazon S3 Glacier
• Low-cost storage for data archiving and long-term backup.
S3 Standard
Vault
S3 Glacier
S3 Glacier vs Deep Archive
You will be billed for the entire 90 Days DATA DELETED AFTER You will be billed for the entire 180 Days
1 DAY (24 HOURS)
Regular storage usage charge DATA DELETED AFTER You will be billed for the entire 90 Days
(24 hours) 1 DAY (24 HOURS)
Regular storage usage charge DATA DELETED AFTER Regular storage usage charge
(90 days) 90 DAYS (90 Days)
Archive Retrieval Options EXPEDITED STANDARD BULK
• Uses the Network File System (NFS) protocol. Works as a file share
Amazon Elastic File System
(Amazon EFS)
• Only supports:
Linux Servers
Amazon FSx for
= Windows File Server
Amazon Elastic File System
(Amazon EFS)
Lifecycle Policy
30 Days
IA
• Only supports:
Linux Servers
Linu x Cluste r
=
open-source, parallel file system
• You can mount an Amazon FSX for Lustre file share to:
Microsoft Microsoft
Amazon FSx for
Windows File Server SharePoint SQL Server
Microsoft
Containers
• A fully managed backup service
Service-level backups
Service-level snapshots
AWS Backup Amazon Aurora Amazon RDS Amazon EBS AWS Storage
Gateway
VIRTUAL MACHINE
File Gateway Volume Gateway Tape Gateway
Store and retrieve objects in Amazon S3 Provides block storage to your on-premises apps
with low-latency via the A cloud-based Virtual Tape Library
using NFS and SMB protocols Internet Small Computer System Interface (iSCSI)
Amazon S3 Amazon S3
EBS Volumes
Can be integrated with: Uses for point-in-time snapshots of your Uses to back up the tapes
AWS Managed Microsoft
Microsoft AD Active Directory
Storage Area
Network - On-premises apps can connect to the
tape gateway as iSCSI devices
- Stores a subset of frequently - Stores entire dataset
To replicate your local data to Amazon S3
accessed data locally
- Asynchronously back up the data - Reduce costs by eliminating the use of
- Uses S3 as the primary storage to AWS. physical backup tapes
REPLICATE DATA MOVE DATA
INTEGRATION MIGRATION
Tutorials Dojo
AWS Database Services
Overview
A C I D
Atomicity Other
Consistency
Databases
Isolation
Durability
Relational NoSQL In-Memory
Amazon Keyspaces
Amazon ElastiCache
Amazon Neptune
DB Instance
VPC Endpoint
Amazon EC2
Amazon VPC
• You decide the actual time for the patches to be applied on
its maintenance window
security patch
DB Instance
Microsoft
Amazon Relational Database Service SQL Server
(Amazon RDS)
Amazon
PostgreSQL Aurora
Tutorials Dojo
www.tutorialsdojo.com
AWS Cloud
N. Virginia Region
Single AZ Multi-AZ
Availability Zone (AZ) 1 Availability Zone (AZ) 2 Availability Zone (AZ) 3
VPC A
Synchronous Replication
A sy
nch
ron
o us
PRIMARY PRIMARY Re STANDBY
plic
atio
n
READ REPLICA
AWS Cloud
N. Virginia Region
STANDBY
Asynchronous Replication
PRIMARY
PRIMARY
READ REPLICA
READ REPLICA
• A type of a database engine (that you can run on Amazon RDS) and
a fully managed database service.
Amazon S3
Amazon Redshift
NO RELATIONSHIP Relationship
Dynamo Table #1
JOINS
ATTRIBUTE ITEM
Dynamo Table #2
Amazon DynamoDB
ATTRIBUTE ITEM h ip
Foreign Key io ns
a t
R el
DOCUMENT
•
{
id: 1898, A fast, scalable, highly available MongoDB-compatible
gid: “tutorialsdojo1898”,
firstName: "Jose", database service.
lastName: "Rizal",
profile: {
•
nationality: “Filipino,
country: “Philippines,
birthPlace: “Laguna"
A document-oriented database program
}
}
• Cross-platform, NoSQL database
COLLECTION
Amazon DocumentDB
• A caching service
IN-MEMORY DATABASE
CACHED
NO CACHE
Amazon ElastiCache
• Faster than disk-based databases
Sub-millisecond latency
emcached
Data Partitioning
Can be integrated
to your apps with
minimal code change
emcached • Based on the open-source Memcached in-memory data store.
• Suitable for building a simple, scalable caching layer for your data-
intensive apps.
• Provides:
• Pub/Sub messaging
• Geospatial support
Amazon KeySpaces
• Run your Cassandra workloads on AWS without having to provision,
patch, or manage servers.
• A fast, reliable, fully-managed graph database service
• Makes it easy for you to build and run applications that work with
highly connected datasets
Time Series
Amazon Timestream
• Can be used to track stock prices, temperature measurements,
and the CPU utilization of an EC2 instance over a specific amount
of time.
• A fully managed ledger database service.
Infrastructure as Code
(IaC)
Hybrid Multi-Cloud
ROOT STACK
DATABASE STACK
STACK
APPLICATION STACK
CHANGE
CHANGE SET
DOJO DB DOGGO DB
STACK
AWS CloudFormation
• Environment Tiers:
AWS Elastic
Web Server Worker
Beanstalk
Tutorials Dojo
www.tutorialsdojo.com
Amazon VPC AWS Fargate Amazon ECS Anywhere
Serverless
Amazon EKS
On-premises data center
Support provided by
AWS Support
On-premises data center
Amazon EC2 AWS Fargate AWS Outposts Amazon EKS Anywhere Amazon EKS Distro
On-premises
Servers
Amazon EC2
Instances
AWS OpsWorks for Chef Automate
AWS OpsWorks
AWS OpsWorks Stacks
• A service that automates container & serverless deployment
• Grants developers the freedom to innovate but still within the set
guardrails that the security team implemented
Forecast
High
CPU Utilization
Today!
Amazon CloudWatch
Events Dashboards
• Collect metrics from various AWS Services and your custom
applications
Amazon CloudWatch • For Amazon EC2, the default frequency is every 5 minutes
METRICS
• Detailed Monitoring sends EC2 metrics data every 1 minute
L
o
g
s
• Primarily used for logs monitoring
L
o
g
s
Logs
CloudWatch
Logs Agent
Amazon CloudWatch • Allows you to publish and view your custom metrics
DASHBOARDS
L
o
g
s
REGIONS
RSS
SERVICE STATUS
• Does NOT show you the status of all the AWS services globally but
only the status of the AWS services that you have in your account.
• Shows the AWS Health events that might affect your applications
running on AWS such as scheduled maintenance or system outages
AWS Personal Health
Dashboard • Allows you to create alerts and notifications based on the health
of your AWS resources
• Provides programmatic access to the AWS Health information
that appears in your AWS Personal Health Dashboard
RESOURCE CHANGES
AWS Audit & Compliance Services
Amazon S3 Bucket
AWS CloudTrail
AWS CloudTrail
• ISO Reports
Tutorials Dojo
www.tutorialsdojo.com
• Provides a centralized & comprehensive view of the
security posture of your cloud infrastructure across multiple
AWS accounts
Amazon GuardDuty Amazon Inspector Amazon Macie AWS IAM Access AWS Firewall
Analyzer Manager
AWS Networking & Content Delivery Services
Overview
AWS Networking & Content Delivery Services
Also categorized as an
Application Integration Service
Amazon Virtual Private Cloud
CLOUD
REGION
Amazon VPC
INTERNET GATEWAY
Amazon EFS Amazon RDS Amazon FSx Amazon EC2
REGION
Public Internet
IPv4 CIDR Range: 10.0.0.0/16
ROUTE TABLE
IPv6 CIDR Range: 2001:db8:1234:1a00::/56
Amazon VPC
INTERNET GATEWAY
I’m an
Customer!
CUSTOMER GATEWAY
VIRTUAL PRIVATE GATEWAY
Amazon Virtual Private Cloud
CLOUD
Amazon VPC
VPC
VPC Peering
Amazon VPC
Virtual Devices
NETWORK VIRTUALIZATION
Physical Devices
Virtual Private Cloud
Amazon VPC
Public Internet
Local
VPC Extension Gatewa
y
AWS Outpost
CUSTOMER GATEWAY
Amazon VPC
Amazon S3
Amazon
DynamoDB
Amazon EC2
Other
Services
Amazon FSx
• Automatically distributes incoming traffic across multiple targets
such as:
HTTP / HTTPS
HTTP / HTTPS TCP / UDP
PROTOCOL LISTENERS IP TCP
gRPC TLS
SSL/TLS
Amazon Route 53
Elastic IP Amazon EC2 Amazon S3 Elastic Load Amazon CloudFront
address Instance Static Website Balancers Web Distributions
Buy Domains Manage Domains
Amazon Route 53
Also known as
Zone Apex or Naked
Domain
Root Domain
Subdomains
Amazon Route 53
Root Domain
Subdomains
Elastic IP
AWS Global Accelerator Network Application Amazon EC2
address
Load Balancer Load Balancer Instance
🇺 US East Region
Amazon EC2
Instance
Amazon EC2
Instance
🇦🇺 Sydney Region
Amazon EC2
Instance
Network
Load Balancer
Amazon EC2
Instance
🇺 US East Region
Amazon EC2
Instance
Amazon EC2
Instance
🇦🇺 Sydney Region
Amazon EC2
Instance
Network
Load Balancer
Amazon EC2
Instance
• A content delivery network (CDN) service
AWS PrivateLink
Other
Services
Amazon VPC Amazon EC2 Amazon S3 Amazon
DynamoDB
All are located within CLOUD
Amazon S3
Amazon VPC
VPC Endpoint
Amazon EC2
Other
Services
• AWS Virtual Private Network, or AWS VPN
CUSTOMER GATEWAY
AWS VPN
AWS VPN
Amazon VPC
AWS Direct Connect • You can group your virtual private gateways and private virtual
interfaces using a Direct Connect Gateway.
Amazon VPC
• The traffic does NOT pass through the public Internet.
Amazon EC2 Amazon EC2
Amazon VPC
On-premises data center
100s
• Connects your cloud networks (e.g. Amazon VPCs, VPNs, Direct
Connect Gateways, and on-premises networks) to a single gateway.
AWS Transit Gateway • Reduces the complexity of your infrastructure and makes scaling
easier
AWS
Site-to-Site VPN
• Allows you to publish, maintain, monitor, and secure your
RESTful APIs.
MONOLITHIC MICROSERVICES
UI UI UI
UE
QUE
USER INTERFACE
BUSINESS LOGIC
SERVICE 2 SERVICE 4
Application Integration Services
Amazon Simple Queue Service Amazon Simple Notification AWS Step Functions Amazon MQ
(Amazon SQS) Service (Amazon SNS)
ChangeMessageVisibility API
4
Amazon SQS 2 3 5
1 1 2 3 4
4 6
TYPES
Possible Duplicate Messages!
1 2 3 4
• Queue Depth
Target Tracking
Policy
ECS Task 1
Data
Amazon SQS
Amazon SQS
Amazon S3 Bucket
ECS Task 2
• A fully managed messaging and notification service
TOPIC
Pet Insurance
Car Insurance Home Insurance
Queue
Queue Queue
FANOUT EVENT NOTIFICATIONS
Message Filtering
Car Insurance Queue
Amazon EC2
TOPIC
QUOTE Type
Pet Insurance
AWS Lambda
Queue
FANOUT EVENT NOTIFICATIONS
QUOTE Type
Pet Insurance
Queue
AWS Lambda
Amazon CloudWatch
Tutorials Dojo
www.tutorialsdojo.com
• A serverless function orchestrator for:
AWS Lambda
Lambda
STEP 3 Send Report
Lambda
STEP 1 Register
• A managed message broker service
Amazon CloudWatch
• Uses the same service API, endpoint, and
EVENTS
the underlying service infrastructure of:
Amazon EventBridge • Recommended to be used for your own applications, 3rd party
Software-as-a-Service apps, and other external sources
AWS AppSync • Unlike REST API, you can query different APIs or resources
easily using a single API call
Amazon AppFlow • Allows you to run your data flows on-demand, by schedule or as
a response to a business event
DDOS
Distributed Denial-Of-Service Attack
UDP TCP
SYN SYN SYN SYN SYN SYN SYN SYN
IP
SYN ACK
• Allows you to create custom rules that block common attack patterns
such as:
XSS
</>
Tutorials Dojo
www.tutorialsdojo.com
• Has an IP Match condition feature, you can block malicious requests
from a recurring set of IP addresses.
(AWS WAF)
Amazon CloudFront
Rate-based
Web Access Control List
(Web ACL)
🇦🇺 🇧🇷
🇵🇭 🇮🇳 🇩🇪
Geo Match condition
🇬🇧 🇨🇦
Web Access Control List (ACL)
• A security management service designed for:
AWS WAF Rules
• Enables you to roll out your custom rules to your AWS Organization
Web ACL
Your AWS
Organization
Amazon Application Load Amazon API Amazon Application Load Amazon API
CloudFront Balancer Gateway CloudFront Balancer Gateway
• A managed DDoS protection service
• Two Tiers:
AWS Shield
• Built-in by default
• Standard
• No extra charge
AWS CloudHSM
• Enables you to easily generate and use your own encryption keys.
Amazon VPC
Other
AWS KMS key Amazon EBS Amazon S3 Amazon RDS Services
Snapshots Encryption Encryption
ENVELOPE ENCRYPTION
CMK
Amazon S3
bucket Other Services
AmazonName:
Macie
•
Jon Bonso
Social Security #: 06-12-1898 Recognizes sensitive data such as personally identifiable information
Driver License #: PH18981206 or PII.
Bank Account #: 12061898
•
Password: AdoBonGM4n0k
Email Address: [email protected]
Provides dashboards and alerts that give visibility into how sensitive
data is being accessed or moved.
• Provisions, manages, and deploys public and private Secure Sockets
Layer/Transport Layer Security (SSL/TLS) certificates
Tutorials Dojo
www.tutorialsdojo.com
• An automated security assessment service
E — ensure compliance
Tutorials Dojo
www.tutorialsdojo.com
• A suite of services that allows you to manage your resources
• Composed of:
OS Patches
OS OS OS
• Passwords
Secure String
• Database Strings
PARAMETER • Amazon Machine Image (AMI) IDs
• License Codes
Parameter Store
• Environment Variables
AWS KMS
• Enables you to easily and securely share your AWS resources
with any AWS account or within your AWS Organization
AWS Resource
Access Manager • Eliminates the need to create duplicate resources in multiple
(AWS RAM) accounts
AWS Config
EC2 Instance
I’ll pay
• Consolidate and centrally manage multiple AWS accounts
all the
bills!
SCP SCP • Uses Service Control Policies (SCP) to control access and
ORGANIZATIONAL UNIT (OU)
ensure organizational compliance across your AWS accounts
ORGANIZATIONAL UNIT (OU)
Manila Bangalore
SCP SCP
Tutorials Dojo
www.tutorialsdojo.com
• Empowers you to set up and centrally manage catalogs of
approved IT services
• Uses blueprints that follow AWS best practices for security and
management
Amazon Cognito
• The primary identity service in AWS
Tutorials Dojo
www.tutorialsdojo.com
IAM USER IAM GROUP
PASSWORD
ACCESS KEYS
IAM POLICY
Permission 1 Permission 2 Permission 3 Permission 4
IAM ROLE
Permission 1 Permission 2 Permission 3 Permission 4
• Let you add user sign-up, sign-in, and access control features
to your web or mobile apps
Amazon Cognito
Microsoft
SAML
Active Directory Security Assertion Markup Language
USER POOL IDENTITY POOL
• Provides a user portal that allows users to access the roles that
they can assume
AD Connector
AWS Transfer & Migration.
Services Overview
Tutorials Dojo
www.tutorialsdojo.com
AWS Transfer & Migration.Services
VM VM
INTEGRATION
Storage Area
Network
A suite of services that provides a simple and seamless file transfer
to Amazon S3
SFTP
AWS Transfer for SFTP
Secure File Transfer Protocol
FTPS
AWS Transfer for FTPS
File Transfer Protocol over SSL Amazon S3
AWS Transfer
Family
FTP
AWS Transfer for FTP
File Transfer Protocol
Provides physical storage devices and capacity points to help you
move your on-premises data to AWS
AWS Snowball
Family
4.5 lbs / 2.1 kgs 8 TB of Usable Storage Load data via NFS mount Uploads data to Amazon S3
AWS Snowcone
Tutorials Dojo
www.tutorialsdojo.com
- Over 1 foot in height
Around 50 lbs / 22.5 kgs 80 TB of Usable Storage - 11 inches wide Uploads data to Amazon S3
- 2.3 inches in length
AWS Snowball
Pulled by 45-foot long ruggedized - Move 100 Petabytes of data
Uploads data to Amazon S3
a semi-trailer truck shipping container - Exabyte-scale data transfer
AWS Snowmobile
• Helps enterprise customers plan migration projects
• Migrates your data to and from the most widely used commercial and
open-source databases
• Can be used along with AWS Schema Conversion Tool (AWS SCT)
AWS Database Migration
Service
(AWS DMS) • Supports both homogeneous (e.g. Oracle to Oracle, MySQL to MySQL) and
heterogeneous (e.g. Oracle to MySQL, MS SQL to Amazon Aurora) database
migrations
HETEROGENEOUS DATABASE MIGRATION
PostgreSQL
Amazon
Aurora
AWS Server Migration vCenter environment, to establish connection to your AWS resources
Service
(AWS SMS) • Automate, schedule, and track incremental replications of your
live server volumes
• A single place to discover your existing servers, plan migrations,
and track the status of each application migration
• DOES NOT execute actual data migration — only track its progress
• Shows the status of the servers and databases that you are
migrating
• A migration assessment service
• Helps customers to make the best business case for their mission-
critical AWS cloud planning and migration activities
Migration Evaluator • Creates a statistical model of compute patterns for all your
instances, that shows:
Amazon Rekognition Amazon Lookout for AWS Panorama Amazon SageMaker Amazon Kendra Amazon Personalize Amazon Translate
Vision
Amazon SageMaker
Amazon SageMaker Amazon SageMaker Amazon SageMaker Amazon SageMaker Amazon SageMaker
Canvas Studio Lab Ground Truth Built-In Models Notebook
• It can recognize:
Amazon Comprehend
• Can comprehend or understand the information written in
your text documents
Amazon Kendra
• Searches all of the documents in your S3 bucket, FSx file
systems, RDS databases, Github repository, Jira, Slack,
Sharepoint and other data sources
Amazon Personalize • Improves customer experience and sales since you can offer
products that your customers wanted
• A real-time language translation service
• For example:
• Use cases:
• Causal relationships
• Scans your code and detect a range of code defects like bad
exception handling, insecure CORS policy, path traversal,
hardcoded credentials et cetera
Amazon CodeGuru
• The lines of codes are generated right from your IDE editor
based on the comments that you write
Amazon CodeWhisperer
DEVOPS & MLOPS
COMMENTS
GENERATED LINES
OF CODES
Amazon CodeWhisperer
AWS Analytics Services
Overview
Data Warehouse Data Lake
STRUCTURED DATA UNSTRUCTURED DATA
STRUCTURED DATA
Tutorials Dojo
www.tutorialsdojo.com
Open Source Technologies used by AWS Analytics Services
Amazon Managed
Amazon Redshift AWS Data Pipeline AWS Glue AWS Lake Formation
Streaming for Apache Kafka
• A suite of services for processing your data streams
Amazon Kinesis
• Serverless
Tutorials Dojo
www.tutorialsdojo.com
• In near-real-time data processing and data querying
USE CASES for acquiring timely insights of your application
• You can expose a REST API using API Gateway that can
be used as an Amazon Kinesis proxy
• An interactive query service for your data that is
stored in Amazon S3
• Serverless
• Sample use case:
‣ A global eCommerce website stores 250 gigabytes of
transactional data each month in Amazon S3
Amazon Athena
• Can use an AWS Glue Data Catalog to store and
retrieve table metadata for your Amazon S3 data and
provide data visualization using Amazon QuickSight
• A fully managed Elasticsearch service
• ELK Stack:
‣ Elasticsearch - full-text search engine
• Lets you pay only for what you use (no upfront costs or
usage requirements)
• Allows you to run different types of big data
frameworks in AWS
Amazon
Elastic MapReduce
(Amazon EMR)
Apache Zeppelin
• Runs your big data framework on Amazon EC2
instances, Amazon Elastic Kubernetes Service clusters,
or in your on-premises EMR cluster via AWS Outposts
• Serverless
• A managed search service in AWS
IAM ENTITIES
TYPES:
- Root User
IAM USER - Regular IAM User Permission 1 Permission 2 Permission 3
IAM POLICY
AWS-managed Policy
IAM GROUP
Customer-managed Policy
IAM ROLE
Inline Policy
Grant Least Privilege
Follows the best
Doespractice
not grant
ofthe
granting
least privilege
the least privilege
IAM ROLE
IAM ROLE
GROUP
• PowerUserAccess
ROOT USER ACCESS
• AdministratorAccess
CloudFormation Templates
External User
• Use the Instance Profile to pass a specific IAM
role to your Amazon EC2 instance for it to
perform certain actions
curl http://169.254.169.254/latest/meta-data/iam/info
IAM ENTITIES
IAM USER
IAM GROUP
IAM ROLE
• Allows you to set the maximum
permissions that an identity-based policy
PERMISSIONS BOUNDARY can grant to an IAM entity.
IAM POLICY
IAM ROLE
IAM USER
IAM IDENTITIES
IAM GROUP
IAM ROLE
• An entity that represents an actual
person or a service
• NAME
• PASSWORD
IAM USER
Tutorials Dojo
www.tutorialsdojo.com
OR
AWS-managed Customer-managed
Permission 1
IAM USER
Permission 2
IAM POLICY
Permission 3
IAM POLICY TYPES
AWS-managed Customer-managed
• Cannot be nested
IAM GROUP
• It can only contain IAM users and not
other IAM Groups
IAM GROUP
Permission 2
IAM POLICY
Permission 3
assumed by
IAM ROLE
IAM ROLE IAM USER
• No long-term credentials
• Has long-term credentials:
• AWS Management Console
password
• Access Keys
US - AWS ACCOUNT #1 INDIA - AWS ACCOUNT #2
CROSS-ACCOUNT
IAM ROLE
Grants access to your resources
in one account to a trusted
CROSS-ACCOUNT principal in a different AWS
account
IAM ROLE AWS SERVICE ROLE Limited within your AWS account only
IAM USER
IAM ROLE
• Contains permissions that explicitly ALLOW or
DENY access to certain AWS services
Tutorials Dojo
www.tutorialsdojo.com
ALLOWS THE API ACTIONS
YOU SPECIFY
API action
IAM POLICY
DENIES THE API ACTIONS
API actions
IAM POLICY
IP Condition
Multi-Factor Authentication
(MFA)
API actions
IAM POLICY
MFA Condition
JSON EDITOR VISUAL EDITOR
Standalone Policy Inline Policy
• Resource-based Policies
• Permissions Boundaries
• Two Types:
Managed
Policies
Identity-Based Policy
• Can either be AWS managed or Customer-managed
Inline Policies
• Types:
Trust Policy
• Defines the maximum permissions that an
identity-based policy can grant to an IAM
entity
Permissions Boundaries
• Does not explicitly grant permissions
"Statement": [
{
"Sid": "AllowAllActionsOnBooksTable",
"Effect": "Allow",
"Action": "dynamodb:*",
"Resource": "arn:aws:dynamodb:us-west-2:123456789012:table/Books"
},
Statements Logical OR
{
"Sid": "ListObjectsInBucket",
"Effect": "Allow",
"Action": ["s3:ListBucket", "s3:DeleteObject"],
"Resource": ["arn:aws:s3:::tutorialsdojo-manila"]
}
]
}
IAM Statement Elements
{
“Sid” : "AllowActionsOnBooksTable", Statement ID
ALLOW or DENY “Effect” : “Allow",
“Principal” : { "AWS": "arn:aws:iam::123456789012:root" }
“Action” : [
“dynamodb:PutItem”,
“dynamodb:*”,
“dynamodb:UpdateItem”,
“s3:*”,
“dynamodb:DeleteItem”
“Resource” : “arn:aws:dynamodb:us-east-1:123456789012:table/Books”,
arn:aws:s3:::tutorialsdojo/*
“Condition” : {
“IpAddress”: {
CONDITION ELEMENT
“aws:SourceIp”: "220.110.16.0/20"
}
}
CONDITION ELEMENT
• String
• Numeric
• Date
• Boolean
• Binary
• ARN
• IfExists
• IpAddress
• …and many more!
CONDITION ELEMENT
• StringEqualsIfExists
IfExists
• NumericEqualsIfExists
• BoolIfExists
• IpAddressIfExists
• etc…
Tutorials Dojo
www.tutorialsdojo.com
Shares the Amazon S3 bucket named tutorialsdojo-manila with an external vendor while ensuring that
the bucket owner is still be able to access all objects
. . .
"Action": [
"s3:PutObject"
],
"Resource": “arn:aws:s3:::tutorialsdojo-manila/*”,
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
. . .
Users will be denied of all API actions ( except for the s3:PutObject action ) if
their multi-factor authentication (MFA) is not enabled
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "DenyAllTDojoUsersNotUsingMFA",
"Effect": "Deny",
"NotAction": “s3:PutObject",
"Resource": "*",
"Condition": {
"BoolIfExists": {
"aws:MultiFactorAuthPresent": "false"}
}
}]
}
IAM Policy Evaluation Logic
{
"Id": "TutorialsDojoPolicy1",
"Version": "2012-10-17",
"Statement": [
{ Will the API
action be
“Effect“: “Allow“, Allowed or
Denied?
Allows the API Action “Action“: “lambda:*“,
“Resource“: “*”
},
Logical OR
{
“Effect“: "Deny",
Denies the API Action “Action“: ["lambda:CreateFunction", "lambda:DeleteFunction"],
“Resource“: “*”
}
]
}
1. Authentication
Tutorials Dojo
www.tutorialsdojo.com
If the IAM policies are within a single account…
Permissions Boundaries
}
]
}
Amazon VPC Overview
US East (Ohio) us-east-2
Availability Zone 1
Data Center
Data Center
Availability Zone 3
Data Center
Amazon VPC
Data Center Data Center
REGION
Amazon
VPC
REGION
Amazon
VPC
For backend systems like databases or For publicly accessible web servers and
application servers that are not meant to be resources
accessed publicly
This subnet has a connection to the Internet
Gateway of the VPC
INTERNET GATEWAY
Anatomy of an Amazon VPC
CLOUD
AWS IAM
REGION
Amazon VPC
REGION
IPv4 CIDR Range: 10.0.0.0/16
ROUTE TABLE
IPv6 CIDR Range: 2001:db8:1234:1a00::/56
Amazon VPC
SUBNET 1
SUBNET 2
SUBNET 3
US East (Northern Virginia) us-east-1
us-east-1b
Ashburn 4
8 us-east-1a
Sterling
us-east-1c
Chantilly 4
CLOUD
Amazon VPC
AWS Lambda
VPC Endpoint
Amazon EC2
Amazon
DynamoDB
Other
Amazon S3
Services
Amazon S3 is not hosted in an Amazon VPC
• CIDR Block
• Subnets
• Route Table
• NAT Devices
/28 = 16 IP addresses
• AWS reserves a total of 5 IP addresses from
your CIDR block
CIDR 10.0.0.0/24
CIDR BLOCK
10.0.0.0 – Network Address
VPC A
Public subnet Public subnet
SUBNET
VPC A
Amazon EC2
• Internet Gateway
• Customer Gateway
Gateways
• Virtual Private Gateway
• Carrier Gateways
NAT Instance
Egress-only Gateway
NAT Gateway
• For VPCs that use AWS Wavelength to deliver
ultra-low latency applications for 5G devices.
REGION
Amazon VPC
INTERNET GATEWAY
AWS VPN
Amazon
Direct Connect
• There is a default VPC in each AWS Region
REGION
Default VPC
INTERNET GATEWAY
CLOUD
/20 = 4,096 Total IP addresses - Reserved AWS IPs= ~ 4,090 Usable IPs
Default VPC
172.31.0.0/20 172.31.0.32/20
172.31.0.16/20 172.31.0.48/20
0.0.0.0
INTERNET GATEWAY
CUSTOM AMAZON VPC
/28 = 16 Total IP addresses - 5 Reserved AWS IPs = 11 Usable IPs
Private subnet
Tutorials Dojo
www.tutorialsdojo.com
• A VPC with a single public subnet
Amazon VPC
• A VPC with a private subnet only and AWS VPN
Network Architecture Types
Hardware VPN Access
A VPC with a single public subnet
Amazon VPC
Public subnet
INTERNET GATEWAY
A VPC with public and private subnets
Amazon VPC
INTERNET GATEWAY
A VPC with public and private subnets and Hardware VPN Access
Amazon VPC
AWS VPN
Amazon VPC
Private subnet
VPC A
Public subnet Public subnet
Amazon EC2
CPU
MEMORY (RAM)
NETWORK
Your Computer
both have
Amazon EC2
SSD/HDD STORAGE
Amazon EFS Amazon FSx for Lustre Amazon FSx for Windows
File Server
OBJECT STORAGE
Amazon S3
NETWORK
Elastic IP Elastic Network Placement Elastic Network Elastic Fabric
Amazon VPC Interface (ENI) Groups
Address Adapter (ENA) Adapter (EFA)
Amazon Machine
DISK IMAGE Image (AMI)
Instance Purchasing Options
Amazon EC2
Underlying
Virtual Machines
Physical Servers of
Amazon EC2
Rack-mounted servers
Rack
INTERRUPTION
1 year at
INTERRUPTS
$1.5 / hour
(Automatically Terminates
Your Spot EC2 Instance)
• On-Demand
• Spot
• Reserved
• Capacity Reservation
Spot Instances
LOW Supply Spot Instances
=
HIGH Price
X Instance Type
SUPPLY DEMAND
LOWEST COST
Spare or
Unused EC2
Capacity
80
Unused
20
Capacity
SURPLUS
70
I want to order a
Spot Instances Spot
EC2 Instance for
Spare or
$1 / hour
Unused Capacity
$2 / hour
INTERRUPTS
(Automatically Terminates
Your Spot EC2 Instance)
Spot Instances
$ Spot Price
USE CASES • Handling the peak load or the additional load of your
application on top of your Reserved or On-Demand EC2
instances
Spot Instances
• Highly dynamic batch processing where each job:
Demand #1
Right now, I want to launch an EC2
Instance for my app!
NO
INTERRUPTIONS
• Running the master node and the core nodes of your Amazon
EMR cluster
Pay Minimum of
by the second 1 minute
Linux
Pay Minimum of
by the hour 1 hour
Windows
NO
$
INTERRUPTIONS
Has the highest cost among the The high price you pay ensures that your
other EC2 Instance Purchasing Options EC2 Instance will NOT be interrupted
Reserved Instances
Reserved Instances
FOR MISSION-CRITICAL
APPLICATIONS
CHEAPER THAN
ON-DEMAND INSTANCES
Reserved Instance
Marketplace
1 year
RESERVE 3 years
Pay the FULL Price Pay the PARTIAL Price Pay on a MONTHLY basis
Both can modify the attributes such as the Availability Zone or Network
Both can modify the Instance Size using other sizes within the same instance family
Regional Zonal
Dedicated Hosts &
Dedicated Instances
TENANCY
It’s like “renting” an entire house for your family,
which you are the sole tenant (single-tenant).
Dedicated Instance If you share a house with your friends or co-
workers, then there are multiple tenants (multi-
tenant).
Dedicated Host
• per-socket
• per-VM
A rack-mounted server / host • For performing cost analysis that supports physical
isolation of a customer workload
MATCH
Running EC2 Instances in your VPC
Mac Instances
CPU GRAPHICS
RAM
NETWORK
STORAGE OTHER
COMPONENTS…
CPU OPTIONS
AWS Graviton
INSTANCE
FAMILY
nano
micro
small
xlarge
metal
INSTANCE CATEGORIES INSTANCE FAMILY / TYPES
INSTANCE
FAMILY m6 . nano
micro
small
medium Indicates that you
GENERATION large are using a
bare metal type
xlarge (non-virtualized)
metal
INSTANCE TYPE NAMING CONVENTION
m5 5th GENERATION
m6 6th GENERATION
**a
AWS
**g Graviton
INSTANCE TYPE NAMING CONVENTION
t3a
AWS
m6g Graviton
t3, m5, r5
INSTANCE TYPE NAMING CONVENTION
BURST ZONE
• A sort of ‘vertical scaling’ since it temporarily
100 provides higher CPU performance over the
maximum CPU capacity of the instance
0
10 AM 11 AM 12 PM 1 PM
INSTANCE TYPE NAMING CONVENTION
EC2 Instance
AMI
DISK IMAGE
Amazon Machine Image
DISK IMAGE
(AMI)
Amazon Machine Image
(AMI)
BLOCK STORE TYPE Volume Snapshots Block Device Mapping Launch Permissions
• Explicit
• Implicit
N/A
VPC A VPC A
COPY AMI
AWS Marketplace
Amazon Machine Image
(AMI)
Amazon SQS
Target Tracking
Policy
EC2
Instance
User Data
Amazon EFS Auto Scaling Group
User Data
• Must be in a base64-encoded format
http://169.254.169.254/latest/user-data
User Data
VIRTUALIZATION
MANIFEST EC2
METADATA
• AMI
• Hostname
• Public IP address
• Private IP address
INSTANCE METADATA
• Instance type
• MAC address
• Security groups
• Security credentials
http://169.254.169.254/latest/meta-data/
Session Oriented
CATEGORIES
Private IP Address
Public IP or Elastic IP Address
Media Access Control (MAC) Address
Security Groups
Instance Profile
Amazon EC2 Networking
PUBLIC INTERNET
EC2
PRIVATE NETWORK
in AWS
Powered by Physical
Networking Devices
EC2
VIRTUAL PHYSICAL
Network Interface Card Network Interface Card
EC2
IP Addressing Elastic Network Interface
PHYSICAL VIRTUAL
EC2
• Custom description
EC2
Private
192.168.2.5
Private
192.168.3.6 EC2
CIDR
• Classless Inter-Domain Routing
• A method for allocating IP addresses
• Also used for IP Routing
IPv4 Address
EC2
IPv6 Address
Private
192.168.2.5
Request For Comments 1918
Private
192.168.2.5
RFC 1918
Private
Private IP Address
Private
Private IP Address RFC 1918
Class A 10.0.0.0 /8
10.0.0.0 – 10.255.255.255
172.16.0.0 – 172.31.255.255
192.168.0.0 – 192.168.255.255
Private
Private IP Address
10.0.*.*
172.16.*.*
192.168.*.*
Private
Private IP Address
10.0.*.*
172.16.*.*
192.168.*.*
CIDR 192.168.68.0/24
Private Private
192.168.68.107 192.168.1.11
ip-10-251-50-12.ec2.internal
Public
Public IP Address
Public
Public IP Address
Dynamic IP Address
Your
Account
Static IP Address
Elastic IP Address
ec2-136-158-28-50.compute-1.amazonaws.com
Elastic IP Address
• Provides:
Enhanced Networking
• Higher bandwidth
SUBNET
VPC A
Security Group
N. Virginia Region
AWS
Cloud
Network ACL Network ACL Network ACL
Availability
SUBNET Zone
1 1 Availability
SUBNET Zone
2 2 Availability
SUBNET Zone
3 3
VPC A
SUBNET 1 SUBNET 2
Default Network ACL Custom Network ACL
VPC A
• Deny Traffic
TYPES
Outbound Rules
Ephemeral Ports
Tutorials Dojo
www.tutorialsdojo.com
Network ACL
SUBNET 2
EC2
Security Groups
• A virtual firewall that controls the incoming and
outgoing traffic of one or more EC2 instances
TCP UDP
7 Open Systems Interconnection
(OSI) Model Layers
HTTP : 80 MSSQL : 1433 RDP : 3389
SMB : 445
TCP
TCP
ICMP - Ping
You can only Whitelisting
• Allow Traffic
Default Security Group Custom Security Group
• Has one inbound rule and one outbound rule • You manually have to create
by default
• Has a default outbound rule that allows all
traffic
• Will be attached to your EC2 instance if you
didn’t specify a particular security group
• Doesn’t have a default inbound rule
• Automatically allows incoming traffic from any
resource that also uses the default security • Denies all inbound and outbound traffic by
group default
• Allow Traffic
Security Groups
Security Group
STATEFUL
Security Groups
Amazon Aurora Amazon ElastiCache
AWS Web Application
Firewall (AWS WAF)
Security Groups
• You can’t apply a security group or network ACL to
+
your Amazon S3 buckets
Security Groups
Availability Zone 1
Data Center
I’ll
place
you…
Data Center
Availability Zone 3
Data Center
Data Center
US East (Ohio)
us-east-2
Data Center
Availability Zone 3
Data Center
Data Center
US East (Ohio)
us-east-2
Availability Zone 3
Placement Groups
CLUSTER PARTITION SPREAD
Availability Zone
CLUSTER
Group of rack servers on a network building block with special routing configuration
Availability Zone
Partition 1
PARTITION
SPREAD
Placement Group
EC2 EC2 EC2
Publicsubnet
Private subnet
AMI
Private subnet
Public subnet
SSD/HDD STORAGE
Amazon EC2
NETWORK BANDWIDTH
On-premises data center
300 GB
Large Amazon EC2
SCALE UP Instance Type
VERTICAL SCALING
SCALE DOWN
10 vCPU
HORIZONTAL SCALING
SCALE IN
Amazon Machine
Image (AMI)
SCALE OUT
HORIZONTAL SCALING
SCALE IN
SCALE OUT
HORIZONTAL SCALING
SCALE IN
HORIZONTAL SCALING
Amazon EC2
Auto Scaling
AUTO SCALING GROUP
CONFIGURATION TEMPLATE
Amazon EC2
Auto Scaling
SCALING OPTION
• Organizes your Amazon EC2 instances into
groups
• Launch Template
• Launch Configuration
• Dynamic
• Predictive
• Scheduled
NOT YET
READY
READY
TO ACCEPT CONNECTIONS!
CONNECTIONS
Auto Scaling group
1
2
3
4
5
CPU UTILIZATION
COOL DOWN
Auto Scaling
Group
• Automatically increases or decreases the
current capacity of your Amazon EC2 Auto
Scaling group based on a set of scaling
adjustments, also known as step
adjustments
TARGET TRACKING
Auto Scaling
Group
TARGET TRACKING WORKS LIKE A THERMOSTAT!
• If you’ve determined the optimal
performance of your web application
and you want to maintain its desired
performance across all EC2 instances
of your Auto Scaling group
Git Hook
PASS FAIL
Hooks
Run Integration Tests
REACT COMPONENT LIFECYCLE
Hooks
ANGULAR COMPONENT LIFECYCLE
Amazon EC2 Instance Lifecycle
AMI pending
Pending:Proceed
shutting-down
Terminating:Wait
terminated
Terminating:Proceed
Amazon EC2 Instance Lifecycle
Pending:Wait Terminating:Wait
Amazon EBS-Backed
terminatedEC2 Instances Only
pending Pending:Wait
AMI pending
Pending:Proceed
• During the scale-out event of your Auto • During the scale-in event of your Auto
Scaling group, you can:
rebooting running Scaling group,
stoppingyou can: stopped
• Ensure that your new EC2 instances • Pause the instance termination for a
download the latest code base from your certain amount of time to upload all the
repository remaining data logs before the instance
shutting-down gets completely terminated
• Verify that your EC2 user data has been
successfully completed first before the • Execute a custom shell script
instance can start accepting traffic
Terminated:Wait • You have to use the Terminating:Wait
• You have to use the Pending:Wait
terminated lifecycle hook for these use cases
lifecycle hook for this particular
Terminated:Proceed
scenario
Amazon EBS Overview
• EBS stands for Elastic Block Store
divided by
BLOCK
Block Size: 4 kb
BLOCK
BLOCK BLOCK
RAID 0 RAID 1
• Divides a body of data into blocks and • Duplicates data to provide more
then spreads the data blocks across durability and availability
multiple storage devices
• Suitable if data redundancy is your
• Suitable if I/O performance is your focus
priority
Solid State Drive Hard Disk Drive
(SSD) (HDD)
Can be used as
Boot Volume for ? Yes No
Amazon EC2
• An incremental backup that internally uses
Amazon S3 to persist your data
OTHER DATA
VOLUMES
sc Cold HDD
Hard Disk Drive
(HDD)
Amazon EC2 AWS Lambda Amazon EKS Amazon ECS AWS Fargate Custom IP
Instances Functions Clusters Tasks Tasks Addresses
WEBSITE STATUS:
SIMPLE ROUTING POLICY
DOWN!
UP
52.44.107.223
WEIGHTED
MULTIVALUE ANSWER
ROUTING
ROUTINGPOLICY
POLICY
The distribution of the incoming load
traffic is not balanced across the
underlying servers
40% 60%
The traffic is distributed randomly
No routing algorithm
OVERUTILIZED SERVERS UNDERUTILIZED SERVERS
Lacks security features
CPU Utilization: Over 100%
CLOUD
REGION
AZ 1 AZ 2
Load Balancer
Balanced distribution
of incoming traffic
through the use of
routing algorithm
Application Network Gateway Classic
Elastic Load Balancing Load Balancer Load Balancer Load Balancer Load Balancer
TYPES ( ALB ) ( NLB ) ( GWLB ) ( CLB )
HTTP / HTTPS
TCP / UDP
HTTP / HTTPS IP TCP
PROTOCOL LISTENERS TLS
gRPC SSL/TLS
http://tutorialsdojo.com
LISTENER TARGET
https://tutorialsdojo.com
Amazon EC2 AWS Lambda Amazon EKS
Instances Functions Clusters
TARGET
TARGET GROUP
HTTPS 443
https://tutorialsdojo.com
TARGET
GROU
LISTENER P
CLOUD
US-EAST-1 REGION
ELB
ELB ELB
RequestCountPerTarget
No Auto Scaling
Auto Scaling group group
Manual Process
Amazon Elastic Load Balancing
TYPES
Application Load Balancer Network Load Balancer
• Target types:
Application Load Balancer
Amazon EC2 AWS Lambda
Instance Function IP Address
Slow Start
tutorialsdojo.com
portal.tutorialsdojo.com
• Host condition app.tutorialsdojo.com
*.tutorialsdojo.com
• HTTP Header
User-Agent
Content-Type
/img/
Application Load Balancer /doc/cebu
• Path
/pdf/*/report
/info?version=1
• Query String
/health?status=manila
/account?id=123&alias=pogi
• Source IP
192.0.2.0, 198.51.100.10
• For load balancing TCP, UDP, and TLS traffic
• Uses the TCP and UDP transport protocols not HTTP and
HTTPS
OBJECT BUCKET
• The S3 bucket name is globally unique
• Example:
• Example:
Object key name
Amazon S3 Folders
and Prefixes tutorialsdojo/aws.jpeg
Prefix Filename
AWS
Cloud
N. Virginia Region
YOUR
VPC
AVAILABILITY 99.99%
DURABILITY 99.999999999%
• The probability that an object remains
intact and accessible after a period of one
year
DURABILITY
0.000000001% chance
99.999999999% of data loss per year or one lost data
every 10 million years
Amazon S3 Storage Classes
For changing or
For frequently accessed data
unknown access patterns
S3 Standard S3 Intelligent-
Tiering
S3
S3 Standard Intelligent-Tiering S3 Glacier S3 Glacier
S3 Standard-IA S3 One Zone-IA Deep Archive
• Launch a static website with HTML pages,
downloadable packages, images, media files,
or other client-side scripts
EC2
• Attached/Mounted to
• Invoked via a REST API
the Amazon EC2
request call
instance
Versio
n
x.* - Prevent accidental data deletion in Amazon S3
S3 Standard S3 Intelligent-Tiering
• 99.99% Availability
•
USE CASES
As a data store for your Disaster
Recovery (DR) files
• 99.99% Availability
• Lowest-cost retrieval
• Quickly access a subset of • Default option for option
your data archives retrieval requests
• Retrieves large amounts
• Allows you to access your • Allows you to access any of data archive in less
archived data within 1 - 5 of your glacier archives than half a day
minutes ( file size should within 3 – 5 hours
NOT exceed 250 MB ) • Typically completes the
process within 5 – 12
• Ensure sufficient retrieval hours
capacity for your Expedited
retrieval operations by
purchasing provisioned
capacity
• The lowest-cost storage class in
Amazon S3.
• 99.99% Availability
• 180-day minimum storage duration
charge ( roughly 6 months )
STANDARD BULK
S3 Glacier S3 Standard
• The specific amount of time that your
objects must be stored in a particular
storage class
Non-reproducible and frequently-accessed data that needs to be temporarily stored for hours only
S3 Glacier S3 Standard
S3 Glacier
S3 Glacier vs Deep Archive
Normal storage usage DATA DELETED AFTER You will be billed for the entire 180
charge 90 DAYS Days
DATA LAKE
Amazon Redshift
AWS Glue Amazon Athena Amazon EMR
Spectrum
S3 Event Notifications
• New Object Creation
• Object Deletion
• Replication events
Amazon SNS Amazon SQS AWS Lambda
Microsoft
SQL Server
Amazon RDS
Amazon
PostgreSQL Aurora
• Can be deployed using:
DB Instance
Amazon EC2
Amazon VPC
Self-Hosted Database Amazon RDS Database
Amazon EC2
MANAGED BY Self-Hosted Database Amazon RDS Database
Amazon EC2
• Patching
• Scaling
• Patching
• Scaling
• Physical Infrastructure
• Taking database backups
• Virtualization layer
• Ensuring high availability
• Host OS of the EC2
instance • Replication
• Monitoring
Self-Hosted Database Amazon RDS Database
Amazon EC2
• Can be directly accessed via SSH, RDP • The underlying EC2 instance CANNOT
or other connections be directly accessed via SSH or RDP
/etc/mysql/my.cnf
ConfigurationFile.ini
Read-Only setting
Self-Hosted Database Amazon RDS Database
Amazon EC2
• You have full access to the virtual • Modify the database configuration via:
machine and the underlying database
• You are responsible for making your Parameter Group Options Group
database highly available, fault-
tolerant and secure
• You have to apply the OS patches as • You can choose the actual time when
well as the Database Engine patches Amazon RDS will apply the DB
regularly patches in its maintenance window
• You will handle all of the database • Database maintenance tasks are
administrative tasks handled automatically
Self-Hosted Database Amazon RDS Database
Amazon EC2
Microsoft
SQL Server
AWS
Cloud
N. Virginia Region
Single AZ Multi-AZ
read_only
s
Availability Zone (AZ) 1 Availability Zone (AZ) 2 Availability Zone (AZ) 3
VPC A
Synchronous Replication
s
A sy
nch
ron
o us
PRIMARY PRIMARY Re STANDBY
plic
atio
n
READ REPLICA
AWS
Cloud
N. Virginia Region
Single AZ Multi-AZ
VPC A
Synchronous Replication
A sy
nch
ron
o us
PRIMARY PRIMARY Re STANDBY
plic
atio
n
READ REPLICA
AWS
Cloud
N. Virginia Region
VPC A VPC B
STANDBY
Asynchronous Replication
PRIMARY
PRIMARY
READ REPLICA
READ REPLICA
Amazon RDS OLTP Applications
C ONSISTENT
Amazon RDS
I SOLATED
D URABLE
• A fully managed, highly available
database proxy
Inbound Outbound
Rules Rules EC2
TCP : 3306
Instances
Security Groups
Parameter Groups
Snapshots
Clusters
Cluster Snapshots
SOURCE TYPE
EVENT CATEGORIES
SOURCE TYPE
EVENT CATEGORIES
Amazon SNS
TARGET TYPE
VPC A VPC B
REPLICA
a copy of your primary database
Two-Way
Two-Way One-Way
UPDATE CITIES
SET City= 'Mumbai'
WHERE CITY_ID = 1;
PRIMARY STANDBY REPLICA
UPDATE CITIES
SET City= 'Chicago'
WHERE CITY_ID = 2;
MASTER-SLAVE
STANDALONE
CONFIGURATION
Read Replica
Multi-AZ Deployments
SAME DB ENDPOINT
A Standby Instance
can’t be deployed
to another AWS
Region
PRIMARY STANDBY REPLICA
NEW PRIMARY
A Standby Instance
can’t be deployed
to another AWS
Region
PRIMARY STANDBY REPLICA
DIFFERENT DB ENDPOINT
VPC A VPC A
Amazon RDS
VPC B
Multi-AZ Deployments
Configuration
A Standby Instance
can’t be deployed
to another AWS
Region
PRIMARY STANDBY REPLICA
DIFFERENT DB ENDPOINT
VPC A VPC A
Amazon RDS
VPC B
Multi-AZ Deployments
Configuration
A Standby Instance
can’t be deployed
to another AWS
Region
PRIMARY STANDBY REPLICA
DIFFERENT DB ENDPOINT
• Improved architecture:
USE CASES
Launch an Auto Scaling group of EC2
instances behind an Application Load
Balancer that spans multiple AZs
STANDBY REPLICA
PRIMARY
• The Standby Replica cannot be used to read or
write your application data, or accept live traffic
LIMITATIONS
Amazon Aurora
Global Databases
Amazon RDS Read Replica
MASTER-SLAVE
STANDALONE
CONFIGURATION
S S
SOURCE Multi-Master Configuration
REPLICA
Primary
M M
S S Secondary S S
READ REPLICA
REPLICA
STANDBY REPLICA a copy of something READ REPLICA
SYNCHRONOUS ASYNCHRONOUS
REPLICATION REPLICATION
o n
t i 1-
ic a W
pl PRIMARY
ay
Re Re
ay pl
- W ica
2 tio
n
Microsoft
SQL Server
PostgreSQL
• A binary log
CROSS-REGION
READ REPLICA
PRIMARY
READ REPLICA
Amazon Aurora Overview
Amazon RDS
Amazon Aurora
PostgreSQL
• Can automatically grow or scale its storage
• A cluster consists:
Single-master Multi-master
STANDALONE TYPE
Amazon Aurora
Single primary DB instance
with no replica
• Performs faster than other databases
Cluster endpoint
Reader endpoint
Custom endpoint
Amazon Aurora
ENDPOINTS
Instance endpoint
• Recommended for sporadic usage workloads or with
unpredictable usage
Availability Zone (AZ) 1 Availability Zone (AZ) 2 Availability Zone (AZ) 1 Availability Zone (AZ) 2
Writer/Re
Reader Reader Reader
ader
RTO
Amazon Aurora
Global Databases
• For applications with well-defined schema that • For applications that require a flexible schema
does NOT change too often that changes too often
• Has hundreds or thousands of tables • Does not have any related tables or table joins
• Tables having foreign keys • Provides high throughput and performance for
your global applications
• Support complex SQL queries
• Can scale better than relational databases
• Tables having a relationship with other tables
• Can be used if you are unsure of the database
• Has ACID properties
A tomicity schema that you will implement
C onsistency
• Suitable if you expect to make a lot of database
I solation
changes as your website or application grows
D urability
• Does not have ACID properties by default
• Perfect for transactional workloads
• A fully managed NoSQL database
• Serverless
Amazon DynamoDB
• Highly durable database
ULTRA-FAST PERFORMANCE
DynamoDB Table
• All data is stored in a single table only
Amazon DynamoDB
Dynamo • Capable of accepting millions of
requests per second globally
TABLE TABLE
ROW ITEM
COLUMN ATTRIBUTE
ARRAY LIST
• Queries data over a single partition only (localized)
US East 3 US East 4
• A data stream that captures each and every
data change made to the items
TransactGetItems
"Statement": [
{
"Sid": "AllowAccessToBooksTable",
"Effect": "Allow",
"Action": [
Amazon DynamoDB "dynamodb:Get*",
Management "dynamodb:BatchWrite*",
"dynamodb:CreateTable",
"dynamodb:Delete*",
"dynamodb:Update*",
“dynamodb:PutItem" ],
"Resource": “arn:aws:dynamodb:us-west-2:12345:table/Books"
}
]
}
Tutorials Dojo
www.tutorialsdojo.com
• Automated backup process
• No continuous backups
US East 3 US East 4
DynamoDB Global Tables
AWS
Cloud
US East 1 US East 2
DynamoDB Streams
US East 3 US East 4
TABLE PRIMARY KEY
ITEM
SECONDARY INDEX
PRIMARY KEY
PARTITION KEY
PARTITION KEY +
SORT KEY
• Makes your queries run faster!
SECONDARY INDEX
• Provides more flexibility and performance
improvement to your queries
Tutorials Dojo
www.tutorialsdojo.com
• Similar to the INDEX of MySQL, Oracle, SQL
Server, and other relational databases
SECONDARY INDEX
• Primarily used to make your queries FASTER!
Application Integration
Application Integration
Overview
Application Integration
Distributed Architecture
Application Integration
Empowers the migration from
MONO
LITH
Monolithic Architecture Distributed Architecture
TIGHTLY-COUPLED
USER INTERFACE
TIGHTLY-COUPLED LOOSELY-COUPLED
USER INTERFACE
USER INTERFACE
SERVICE 2 SERVICE 4
Distributed Architecture
LOOSELY-COUPLED
API Gateway
ASYNCHRONOUS
SERVICE 2 SERVICE 4
Distributed Architecture
LOOSELY-COUPLED
API Gateway
SERVICE 2 SERVICE 4
•
MESSAGE
Sends the items to the consumers for processing
4
2 3 5
1 1 2 3 4
Amazon SQS 4 6
DELAY
DELIVERY DELAY
Amazon SQS QUEUE
SETTINGS
RECEIVEMESSAGE WAIT TIME
TEMPORARY
QUEUE
ACCESS POLICY
TEMPORARY QUEUE CLIENT
ENCRYPTION
"Version": "2012-10-17",
"Id": “Banana_Queue1_Policy_UUID”,
Amazon SQS "Statement": [{
SECURITY "Sid":"JonBonsoQueue1_SendMessage",
"Effect": "Allow",
"Principal": {
ACCESS POLICY
"AWS": [
"111122223333"
},
"Action": "sqs:SendMessage",
"Resource": “arn:aws:sqs:us-east-2:1234:bananaqueue"
}]
}
AWS Lambda LAMBDA TRIGGER
Amazon SQS
INTEGRATION Amazon S3 S3 EVENT NOTIFICATION
INTER-CONTAINER
Amazon ECS & EKS COMMUNICATION
Amazon SNS Overview
NOTIFICATION
NOTIFICATION
?!?
4 4
NOTIFICATION
Amazon SNS
SNS TOPIC
SUBSCRIBERS
SQS Queue A
SNS TOPIC
SQS Queue B
SQS Queue C
AWS Lambda
Function
APPLICATION TO APPLICATION MESSAGING
SQS Queue A
SNS TOPIC
SQS Queue B
Support Manager
Amazon SNS Types
Standard FIFO
Amazon SNS Encryption
ENCRYPTION
{
"Statement": [{
"Sid": “TutorialsDojo-Allow-SNS-SendMessage",
"Effect": "Allow",
"Principal": {
MESSAGE FANOUT
MESSAGE DURABILITY
MESSAGE ENCRYPTION
MESSAGE ARCHIVING
Amazon SNS Features
Redrive Policy
AWS Amplify Overview
• One of the development services in AWS
• Allows you to build extensible, full-stack web and
mobile apps faster
No Server ?
Serverless
Serverless
AWS Lambda AWS Fargate
Amazon Aurora
Amazon DynamoDB Amazon S3
Serverless
powered by
Serverless microVMs
microVMs
VM
Serverless
Serverless Edge Computing
Edge Computing
Edge Location
Serverless
Lambda@Edge
CloudFront Function
Infrastructure-as-a-Service Function-as-a-Service
Traditional
(IaaS) (FaaS)
Amazon EventBridge
Scheduled Actions
Orchestration
AWS Lambda@Edge
AWS Lambda
Edge Computing at
Regional Edge Locations
CloudFront Functions
Edge Computing at
Edge Locations
Function as a Service (FaaS)
Amazon EventBridge
Scheduled Actions
Orchestration
AWS Lambda@Edge
AWS Lambda
Edge Computing at
Regional Edge Locations
CloudFront Functions
Edge Computing at
Edge Locations
SERVERLESS CONTAINERS SERVERLESS APPLICATION INTEGRATION
App App
Container 1 Container 2
AWS Fargate
CONTAINER ENGINE
STATIC DATA
Extract, Transform &
Load (ETL)
Amazon S3
AWS Glue
DYNAMIC DATA
Analytics Services
DATA
WAREHOUSE Amazon Kinesis
Amazon Athena Amazon QuickSight
Data Analytics
Amazon Redshift Spectrum
Virtual Machine Container MicroVM
Service
A EXECUTION
ENVIRONMENT
Service
GUEST B
Docker Kubernetes
Container Pod MICRO VM KERNEL
KERNEL Service
C
HOST
KERNEL
HARDWARE / MEMORY
BARE-METAL SERVER
CPU (RAM)
NETWORK SSD/HDD STORAGE
Serverless Architecture Types
Domain Name
49.143.173.201
Subdomains
Hosted Zone
Query Logging
49.143.173.201
Hosted
Zone
Record
ALIAS
NS Name Server
CNAME Canonical Name SPF Sender Policy Framework
Certification Authority
TXT Text CAA
Authorization
A IPv4 Host Address AAAA IPv6 Host Address
• Has several active environments that • Has one active environment and one
accepts live production traffic backup environment on standby
N
Network
🇺🇸
Origin
Server
🇵🇭
Trans-Pacific Submarine Cables
🇺🇸
🇵🇭 Origi
n
Serve
r
🇺🇸
🇵🇭 LOAD TIME 10
0
9
8
7
6
5
4
3
2
1 seconds
Origin
Server
🇺🇸
PoP
PoP
NY
Trans-Atlantic Submarine Cables
PoP
Origin Mid
Server West
🇺🇸
LOAD TIME 1 second!
Origi
n
Serve
PoP
r
🇵🇭
PoP
PoP
PoP
PoP
PoP
🇺🇸
EDGE LOCATIONS LOAD TIME 5 seconds
Origi
n
Serve
🇵🇭
PoP
r
PoP
PoP
PoP
PoP
Edge Location
Edge/Boundary of ISP 1
DISTRIBUTION
CloudFront VIEWER
ORIGIN
OA
I &
Lambda@Edge
ORIGIN ACCESS IDENTITY
GEO-RESTRICTION and
(OAI)
CloudFront Functions
ORIGIN GROUP
primary
ORIGIN A
failover
ORIGIN B
S T A T I C DYNAMIC
Content Delivery Network
AWS ORIGINS
AWS Elemental
MediaPackage
AWS Elemental
MediaStore
HTTP HTTP
HTTPS HTTPS
Signed URL
Signed Cookies
Content Delivery Network
HTTP HTTP
HTTPS HTTPS
Signed URL
Signed Cookies
Content Delivery Network
• Specifies the allowed protocols for the
Origin and the Viewer (end users)
ORIGIN VIEWER
Protocol Policy Types Protocol Policy Types
• HTTPS Only
• HTTP Only
• Redirect HTTP to
• HTTPS Only
HTTPS
• Match Viewer
PROTOCOL POLICY • HTTP and HTTPS
HTTP HTTP
HTTPS HTTPS
S3 URL
CloudFront URL
https://tutorialsdojo.com/report.pdf
?Expires=13570344005
&Signature=nitfHRCrtziwO2HwPfWw~yYDhUF5EwRunQA...
SIGNED URLs &Key-Pair-Id=K2JCJMDEHXQW5F
Set-Cookie HEADER
SIGNED COOKIES
CloudFront Distribution with Custom Domain Name
https://tutorialsdojo.com/report.pdf
?Expires=13570344005
&Signature=nitfHRCrtziwO2HwPfWw~yYDhUF5EwRunQA...
SIGNED URLs &Key-Pair-Id=K2JCJMDEHXQW5F
Set-Cookie HEADER
SIGNED COOKIES
• Restricts access to your content based on
the specific country (geographic location) of
your users
GEO-RESTRICTION
SNI (Server Name Indication)
Dedicated IP address
AWS Shield
INTEGRATIONS TO OTHER
AWS SERVICES Different from the Origin Shield feature
HIGH AVAILABILITY VS FAULT TOLERANCE
Are these two exactly the same?
SAME OBJECTIVE
VS
RPO
Recovery Point Objective
DISASTER RECOVERY
OBJECTIVES
RTO RPO
Recovery Time Objective Recovery Point Objective
9:00 AM ALL DATA
BEFORE 11 AM
RPO 1 HOUR
1:00 PM
2:00 PM
5:00 PM
3:00 PM – 1 HOUR = 02:00 PM
12:00 NN
1:00 PM
ALL DATA
BEFORE 2 PM
RPO 1 HOUR
MUST BE
RECOVERABLE Recovery Point Objective
2:00 PM
ACCEPTABLE DATA LOSS
3:00 PM D I S A S T E R 2 PM - 3 PM
4:00 PM
• Created by default when you launch a new VPC and on your default VPC
• Acts as a virtual firewall that protects your AWS resources from unauthorized traffic
• Inbound & Outbound rules can be set to have one IP address or a CIDR range as a source
• Allows you to control the incoming and outgoing traffic to and from your network
Network ACL Security Group
Ephemeral Ports
STATEFUL
• 1024 – 65535
• 32768 – 61000 STATE STATELESS
Outbound Rules
• 49152 – 65535
N. Virginia Region
AWS Cloud
Subnet 1SUBNET
/ Availability
1 Zone 1 Subnet 2SUBNET
/ Availability
2 Zone 2
VPC A
Security Group
EC2
Network ACL Security Group
WHITELISTING No
only!
explicit DENY Rules
Tutorials Dojo
www.tutorialsdojo.com
STATELESS STATEFUL
Network ACL Security Group
EC2
EC2 EC2
EC2 EC2
• Applies the rules to all EC2 instances and other AWS • Applies the rules to a single EC2 instance only or to a
resources in the subnets that it's associated with group of AWS resources where it is associated with
Network ACL Security Group
Ephemeral Ports
ANOTHER
AWS Storage Gateway Types Comparison
VS VS
File Volume Tape
Gateway Gateway Gateway
MIGRATION
VM VM
INTEGRATION
Storage Area
Network
*File storage *Block storage * Tape storage
VM
NFS file share CACHED GLACIER POOL
Also known as Amazon S3 File
Gateway
Uses Amazon S3 as the
primary storage
Stores data in: Amazon S3
Amazon S3 Glacier
Stores a subset of
Provides a local cache for low-latency frequently accessed
access to your most recently used data locally
data
VM
SMB file share STORED
DEEP ARCHIVE POOL
Also known as Amazon FSx File
Gateway
Amazon FSx for Retains the entire
Stores data in: Windows File Server dataset in your on-
premises data center Amazon S3 Glacier
Provides a low-latency on-premises Asynchronously backs
Deep Archive
access to Windows SMB file shares of up your data to Amazon
the Amazon FSx for Windows File S3
Server service in AWS
File Gateway Volume Gateway Tape Gateway
Active Directory
AWS Managed
Microsoft AD
File Gateway Volume Gateway Tape Gateway
NFS iSCSI
SMB VTL
File Gateway Volume Gateway Tape Gateway
VS
AWS Storage Gateway AWS DataSync
for
decommission
replication ing existing
via local storage
cache systems
hybrid cloud
storage
for moving
data
INTEGRATION MIGRATION
if your on-
premises
storage ran
out
large amount of space
synchronized of unused
copies on both records or
on-premises data hosted
and AWS on-premises
REPLICATE DATA MOVE DATA
INTEGRATION MIGRATION
VM
4 kb 4 kb
16 kb 4 kb 4 kb
BLOCK STORAGE
d
l
b
c
Amazon EBS Volume
Amazon EBS Amazon EFS
- The block storage or
file storage is
Lower latency than physically attached to
the host/server or
located in close
proximity
Attached/Mounted to the
Amazon EC2 instance
FILE STORAGE
• Commonly used by multiple servers
Data is stored
redundantly in a single Data is stored redundantly across multiple AZs
AZ only
A CD
CUES
R SA BMI L
E IT THYO D
Usually attached/mounted
to a single EC2 instance Can be mounted to thousands
of EC2 instances or on-
A single EBS volume can be premises servers across
multiple AZs Via the public
attached to multiple EC2 Internet by default
instances by using the Multi-
Attach feature
(available on certain EBS types
only) Allows multiple applications or
servers to concurrently access
Two or more applications/ the same files at the same time
EC2 instances can’t access
the exact same file Invoked via a REST API request
concurrently call
SDCUARLAABBIILLIITTYY
Not highly scalable Both Amazon EFS and Amazon S3 are highly scalable
if the request
goes through
HIGH the public
Internet
LOWEST MODERATE
if the request goes
through the
MODERATE S3 Gateway Endpoint
or
S3 Interface Endpoint
DB
UARC
AKBU
I LPI ST Y
Cross-Region
Replication (CRR)
Allows you to copy your
EBS snapshot to another Perform incremental backups
AWS Region of your EFS file system using
AWS Backup
D A TDAU ER N
A CB R
I LYIPT TYI O N
Network ACL
S3 Access Points
EC2
Security Group NFSv4 endpoint S3 Object Lambda
Access Points
NFSv4
D U Protocol
R A B I L Support
ITY
NFSv4 Support
POSIX-compliant
D ADT U
A R LAIBF IELCI Y
TYCLE