AWS- certificated cloud practitioner cheat sheet(知识总结)
IaaS, PaaS, SaaS:
- IaaS
provide network, computer, data storage
high flexibility
- PaaS
remove the need for your application and manage the underlying infrastructure
focus on development and management on application
- SaaS
the complete product that is run and managed by the service provider
Difference between IaaS > PaaS > SaaS?
Like doing pizza
IaaS provide oven, kitchen, gas
PaaS provide oven, kitchen, gas and pizza Dough, what you need to do is make toppings on it.
SaaS provide oven, kitchen, gas and pizza Dough and toppings, also cook pizza for you, you only need to sell it.
Free services include:
- Amazon VPC.
- Elastic Beanstalk (but not the resources created).
- CloudFormation (but not the resources created).
- Identity Access Management (IAM).
- Auto Scaling (but not the resources created).
- OpsWorks.
- Consolidated Billing.
Fundamentally charges include:
- Compute.
- Storage.
- Data out
The 6 advantages of cloud are:
- Trade capital expense for variable expense
- Benefit from massive economies of scale
- Stop guessing about capacity
- Increase speed and agility
- Stop spending money running and maintaining data centers
- Go global in minutes
Storage gateway
- File gateway : store as object in S3. Store via NFS at local.
- Volume gateway: store as volume like a disk. Include stored volume and cached volume.
- Tape gateway: backup and store tape. It always stores for a long time in Glacier. need third-party software.
Well-architected framework
- Scalability: vertical and horizontal
- Disposal resources: should be disposal & easily configured. Need backup.
- Automation: serverless, IaaS, auto-scaling
- loose coupling
- services not server
AWS Organizations and Consolidated Billing
Available in two feature sets:
Consolidated Billing.
All features.
Paying Account – independent and cannot access resources of other accounts.
Linked Accounts – all linked accounts are independent.
Best practices:
Always enable multi-factor authentication (MFA) on the root account.
Always use a strong and complex password on the root account.
The Paying account should be used for billing purposes only. Do not deploy resources into the Paying account.
AWS Cost Calculators and Tools
- AWS Cost Explorer – enables you to visualize your usage patterns over time and to identify your underlying cost drivers.
- AWS Simple Monthly calculator – shows you how much you would pay in AWS if you move your resources.
- Total Cost of Ownership (TCO) calculator – used to compare the cost of running your applications in an on-premise or colocation environment against AWS.
Types of cloud
On-promises(private cloud):
Also called private cloud, it deploys cloud techies on user's machine.
So that they own their structures and hardware products.
Public cloud
A cloud-based application is fully deployed in the cloud and all parts of the application run in the cloud.
Hybrid cloud:
A hybrid deployment is a way to connect infrastructure and applications between cloud-based resources and existing resources that are not located in the cloud.
Serverless service
- AWS Lambda
- Amazon API Gateway
- Amazon DynamoDB
- Amazon S3
- Amazon Kinesis
- Amazon Aurora
- AWS Fargate
- Amazon SNS
- Amazon SQS
- Amazon EFS
- Amazon Athena, query data from S3, result back to S3
- Amazon EventBridge
- AWS Glue (Extract, Transform, Load data)
Reservations apply to various services, including:
- Amazon EC2 Reserved Instances.
- Amazon DynamoDB Reserved Capacity.
- Amazon ElastiCache Reserved Nodes.
- Amazon RDS Reserved Instances.
- Amazon RedShift Reserved Instances.
Encrypted storage:
S3 glacier(AES-256 encryption)
Storage gateway(between on-demand and cloud, so use SSL)
ECS VS Fargate ECR:
Both can run container.
ECS need provision by yourself, like instances.
Fargate is serverless, don't need to worry about the resource provision.
ECR: store container images. cannot run container.
Cloudformation:
infrastructure as code
repeat an architecture
Don't need to provision resource manually, upload the template file to provision resources.
Elastic Beanstalk:
only focus on application code
PaaS
codedeploy:
Hybrid service
work with EC2 instances
work with on-promises server
SSM:
Hybird service: both on-promises server and AWS
do automatic patch fleet
run command on all servers
TCO:
estimate the cost from on-promises server to cloud
simple monthly calculator:
need to provide the server
cost of service
cost explorer:
provide current usage and forecast the usage
Cognito:
IAM is for company staff, so for hundreds of thousands of customer, use it.
SSO:
For login to multiple account include third-party account, use one single account.
Reference : https://digitalcloud.training/