AWS-SAA(Solutions Architect Associate)

# AWS-SAA(Solutions Architect Associate)

image-20230621000149755

image-20230621000509913

AWS Certified Solutions Architect Associate Code & Slides | Courses Datacumulus (opens new window)

# 【01】IAM

# IAM Security Tools

image-20230622124928917

  • Credentials Report

image-20230622125234636

  • Access Advisor

image-20230622125109366

# Summary

image-20230622125616601

# 【02】EC2

# EC2 Spot Instance Requests

image-20230622130015459

image-20230624110431412

image-20230624110013901

image-20230624111352590

# 【03】EC2 – Associate

# Private & Public IP

image-20230624121343388

image-20230624121409164

image-20230624121457476

# Elastic IP

image-20230624121508698

image-20230624121537870

# Placement Groups

# Cluster

image-20230624121834573

# Spread

image-20230624122102432

# Partition

image-20230624122226156

distributed application

# Elastic Network Interfaces(ENI)

image-20230624151501550

image-20230624152553883

image-20230624152819632

image-20230624154143715

# 【04】EC2 Storage

# Elastic Block Store(EBS)

  • network drive
  • locked to an AZ
    • To move a volume across, you first need to snapshot it
  • provisioned capacity (size in GBs, and IOPS)

IOPS (Input/Output Operations Per Second),即每秒进行读写(I/O)操作的次数

# EBS Snapshots

image-20230624162117304

image-20230624162212630

# EBS Volume Types

image-20230624171401413

image-20230624171430770

image-20230624171519967

image-20230624171641191

# EBS Multi-Attach

image-20230624171817297

# EBS Encryption

image-20230624171932315

# unencrypted EBS --> encrypted EBS

  1. create a snapshot for the unencrypted EBS

    • the snapshot will be unencrypted(any snapshot created for unencrypted EBS will be unencrypted)
  2. copy the unencrypted snapshot to an encrypted snapshot(remember to choose)

    image-20230624171113874 image-20230624171015205
  3. use encrypted snapshot to create an EBS

    • any EBS created from encrypted snapshot will be encrypted

# Amazon Machine Image(AMI)

  • AMI are a customization of an EC2 instance
  • AMI are built for a specific region (and can be copied across regions)

image-20230624163950320

# EC2 Instance Store

  • If you need a high-performance hardware disk, use EC2 Instance Store
  • EC2 Instance Store lose their storage if they’re stopped (ephemeral)
  • Backups and Replication are your responsibility

# Elastic File System(EFS)

image-20230624181305253

image-20230624181429751

# Performance

image-20230624181733840

image-20230624181708404

# Storage Classes

image-20230624181900309

# EBS vs EFS

image-20230624182023126

image-20230624182040511

# 【05】Elastic Load Balancer(ELB)

# Health Checks

image-20230625114531578

# Load Balancer Security Groups

image-20230625114910014

# CLB

image-20230625115344491

# ALB

image-20230625115202684

image-20230625120449010

image-20230625120514537

image-20230625120552350

image-20230625120608315

image-20230625120711179

# Hands On

steps:

  1. create two EC2 instances
  2. create one ALB
    • security group for ALB
    • target group(step1: two EC2 instances)

result:

Using the URL provided by ALB can access EC2 instance which is healthy.

more:

Only ALB can access EC2 instances - assign the security group for ALB to the security group' s inbound rules for EC2 instances

image-20230625185249886

# NLB

image-20230625235444998

image-20230625235505879

# Target Groups

image-20230625235531523

# GWLB

image-20230625235916351

# Target Groups

image-20230625235934076

# Sticky Sessions (Session Affinity)

image-20230628165723056

NLB works without cookies

image-20230628170358657

image-20230628174551935

# Cross-Zone Load Balancing

image-20230628170950356

image-20230628171047058

# SSL / TLS

# Basics

image-20230628171216605

# Server Name Indication

image-20230628171557465

# ELB - SSL Certificates

image-20230628171756315

image-20230628171420037

# Connection Draining

image-20230628171925160

# 【06】Auto Scaling Group(ASG)

ASG are free

# ASG / ASG with ELB

image-20230628172729393

image-20230628172745917

# Attributes

image-20230628172814108

# Cloud Watch Alarms & Scaling

image-20230628173042151

# Dynamic Scaling Policies

