Skip to content

Chapter 02 - Architecture Map

本章目標

看完這章後,你應該可以回答:

  • 一個典型 AWS 架構可以拆成哪些層?
  • 每一層常見服務是什麼?
  • SAA-C03 題目怎麼把服務放進架構位置?
  • 後續章節要怎麼沿著架構層次展開?

一句話

SAA-C03 不應該用「服務清單」讀,而應該用「架構位置」讀。

先知道服務在系統裡扮演什麼角色,再去背細節,會快很多。

text
Users

Route 53 / CloudFront / WAF

ALB / NLB / API Gateway

EC2 / Auto Scaling / ECS / Lambda

RDS / DynamoDB / S3 / EFS / ElastiCache

SQS / SNS / EventBridge / Step Functions

CloudWatch / CloudTrail / Config / GuardDuty

1. 使用者入口層

這一層處理「使用者怎麼進來」。

常見服務:

  • Route 53
  • CloudFront
  • AWS WAF
  • AWS Shield
  • ACM

常考問題:

  • 全球使用者要低 latency:CloudFront
  • DNS failover:Route 53
  • 防止常見 Web 攻擊:WAF
  • TLS certificate:ACM
  • DDoS protection:Shield

2. 網路層

這一層處理「資源放在哪裡,誰可以連誰」。

常見服務與概念:

  • VPC
  • public subnet / private subnet
  • route table
  • internet gateway
  • NAT gateway
  • security group
  • network ACL
  • VPC endpoint
  • VPC peering / Transit Gateway
  • Site-to-Site VPN / Direct Connect

常考問題:

  • private subnet 裡的 EC2 要出網路更新套件:NAT gateway
  • S3 不走 public internet:Gateway endpoint
  • 多個 VPC 集中連線:Transit Gateway
  • security group 和 NACL 差異:stateful vs stateless

3. 運算層

這一層處理「程式在哪裡跑」。

常見服務:

  • EC2
  • Auto Scaling Group
  • Elastic Load Balancing
  • Lambda
  • ECS / Fargate
  • EKS
  • Elastic Beanstalk

常考問題:

  • 需要完整控制作業系統:EC2
  • 需要自動擴縮 EC2:Auto Scaling Group
  • 短時間事件驅動任務:Lambda
  • 容器但不想管 server:Fargate
  • 分散流量:ALB / NLB

4. 資料層

這一層處理「資料放在哪裡」。

常見服務:

  • S3
  • EBS
  • EFS
  • FSx
  • RDS
  • Aurora
  • DynamoDB
  • ElastiCache
  • Redshift

常考問題:

  • object storage:S3
  • block storage 給 EC2:EBS
  • shared file system:EFS
  • relational database:RDS / Aurora
  • key-value / serverless NoSQL:DynamoDB
  • cache:ElastiCache
  • analytics warehouse:Redshift

5. 整合與解耦層

這一層處理「服務之間怎麼不要互相拖垮」。

常見服務:

  • SQS
  • SNS
  • EventBridge
  • Step Functions
  • API Gateway
  • Kinesis

常考問題:

  • producer 和 consumer 解耦:SQS
  • 一對多通知:SNS
  • event bus / SaaS events:EventBridge
  • 多步驟 workflow:Step Functions
  • 對外提供 API:API Gateway
  • streaming data:Kinesis

6. 安全與治理層

這一層處理「誰做了什麼,資料是否安全,系統是否合規」。

常見服務:

  • IAM
  • KMS
  • Secrets Manager
  • Systems Manager Parameter Store
  • CloudTrail
  • AWS Config
  • GuardDuty
  • Security Hub
  • Organizations / SCP

常考問題:

  • 權限最小化:IAM policy / role
  • 加密金鑰管理:KMS
  • 密碼輪替:Secrets Manager
  • API audit:CloudTrail
  • 資源設定是否合規:Config
  • 威脅偵測:GuardDuty
  • 多帳號管控:Organizations / SCP

7. 可觀測性與營運層

這一層處理「怎麼知道系統正在發生什麼」。

常見服務:

  • CloudWatch metrics
  • CloudWatch logs
  • CloudWatch alarms
  • X-Ray
  • AWS Health Dashboard
  • Systems Manager

常考問題:

  • CPU、latency、error rate:CloudWatch metrics
  • log 查詢:CloudWatch logs
  • 觸發告警:CloudWatch alarms
  • 分散式 trace:X-Ray
  • patch / run command:Systems Manager

讀題定位法

看到題目時先問:

  1. 問的是入口問題,還是網路問題?
  2. 問的是運算選型,還是資料選型?
  3. 問的是解耦,還是同步回應?
  4. 問的是安全、可用性、效能,還是成本?
  5. 有沒有「must」「least operational overhead」「most cost-effective」這類限制詞?

只要先定位到架構層,選項通常會少一半。

Original learning content. Not official certification material.