AWS SAA Review

2021-12-05  本文已影响0人  NealLemon

已过SAA认证,贴出知识点总结

EC2

IAM

Applications that run on an EC2 instance must include AWS credentials in the AWS API requests. you can and should use an IAM role to manage temporary credentials for applications that run on an EC2 instance. the role supplies temporary permissions that applications can use when they make calls to other AWS resources. When you launch an EC2 instance, you specify an IAM role to associate with the instance. Applications that run on the instance can then use the role-supplied temporary credentials to sign API requests.

ec2iam.jpg

EC2 Hibernate

When an EC2 instance is in the Hibernate state, you pay only for the EBS volumes and Elastic IP Addresses attached to it.

Purchasing Options

EC2 Spot Instance Requests

Spot Fleets

Strategy

Placement Groups

EC2 Instance Storage

EBS Volume

EBS Volume Types

Only gp2/gp3 and io1/io2 can be used as boot volumes

EFS – Elastic File System

Performance

EC2 budgets

Load Balancer

Sticky Sessions

SSL Certificates

Connection Draining(CLB) & Deregistration Delay(ALB & NLB)

Classic Load Balancer Application Load Balancer Network Load Balancer Gateway Load Balancer
layer TCP (Layer 4), HTTP &HTTPS (Layer 7) Layer 7 (HTTP),HTTP/2 and WebSocket TCP/UDP(Layer 4) Layer 3 (Network Layer) – IP Packets
health check TCP or HTTP HTTP target group level TCP
ip or hostname Fixed hostname Fixed hostname one static IP per AZ, and supports assigning Elastic IP UNKOWN
Load balancing one EC2 multiple EC2 /target groups(EC2 instances,ECS tasks,Lambda functions,IP Addresses) Target Groups(EC2 instances,IP Addresses – must be private IPs,Application Load Balancer) Target Groups(EC2 instances,IP Addresses – must be private IPs)
redirect NONE HTTP to HTTPS TCP to TCP, TCP to HTTP
port mapping feature NONE YES YES
Sticky Session YES YES NO
Cross-Zone Load Balancing YES YES YES need pay
SNI NO YES YES

Auto Scaling Group(ASG)

attributes

Scaling Cooldowns

After a scaling activity happens, you are in the cooldown period (default 300 seconds),During the cooldown period, the ASG will not launch or terminate additional instances

Lifecycle Hooks

You have the ability to perform extra steps before the instance goes in service (Pending state) You have the ability to perform some actions before

the instance is terminated (Terminating state)

ASG main point

AWS RDS

BackUp

Storage Auto Scaling

RDS Read Replicas

RDS Multi AZ (Disaster Recovery)

RDS Security

Encryption

Network Security

RDS security works by leveraging security groups

Access Management

RDS parameter

You manage your DB engine configuration through the use of parameters in a DB parameter group. DB parameter groups act as a container for engine configuration values that are applied to one or more DB instances.

If you want to use your own DB parameter group, you simply create a new DB parameter group, modify the desired parameters, and modify your DB instance to use the new DB parameter group.

Amazon Aurora

Security

Aurora Serverless

Good for infrequent,intermittent or unpredictable workloads

Multi-Master

Every node does R/W immediate failover for write node

Global Aurora

Aurora Machine Learning

Amazon ElastiCache

REDIS MEMCACHED
Multi AZ with Auto-Failover Multi-node for partitioning of data (sharding)
Read Replicas to scale reads and have high availability No high availability (replication)
AOF Non persistent
Backup and restore features No backup and restore
Redis AUTH Supports SASL-based authentication

Route 53

Record Types

Records TTL

Routing Policies

DNS does not route any traffic, it only responds to the DNS queries

Elastic Beanstalk VS CloudFormation

CloudFormation

AWS CloudFormation is a service that helps you model and set up your Amazon Web Services resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all the AWS resources you want (like Amazon EC2 instances or Amazon RDS DB instances). AWS CloudFormation takes care of provisioning and configuring those resources for you.

Benefits

How CloudFormation Works

Templates

  1. Resources: your AWS resources declared in the template (MANDATORY)
  2. Parameters: the dynamic inputs for your template
  3. Mappings: the static variables for your template
  4. Outputs: References to what has been created
  5. Conditionals: List of conditions to perform resource creation
  6. Metadata

StackSets

so anytime you see in the exam something around deploying a CloudFormation stack globally or across accounts,think no more than just StackSets.

Elastic Beanstalk