image-20230628173210321

# Predictive Scaling

image-20230628173226964

image-20230628174139612

# Scaling Cooldowns

image-20230628174230951

SQL ECTRON

https://sqlectron.github.io/

# 【07】Relational Database Service(RDS)

It’s a managed DB service for DB use SQL as a query language.

# Advantage

image-20230629123614859

# Storage Auto Scaling

image-20230629123736520

# Read Replicas

# read scalability

image-20230629123904129

# use cases

image-20230629161536876

# network cost

image-20230629161740542

# Multi AZ

image-20230629162023983

image-20230629162333518

# Custom

image-20230629162713807

# 【08】Aurora

image-20230629163418122

# High Availability and Read Scaling

image-20230629164424165

# Cluster

image-20230629164636305

# Features

image-20230629164817809

# Replicas - Auto Scaling

image-20230629165342570

# Custom Endpoints

image-20230629165632116

# Serverless

image-20230629171055569

# Multi-Master

image-20230629171940096

# Global Aurora

image-20230629172528123

# Machine Learning

image-20230629172658284

# Cloning

image-20230629173937773

# Backups - RDS & Aurora

image-20230629172929882

image-20230629172959124

# Restore - RDS & Aurora

image-20230629173141471

# Security - RDS & Aurora

image-20230629174307553

# Proxy

image-20230629174631853

# 【09】ElastiCache

image-20230629181052291

# Solution Architecture

# DB Cache

image-20230629181225869

# User Session Store

image-20230629181319318

# Redis vs Memcached

image-20230629181520939

# Security

image-20230629181621871

# Patterns

image-20230629181703266

# Redis Use Case

image-20230629181733457

# 【*】List of Ports

# Important ports:

  • FTP: 21
  • SSH: 22
  • SFTP: 22 (same as SSH)
  • HTTP: 80
  • HTTPS: 443

# RDS Databases ports:

  • PostgreSQL: 5432
  • MySQL: 3306
  • Oracle RDS: 1521
  • MSSQL Server: 1433
  • MariaDB: 3306 (same as MySQL)
  • Aurora: 5432 (if PostgreSQL compatible) or 3306 (if MySQL compatible)

# 【10】Route 53

# DNS

image-20230630114702904

image-20230630114752068

image-20230630115027994

# Route 53 Introduction

image-20230630115310761

# Records

image-20230630115422802

# Types

image-20230630120224454

# TTL

image-20230630120742347

# Hosted Zones

image-20230630120450862

image-20230630120630635

# Alias

image-20230630121511603

# CNAME vs Alias

image-20230630121052650

# Alias Records Targets

image-20230630121550672

# Health Checks

image-20230630225720145

# an Endpoint

image-20230630230314487

# Calculated

image-20230630230841753

# Private

image-20230630231141292

# Routing Policies

image-20230630223028638

# Simple

image-20230630223236084

# Weighted

image-20230630224246723

# Latency

image-20230630224415479

# Failover

image-20230630232216504

# Geolocation

image-20230630232312900

# Geoproximity

image-20230630232506933

image-20230630232523387

image-20230630232534959

# IP-based

image-20230630232726916

# Multi Value

image-20230630232834087

# Domain Registrar vs DNS Service

image-20230630232957217

image-20230630233015072

image-20230630233048541

# Hands on

sudo yum install -y bind-utils
nslook
dig
1
2
3
image-20230704123109861

# 【11】Classic Solutions Architecture

# Section Introduction

image-20230704123145547

# Stateless vs Stateful

无状态应用:Stateless Application 是指并不会在会话中保存下次会话中去要的客户端数据。 每一个会话都像首次执行一样,不会依赖之前的数据进行响应。

有状态的应用: Stateful Application 是指会在会话中保存客户端的数据,并在客户端下一次的请求中来使用那些数据。

# Stateless - WhatIsTheTime.Com

# 1 - start

image-20230704124028502

# 2 - vertically

image-20230704124155083

# 3 - horizontally

image-20230704124242093

# 4 - horizontally

image-20230704124315257

# 5 - horizontally - add / remove

image-20230704124354000

# 6 - horizontally - ELB

image-20230704124520543

# 7 - horizontally - ASG

image-20230704124536153

# 8 - multi-AZ

image-20230704124747545

# 9 - reserve

image-20230704124804240

