AWS Certified Cloud Practitioner
AWS Certified Cloud Practitioner
GovCloud
● AWS GovCloud Regions allow customers to host sensitive Controlled Unclassified
Information and other types of regulated workloads
● GovCloud Regions are only operated by employees who are US citizens, on US soil
● They are only accessible to US entities and root account holders who pass a screening
process
AWS Marketplace
● a curated digital catalogue with thousands of software listings from independent software
vendors
● easily find, buy, test, and deploy software that already runs on AWS
● the product can be free to use or can have an associated charge
● products can be offered as
○ Amazon Machine Images (AMIs)
○ AWS CloudFormation templates
○ Software as a service (SaaS) offerings
○ Web ACL
○ AWS WAF rules
TCO Calculator
● Total Cost of Ownership
● estimate how much you would save when moving to AWS from on-premise
AWS Networking
● VPC: private network to deploy your resources(regional resource)
● Subnets
○ a logical partition of an IP network into multiple, smaller network segments
● Internet Gateway
○ enable access to the internet
● NAT Gateways (AWS-managed) & NAT Instances (self-managed) allow your instances
in your Private Subnets to access the internet while remaining private
● NACLs
○ acts as a firewall at the subnet level
○ can have allow and deny rules
● Security Groups
○ acts as firewall at the EC2 instance level
○ Allow rules only
● Route Tables: To define access to the internet and between
subnets
● VPC Peering: Connect two VPC, privately using AWS’ network
● VPC Endpoints: Endpoints allow you to connect to AWS Services using a private
network instead of the public www network
● Direct Connect
○ Takes at least a month to establish
○ Goes over a private Network
● Site-to-site VPN: automatically encrypted/goes over public network
Database Services
● RDS
○ Relational Database Service
○ support multiple engines
● DynamoDB
○ NoSQL key/value database
○ fully managed/serverless
○ DynamoDB Accelerator - DAX
● DocumentDB: “AWS-implementation” of MongoDB
● Aurora: “AWS-implementation” of PostgreSQL / MySQL
○ MySQL (5x faster) and PSQL (3x faster) database fully managed
● Redshift
○ Columnar database, petabype warehouse (1pb = 1000 tb)
○ OLAP – online analytical processing (analytics and data warehousing/BI tools
apply)
● ElastiCache
○ In-memory database
○ Helps reduce load off databases for read intensive workloads
○ Redis, or Memcached database
○ a web service that makes it easy to deploy, operate, and scale an in-memory
data store or cache in the cloud
● Athena
○ Use to query data in S3
○ one-time SQL queries, serverless queries on S3, log analytics
● Neptune
○ Managed Graph Database
● EMR: Elastic MapReduce
○ Handoop clusters (Big Data)
○ The clusters can be made of hundreds of EC2 instances
● Amazon QLDB: Quantum Ledger Database
○ Review history of all the changes made to your application data over time
○ Immutable system: no entry can be removed or modified, cryptographically
verifiable
● Amazon Managed Blockchain
○ Decentralization
○ Hyperledger Fabric & Ethereum
● QuickSight
○ Serverless machine learning-powered business intelligence service to
create interactive dashboards
● Glue
○ extract, transform, and load (ETL)
○ serverless
● DMS – Database Migration Service
Deployment Services
● Elastic Beanstalk(PaaS)
○ service for deploying and scaling web applications and services developed with
Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker
○ Health Monitor
● CloudFormation
○ infrastructure as code, JSON or YAML
AWS CodePipeline
● Code => Build => Test => Provision => Deploy
AWS CodeCommit
● fully-managed source control service
● store code in a repository, using the Git technology
AWS CodeBuild
● a fully managed(serverless) primarily compiles source code and runs unit tests with
the output being artifacts that will be ready for deployment
AWS CodeDeploy
● Depoly application automatically
● Deploy code consistently with a known architecture: ex, ALB + EC2 + RDS
AWS CodeArtifact
● Dependencies (npm, yarn)
AWS CodeStar
● Unified UI to easily manage software development activities in one place
AWS Cloud9
● AWS Cloud9 is a cloud-based integrated development environment (IDE)
● AWS Cloud9 also allows for code collaboration in real-time (pair programming)
AWS System Manager(SSM)
● Hybrid service
● Patching automation for enhanced compliance
● Run commands across an entire fleet of servers
● Store parameter configuration with the SSM Parameter Store
AWS OpsWorks
● Chef and Puppet. Chef and Puppet are automation platforms that allow you to use code
to automate the configurations of your servers. OpsWorks lets you use Chef and Puppet
to automate how servers are configured, deployed, and managed across your Amazon
EC2 instances or on-premises compute environments.
AWS Computing
EC2: Elastic Compute Cloud, highly configurable server eg. CPU, memory, network, OS
AWS AMI: customization of an EC2 instance
○ ECS: Elastic Container Service: run Docker images on EC2
■ Docker as a Service
■ You must provision & maintain the infrastructure
○ Fargate
■ Run Docker containers without provisioning the infrastructure
■ serverless
Storage Services
● EBS: Elastic Block Storage
○ Network drive attached to EC2 instances
○ It’s locked to an Availability Zone (AZ). To move a volume across, you first need
to snapshot it
○ when you create an EBS volume in an Availability Zone, it is automatically
replicated within that zone to prevent data loss due to failure of any single
hardware component
● S3: Simple Storage Service
○ Store objects in buckets
○ globally unique name (across all regions all accounts)
○ Encryption: encrypt objects in Amazon S3 using encryption keys
● S3 Storage Classes
○ Amazon S3 Standard - General Purpose
frequently accessed data
Big Data analytics, mobile & gaming applications, content distribution
○ Amazon S3 Standard-Infrequent Access (IA)
less frequently accessed, but requires rapid access when needed
Lower cost compared to Amazon S3 Standard, but retrieval fee
Use Cases: As a data store for disaster recovery, backups
○ Amazon S3 Intelligent Tiering
Cost-optimized by automatically moving objects between two access tiers
(Frequent access/Infrequent Access) based on changing access patterns
Resilient against events that impact an entire Availability Zone
○ Amazon S3 One Zone-Infrequent Access
data is stored in a single AZ
Use Cases: Storing secondary backup copies of on-premise data, or
storing data you can recreate
○ Amazon Glacier & Amazon Glacier Deep Archive(cheapest)
Low-cost object storage/ longer term
Various retrieval options of time + fees for retrieval
● Storage Gateway
○ Hybrid storage service to allow on-premises to seamlessly use the AWS Cloud
○ File Gateway, Volume Gateway, Tape Gateway
● EFS: Elastic File Storage
○ file storage mountable to multiple EC2 instances at the same time
● Snowball
○ Snowball Edge: move TBs or PBs of data in or out of AWS
Snowball Edge Storage Optimized
Snowball Edge Compute Optimized
○ Snowcone: Small, portable computing, anywhere, rugged&secure, withstands
harsh environments
8 TBs of usable storage
Edge Computing
○ Snowmobile
■ shipping container, pulled by a semi-trailer truck (100 PB)
Free Services
● certain services are free themselves, but the resources they setup will cost you
○ IAM - identity access management
○ Amazon VPC
○ Organizations & Consolidated Billing
○ AWS Cost Explorer
○ services are free, but they can provision AWS services which cost money
■ Auto Scaling
■ CloudFormation
■ Elastic Beanstalk
■ Opsworks
■ Amplify
■ AppSync
■ CodeStar
Logging Services
● CloudTrail
○ logs all API calls (SDK, CLI) between AWS services (who we can blame)
■ who created this bucket
■ who spun up that expensive EC2 instance
■ who launched the SageMaker Notebook
○ detect developer misconfiguration
○ detect malicious actors
○ automate responses
● CloudWatch: a collection of multiple services
○ CloudWatch Logs
■ performance data about AWS Services
■ CPU utilization, memory, network
■ application logs
■ lambda logs
○ CloudWatch Metrics
■ represent a time-ordered set of data points
■ a variable to monitor
○ CloudWatch Events
■ trigger an event based on a condition
■ eg. every hour take a snapshot of server
○ CloudWatch Alarms
■ trigger notifications based on metrics
○ CloudWatch Dashboard
■ create visualizations based on metrics
Shared Responsibility Model
● customers are responsible for security in the Cloud
○ data
○ configuration
● AWs is responsible for security of the Cloud
○ hardware
○ operation of managed services
○ global infrastructure
● Shared controls:
○ Patch Management, Configuration Management, Awareness & Training
Amazon Inspector
● Automated Security Assessments for EC2 instances
Inspector vs Trusted Advisor
● both are security tools and both perform audits
● Inspector
○ audit a single EC2 instance that you've selected
○ generate a report form a long list of security checks
● Trusted Advisor
○ don't generate a PDF report
○ give you a holistic view of recommendations across multiple services and best
practices
Artifact vs Inspector
● both compile out PDFs
● Artifact
○ why should an enterprise trust AWS
○ generate a security report that's based on global compliance frameworks
● Inspector
○ how do we know this EC2 instance is secure
○ run a script that analyzes your EC2 instance, then generate a PDF report telling
you which security checks passed
○ audit tool for security of EC2 instances
AWS X-Ray
● AWS X-Ray helps developers analyze and debug production, distributed applications
● trace requests made through your distributed applications
AWS WAF
● Web Application Firewall
○ protect your web applications from common web exploits (Layer 7)
○ write your own rules to ALLOW or DENY traffic based on the contents of an
HTTP requests
○ use a ruleset from a trusted AWS security partner in the AWS WAF Rules
Marketplace
○ WAF can be attached to either CloudFront or an Application Load Balancer
● WAF includes Shield
Penetration Testing
● PenTesting
○ an authorized simulated cyberattack on a computer system
○ performed to evaluate the security of the system
● we can perform PenTesting on AWS
● permitted services
○ EC2 intances, NAT gateways, and ELB
○ RDS
○ CloudFront
○ Aurora
○ API gateways
○ Lambda and Lambda@Edge functions
○ Lightsail resources
○ Elastic Beanstalk environments
● for some simulated events, you need to submit a request to AWS. A replay could take up
to 7 days
GuardDuty
● a threat detection service that continuously monitors for malicious, suspicious activity
and unauthorized behavior
● it uses Machine Learning to analyze the following AWS logs
○ CloudTrail logs
○ VPC flow logs
○ DNS logs
● Can setup CloudWatch Events to Lambda and SNS
AWS CLoudHSM: Hardware Security Module
● AWS provisions encryption hardware
Key Management Service
● AWS manages the encryption keys for us
Global Services
Amazon Route53
● Amazon Route 53 is Managed DNS (Domain Name System)
● CloudFront: Content Delivery Network
○ Improves read performance, content is cached at the edge
○ DDoS protection (because worldwide), integration with Shield, AWS Web
Application Firewall
● S3 Transfer Acceleration: Increase transfer speed by transferring file to an AWS edge
location which will forward the data to the S3 bucket in the target region
● AWS Global Accelerator: Improve global application availability and performance using
the AWS global network
SNS vs SQS
● both connect apps via messages
● SNS
○ pass along messages
○ send notifications to subscribers of topics via multiple protocol (HTTP, email,
SQS, SMS)
○ is generally used for sending plain text emails, which is triggered via other AWS
services
○ can retry sending in case of failure for HTTPS
● SQS
○ queue up messages
○ guaranteed delivery
○ place messages into a queue
○ applications pull queue using AWS SDK
○ can retain a message for up to 14 days
○ can send them in sequential order or in parallel
○ can ensure only one message is sent
○ can ensure messages are delivered at least once
You can remove an account from your organization only if the account has the information that
is required for it to operate as a standalone account.
https://aws.amazon.com/cn/serverless/
data transfer between S3 and EC2 instances within the same region is not charged
Amazon EC2 Reserved Instances: You can use Amazon EC2 Reserved Instances to
reserve capacity and receive a discount on your instance usage compared to running
On-Demand instances.
Amazon DynamoDB Reserved Capacity: If you can predict your need for Amazon
DynamoDB read-and-write throughput, Reserved Capacity offers significant savings over
the normal price of DynamoDB provisioned throughput capacity.
Amazon ElastiCache Reserved Nodes: Amazon ElastiCache Reserved Nodes give you the
option to make a low, one-time payment for each cache node you want to reserve and,
in turn, receive a significant discount on the hourly charge for that node.
Amazon RDS RIs: Like Amazon EC2 RIs, Amazon RDS RIs can be purchased using No
Upfront, Partial Upfront, or All Upfront terms. All Reserved Instance types are available
for Aurora, MySQL, MariaDB, PostgreSQL, Oracle, and SQL Server database engines.
Amazon Redshift Reserved Nodes: If you intend to keep an Amazon Redshift cluster
running continuously for a prolonged period, you should consider purchasing reserved-
node offerings. These offerings provide significant savings over on-demand pricing, but
they require you to reserve compute nodes and commit to paying for those nodes for
either a 1- or 3-year duration.
Exam Alert:
You may see use-cases asking you to select one of CloudWatch vs CloudTrail vs Config.
Just remember this thumb rule -
Add instance store: An instance store provides temporary block-level storage for your instance.
This storage is located on disks that are physically attached to the host computer. This is a good
option when you need storage with very low latency, but you don't need the data to persist
when the instance terminates or you can take advantage of fault-tolerant architectures. For this
use-case, the computation application itself has a fault tolerant architecture, so it can
automatically handle any failures of Instance Store volumes.