Elastic Beanstalk is a PaaS layer on top of AWS's IaaS services which abstracts away the underlying EC2 instances, Elastic Load Balancers, Auto Scaling groups, host Docker containers,etc. This makes it a lot easier for developers, who don't want to deal with all the systems stuff, to get their application quickly deployed on AWS. With Elastic Beanstalk, you don't need to understand how any of the underlying magic works.

Elastic Beanstalk is intended to make developers' lives easier. CloudFormation is intended to make systems engineers' lives easier.

S3

S3 Encryption for Objects

S3 Security

S3 Storage Classes

S3 Lifecycle Rules

Rules can be created for a certain prefix (ex - s3://mybucket/mp3/*)

Rules can be created for certain objects tags (ex - Department: Finance)

S3 Analytics – Storage Class Analysis

S3 Transfer Acceleration

Increase transfer(upload and download) speed by transferring file to an AWS edge location which will forward the data to the S3 bucket in the target region

S3 Byte-Range Fetches

S3 Select & Glacier Select

S3 – Requester Pays

With Requester Pays buckets , the requester instead of the bucket owner pays the cost of the request and the data download from the bucket

The requester must be authenticated in AWS (cannot be anonymous)

Amazon Athena

Exam Tip: analyze data in S3 using serverless SQL, use Athena

Lock

AWS CloudFront

CloudFront – Origins

CloudFront Geo Restriction

CloudFront vs S3 Cross Region Replication

CloudFront Signed URL / Signed Cookies

CloudFront Signed URL vs S3 Pre-Signed URL

AWS Global Accelerator

CloudFront Global Accelerator
DDoS protection YES YES

AWS Snow Family

Snowcone Snowball Edge – Compute Optimized Snowball Edge – Storage Optimized AWS Snowmobile
Storage Capacity 8 TBs of usable storage 80 TB of HDD capacity 42 TB of HDD capacity 100 PB of capacity
useful Use Snowcone where Snowball does not fit/Edge Computing move TBs or PBs of data in or out of AWS Edge Computing transfer more than 10 PB

AWS OpsHub

use AWS OpsHub (a software you install on your computer / laptop) to manage your Snow Family Device

Snowball into Glacier

Amazon FSx

AWS Storage Gateway

AWS Transfer Family

Amazon SQS

Security

Amazon SNS

Kinesis

Kinesis Data Streams

Kinesis Data Firehose

Kinesis Data Analytics (SQL application)

Amazon MQ

When migrating to the cloud, instead of re-engineering the application to use SQS and SNS, we can use Amazon MQ

Container

ECS

Fargate

EKS

AWS K8S (ECS and Fargate)

Lambda

DynamoDB

Lambda@Edge

AWS API Gateway

AWS SAM - Serverless Application Model

Framework for developing and deploying serverless applications

Redshift

AWS Glue

Neptune

Fully managed graph database

AWS CloudWatch

CloudWatch Logs

CloudWatch Alarms

CloudWatch Events

Amazon EventBridge

AWS CloudTrail

AWS Config

AWS STS – Security Token Service

AWS Directory Services

AWS Organizations

Service Control Policies (SCP)

IAM Permission Boundaries

AWS Resource Access Manager (RAM)

AWS Single Sign-On (SSO)

AWS KMS (Key Management Service)

SSM Parameter Store

AWS Secrets Manager

AWS Shield

CloudHSM

AWS WAF –Web Application Firewall

Amazon GuardDuty

Amazon Inspector

Amazon Macie

CICD

AWS Step Functions VS AWS SWF – Simple Workflow Service

AWS Step Functions AWS SWF
Lambda functions Code runs on EC2
Maximum execution time of 1 year 1 year max runtime
Short running workflows Long-running workflows,
Mostly used for synchronous tasks Mostly used for asynchronous tasks

Amazon EMR

AWS Opsworks

AWS WorkSpaces

AWS AppSync

Cost Explorer

DMS – Database Migration Service

Quickly and securely migrate databases to AWS, resilient, self healing

AWS Schema Conversion Tool (SCT)

Convert your Database’s Schema from one engine to another

AWS Server Migration Service (SMS)

Incremental replication of on-premise live servers to AWS

AWS DataSync

QuickSight

sight.jpg

Amazon QuickSight is a business analytics service you can use to build visualizations, charts, perform ad hoc analysis, and get business insights from your data. It can automatically discover AWS data sources and also works with your data sources.

AWS Backup

Amazon Data Lifecycle Manager

Amazon Data Lifecycle Manager can be used for creation, retention & deletion of EBS snapshots. It protects critical data by initiating backup of Amazon EBS volumes at selected intervals, along with storing & deletion of old snapshots to save storage space & cost.

Disaster Recovery

Elastic Network Adapter (ENA)

Elastic Fabric Adapter (EFA)

VPC

IPV4

Internet Gateway (IGW)

NAT Instance

NAT Gateway

Attribute NAT gateway NAT instance
Availability Highly available. NAT gateways in each Availability Zone are implemented with redundancy. Create a NAT gateway in each Availability Zone to ensure zone-independent architecture. Use a script to manage failover between instances.
Bandwidth Scale up to 45 Gbps. Depends on the bandwidth of the instance type.
Maintenance Managed by AWS. You do not need to perform any maintenance. Managed by you, for example, by installing software updates or operating system patches on the instance.
Performance Software is optimized for handling NAT traffic. A generic AMI that's configured to perform NAT.
Cost Charged depending on the number of NAT gateways you use, duration of usage, and amount of data that you send through the NAT gateways. Charged depending on the number of NAT instances that you use, duration of usage, and instance type and size.
Type and size Uniform offering; you don’t need to decide on the type or size. Choose a suitable instance type and size, according to your predicted workload.
Public IP addresses Choose the Elastic IP address to associate with a public NAT gateway at creation. Use an Elastic IP address or a public IP address with a NAT instance. You can change the public IP address at any time by associating a new Elastic IP address with the instance.
Private IP addresses Automatically selected from the subnet's IP address range when you create the gateway. Assign a specific private IP address from the subnet's IP address range when you launch the instance.
Security groups You can not associate security groups with NAT gateways. You can associate them with the resources behind the NAT gateway to control inbound and outbound traffic. Associate with your NAT instance and the resources behind your NAT instance to control inbound and outbound traffic.
Network ACLs Use a network ACL to control the traffic to and from the subnet in which your NAT gateway resides. Use a network ACL to control the traffic to and from the subnet in which your NAT instance resides.
Flow logs Use flow logs to capture the traffic. Use flow logs to capture the traffic.
Port forwarding Not supported. Manually customize the configuration to support port forwarding.
Bastion servers Not supported. Use as a bastion server.
Traffic metrics View CloudWatch metrics for the NAT gateway. View CloudWatch metrics for the instance.
Timeout behavior When a connection times out, a NAT gateway returns an RST packet to any resources behind the NAT gateway that attempt to continue the connection (it does not send a FIN packet). When a connection times out, a NAT instance sends a FIN packet to resources behind the NAT instance to close the connection.
IP fragmentation Supports forwarding of IP fragmented packets for the UDP protocol.Does not support fragmentation for the TCP and ICMP protocols. Fragmented packets for these protocols will get dropped. Supports reassembly of IP fragmented packets for the UDP, TCP, and ICMP protocols.

Bastion Hosts

DNS Resolution in VPC

VPC_DNSenable.png

VPC Security Groups & NACLs

Security Group NACL
Stateful Stateless
instance level subnet level
Default All inbound traffic is blocked,All outbound traffic is authorised Accepts everything inbound/outbound

Reachability Analyzer

troubleshoots network connectivity between two endpoints in your VPC(s)

VPC Peering

VPC Endpoints

VPC Flow Logs

Query VPC flow logs using Athena on S3 or CloudWatch Logs Insights

AWS Site-to-Site VPN

vgateway.jpg

AWS VPN CloudHub

Direct Connect (DX)

AWS PrivateLink (VPC Endpoint Services)

Transit Gateway

IPV6

Egress-only Internet Gateway

DR

dr.jpg

Compute Savings Plans && EC2 Instance Savings Plans

  1. Compute Savings Plans 的灵活性最高,最高可帮助您节省 66% 的费用。这些计划会自动应用于 EC2 实例用量,不分实例系列、大小、可用区、区域、操作系统或租期,并且还适用于 Fargate 和 Lambda。例如,注册 Compute Savings Plans 后,您可以随时从 C4 实例更改为 M5 实例,将工作负载从欧洲(爱尔兰)区域转移到欧洲(伦敦)区域,或者将工作负载从 EC2 迁移到 Fargate 或 Lambda,并继续自动支付 Savings Plans 价格。
  2. EC2 Instance Savings Plans 可提供最低的价格,最高可享受 72% 的折扣,以换取在单个区域内使用单个实例系列的承诺(例如在弗吉尼亚北部区域使用 M5 实例)。这会自动降低您在该区域的选定实例系列成本,不分可用区、实例大小、操作系统或租期。借助 EC2 Instance Savings Plans,您可以灵活地在该区域的一个实例系列中更改实例的使用情况。例如,您可以从运行 Windows 的 c5.xlarge 实例迁移到运行 Linux 的 c5.2xlarge 实例,并自动享受 Savings Plans 价格。
上一篇 下一篇

猜你喜欢

热点阅读