Cost optimization 不是「選最便宜的 service」,而是在滿足 outcome 前提下,降低含 operations、data transfer、idle capacity、license 與 recovery risk 的 total cost。
按穩定順序套 cost levers
- 刪 idle resource 與不必要 data movement。
- Right-size 並啟用 elasticity。
- 依 access 選 storage class/retention。
- 只對 steady baseline 做 commitment。
- Interruption-tolerant 額外工作用 Spot。
- 降低 operations 的價值大於 unit price 差異時,選 managed/serverless。
- 用 Cost Explorer、Budgets、anomaly detection、tags、Cost and Usage Report 量測。
特別注意 NAT Gateway processing、cross-AZ/Region transfer、public IPv4、idle load balancer、過度保留 logs、頻繁取回 archival storage。VPC endpoint 或 CloudFront 有時能同時降成本與 latency。
高頻混淆對照
| 別混淆 | 決策 |
|---|---|
| Multi-AZ / read replica | Failover / read scaling |
| SG / NACL | Stateful resource / stateless subnet |
| SQS / SNS | Work queue / fan-out |
| Kinesis Streams / Firehose | Retain/process / buffer/deliver |
| CloudWatch / CloudTrail / Config | Operations / API audit / configuration |
| CloudFront / Global Accelerator | HTTP cache / network acceleration |
| Gateway / interface endpoint | S3+DynamoDB route / ENI-based PrivateLink |
| Pilot light / warm standby | Core only / scaled-down full stack |
真的會讓你變強的刷題紀錄
每題寫四格:決定性關鍵詞、chosen architecture、rejected alternative、可重用 rule。依 rule(例如「availability vs read scaling」)重看錯題,不要依 service chapter 背。兩個答案都像對時,找哪個沒滿足某條 requirement,再比 operations 與 cost。
最終視角: 這場考試獎勵明確 trade-off。「一律 serverless」、「一律 Multi-Region」這種絕對句通常是錯的。
最後檢查
- 我能追 identity、network、data、failure path 嗎?
- 我能說明第二好答案違反哪條需求嗎?
- 我知道哪個 service 擴 read、write、compute 或 queue 嗎?
- Recovery scope 是根據 RTO/RPO 嗎?
- Cost 有算 operations 與 transfer 嗎?