# summary

image-20230704124815513

# Stateful - MyClothes.com

# start

This will cause a problem: user may need to re-login once clients send requests because traffic doesn't go through the same EC2 instance.

image-20230704160647986

# stickiness

image-20230704160712353

# user cookies

image-20230704161030901

# server session

image-20230704161057383

# DB

image-20230704161122303

# read replicas

image-20230704161149189

# lazy loading

image-20230704161222000

# survive disasters

image-20230704161239157

# security groups

image-20230704161303296

# summary

image-20230704161345527

# Stateful - MyWordPress.com

# EDS

image-20230704204833905

# Aurora

image-20230704205123566

# EBS

image-20230704205140238

What if EC2 instances need to share file with each other?

image-20230704205201188

# EFS

image-20230704205214571

# summary

image-20230704205223812

# Instantiating App

image-20230704205527578

image-20230704205547993

# typical architecture

image-20230704205728321

# problems

image-20230704205917418

# 【12】Elastic Beanstalk

image-20230704210932859

# components

image-20230704211614636

# supported platforms

image-20230704211728385

# web server VS worker

image-20230704211745130

# deployment modes

image-20230704212904989

# 【13】S3

  • Buckets are defined at the region level

  • image-20230704223849949

  • image-20230704224933271

# Moving between classes

image-20230705111200106

# Lifecycle Rules

image-20230705142623378

# scenario 1

image-20230705210756571

# scenario 2

image-20230705211142681

# Storage Class Analysis

image-20230705211611344

# Requester Pays

image-20230705211727671

# Event Notifications

image-20230705211824973

# IAM permissions

image-20230705211839799

# EventBridge

image-20230705211926417

# Baseline Performance

image-20230705212039295

# Performance

image-20230705212129009

# Byte-Range Fetches

image-20230705212239930

# S3 Select & Glacier Select

image-20230705212409365

# Batch Operations

image-20230705213008360

# 【14】S3 Security

# Object Encryption

image-20230711221358101

# Server-Side Encryption

# SSE-S3

image-20230711221501790

# SSE-KMS

image-20230711221528878

# Limitation

image-20230711221718999

# SSE-C

image-20230711221758532

# Client-Side Encryption

image-20230711221902380

# Encryption in transit

image-20230711222034202

# Policy - force encryption in transit

image-20230711222231363

# Default vs Bucket Policies

image-20230711222404188

# Cross-Origin Resource Sharing(CORS)

image-20230711222538738

# S3 - CORS

image-20230711223612870

# MFA Delete

image-20230711223927616

# Access Logs

image-20230711224319947

# warning

image-20230711224406281

# Pre-Signed URLs

image-20230711224635101

# Glacier Vault Lock

image-20230711224830914

# Object Lock

image-20230711225030862

# Access Points

image-20230711225127460

# VPC Origin

image-20230711225310040

# Object Lambda

image-20230711225514817

# 【15】Global Infrastructure

# CloudFront

DDoS protection (because worldwide), integration with Shield, AWS Web Application Firewall

# Origins

image-20230712210037910

image-20230712210130349

# S3 as an Origin

image-20230712210152320

# ALB / EC2 as an Origin

image-20230712211034095

# Geo Restriction

image-20230712211110255

# Pricing

image-20230712211151175

image-20230712211239687

image-20230712211300140

# Cache Invalidations

image-20230712211351122

# Unicast IP vs. Anycast IP

image-20230712211455533

image-20230712211710510

# AWS Global Accelerator

image-20230712211916461

image-20230712212210694

# Comparison

# CloudFront vs. S3 Cross Region Replication

image-20230712210519471

# AWS Global Accelerator vs. CloudFront

image-20230712212820053

# 【*】Quiz

# AMI

image-20230625111618232

image-20230625111630933

image-20230625112128717

image-20230625112141687

# ELB

image-20230628175632220

image-20230628175700289

image-20230628175918918

image-20230628175933683

image-20230628220120450

image-20230628221303686

# ASG

image-20230628220901128

# RDS

image-20230630002318248

image-20230630002328555

image-20230630002339240

# Aurora

image-20230630002347298

image-20230630002351684

# Route 53

image-20230630234019977

# Health Checks

image-20230630234107450

# S3

# S3 Select

image-20230706123806201

红色高跟鞋
峰源萨克斯