AWS Cost Explorer

The interactive place you go to ask "where did the money go?" — one bill, re-sliced live by service, account, region, instance type or tag, from whole-org totals down to a single resource-hour. Everything it shows is backward-looking, plus one forecast line pushed up to 12 months ahead.

Nơi tương tác để hỏi "tiền đi đâu?" — cùng một hoá đơn, cắt lại tức thời theo service, account, region, instance type hay tag, từ tổng toàn tổ chức xuống tới từng giờ của một tài nguyên. Mọi thứ nó hiện đều nhìn về quá khứ, cộng thêm một đường dự báo kéo tới 12 tháng phía trước.

Reach for it / not the right toolKhi nào dùng / khi nào không

Reach for Cost ExplorerChọn Cost Explorer

  • "The bill jumped 30% last month — which service, which account, which region?" Group by, filter, done in a minute."Hoá đơn tháng rồi tăng 30% — service nào, account nào, region nào?" Group by, filter, xong trong một phút.
  • Showing each team its own spend, sliced by an activated CostCenter or Project tag.Cho mỗi team thấy chi phí của chính họ, cắt theo tag CostCenter hay Project đã kích hoạt.
  • Sizing a Savings Plan or Reserved Instance commitment before you sign up for one or three years.Ước lượng mức cam kết Savings Plan hay Reserved Instance trước khi ký một hoặc ba năm.
  • Feeding a budget number for next quarter — the 12-month forecast with its confidence band.Lấy con số ngân sách cho quý tới — dự báo 12 tháng kèm dải tin cậy.
  • A quick scripted answer: the Cost Explorer API (GetCostAndUsage) returns the same aggregates.Cần câu trả lời nhanh bằng script: Cost Explorer API (GetCostAndUsage) trả về đúng các số tổng đó.

Not the right toolKhông phải chỗ dùng

  • Alerting when spend passes a number, or when a forecast says it will → Budgets. Cost Explorer never notifies anyone.Cảnh báo khi chi phí vượt một ngưỡng, hoặc khi dự báo nói là sẽ vượt → Budgets. Cost Explorer không bao giờ gửi thông báo cho ai.
  • Joining billing data to your own systems, or arbitrary SQL over every line item → CUR in S3 + Athena.Ghép dữ liệu billing với hệ thống nội bộ, hay chạy SQL tuỳ ý trên từng dòng → CUR trong S3 + Athena.
  • Right-sizing EBS, Lambda, ECS on Fargate, ASGs, RDS — that breadth (and the performance-risk view) is Compute Optimizer.Right-sizing cho EBS, Lambda, ECS trên Fargate, ASG, RDS — độ phủ đó (và góc nhìn rủi ro hiệu năng) là của Compute Optimizer.
  • Catching a weird spike you didn't think to look for — you'd need to know the threshold. That's Cost Anomaly Detection.Bắt một cú tăng bất thường mà bạn không nghĩ tới để mà ngồi soi — bạn sẽ phải biết trước ngưỡng. Đó là việc của Cost Anomaly Detection.
  • Anything real-time. Billing data lands with hours of lag; this is not CloudWatch.Bất cứ thứ gì thời gian thực. Dữ liệu billing về trễ hàng giờ; đây không phải CloudWatch.

One dataset, re-slicedMột tập dữ liệu, cắt lại nhiều kiểu

The mental model is small: there is one pile of cost-and-usage records. Group by decides how the bars split, filter decides which records are in the pile at all, granularity decides how wide a bar is. Nothing else changes. Mô hình tư duy rất gọn: chỉ có một đống bản ghi chi phí và mức dùng. Group by quyết định cột được chia thế nào, filter quyết định bản ghi nào còn nằm trong đống đó, granularity quyết định một cột rộng bao nhiêu. Ngoài ra không có gì khác.

A group-by selector on the left lists Instance Type (selected), Service, Linked Account, Region and Usage Type, and Tag. An arrow points from it to a stacked bar chart of monthly cost: six solid bars for actual months, each split into four coloured segments, then four dashed outline bars continuing to the right as forecast, up to twelve months ahead. A note says the Tag dimension only lists keys activated as cost allocation tags, and a band at the bottom contrasts free monthly and daily granularity against hourly and resource-level granularity, which must be opted into and is charged extra. GROUP BY Instance Type Service Linked Account Region · Usage Type Tag Tag only lists keys activated as cost allocation tags MONTHLY COST · SAME DATA actual forecast · up to 12 months $0 $50k $100k Jan Feb Mar Apr May Jun Jul Aug Sep Oct t3.large m5.xlarge c6g.2xlarge other monthly / daily granularity: on by default, free hourly + resource-level: opt in, charged extra

Switch the group-by and every bar re-splits — same total, different story. The forecast is a projection of your own past usage, not a plan: it does not know about the migration you are about to start.

Đổi group-by là mọi cột tự chia lại — vẫn tổng đó, nhưng câu chuyện khác. Đường dự báo chỉ là phép ngoại suy từ mức dùng quá khứ của chính bạn, không phải kế hoạch: nó không biết đợt migration bạn sắp làm.

Turning on the fine granularityBật độ chi tiết cao Hourly and resource-level data is off until you enable it in Billing preferences, it is billed per record, and it only backfills going forward — enabling it today does not give you last quarter at hourly resolution. Turn it on before the investigation you'll need it for. Dữ liệu theo giờ và theo tài nguyên tắt cho đến khi bạn bật trong Billing preferences, được tính tiền theo số bản ghi, và chỉ có dữ liệu từ lúc bật trở đi — bật hôm nay không cho bạn quý trước ở mức từng giờ. Hãy bật trước đợt điều tra mà bạn sẽ cần đến nó.

What it recommends, and who does it betterNó gợi ý gì, và ai làm tốt hơn

Cost Explorer is not only a chart — it ships three opinionated outputs. Know which one an exam scenario is fishing for, and where each one hands off to a sibling service. Cost Explorer không chỉ là biểu đồ — nó còn cho ra ba kết quả có chính kiến. Cần biết tình huống đề đang nhắm cái nào, và mỗi cái bàn giao cho service anh em nào.

Savings Plans recommendationGợi ý Savings Plans reads your steady-state hourly spend and suggests the $/hour commitment, term (1 or 3 yr) and payment option with the best estimated saving. Also does RI recommendations.đọc mức chi tiêu ổn định theo giờ rồi đề xuất mức cam kết $/giờ, kỳ hạn (1 hoặc 3 năm) và cách trả tiền cho mức tiết kiệm ước tính tốt nhất. Cũng có gợi ý RI.
EC2 right-sizingRight-sizing EC2 EC2 only — flags idle and over-provisioned instances and suggests a smaller size or termination. Purely cost-driven.chỉ EC2 — đánh dấu instance nhàn rỗi hoặc cấp thừa và đề xuất size nhỏ hơn hoặc tắt hẳn. Thuần tuý dựa trên chi phí.
Compute OptimizerCompute Optimizer the wider, ML-backed one: EC2, ASGs, EBS volumes, Lambda, ECS on Fargate, RDS — and it weighs performance risk, not just price.bản rộng hơn, có ML: EC2, ASG, EBS volume, Lambda, ECS trên Fargate, RDS — và nó cân nhắc cả rủi ro hiệu năng, không chỉ giá.
Cost Anomaly DetectionCost Anomaly Detection ML learns each monitor's normal spend pattern and alerts on deviations via SNS or email — you set no threshold. Monitor by service, linked account, cost category or tag.ML học mẫu chi tiêu bình thường của từng monitor rồi cảnh báo khi lệch, qua SNS hoặc email — bạn không đặt ngưỡng nào. Giám sát theo service, linked account, cost category hoặc tag.
Threshold or no threshold — that's the tellCó ngưỡng hay không — đó là dấu hiệu If the scenario gives you a number ("alert at $5,000"), it wants Budgets. If it says "unusual", "unexpected", "without defining a threshold" or "we don't know what normal looks like", it wants Cost Anomaly Detection. If it says "understand why it went up", it wants Cost Explorer. Nếu tình huống đưa ra một con số ("cảnh báo ở $5,000"), nó muốn Budgets. Nếu nói "bất thường", "ngoài dự kiến", "không cần đặt ngưỡng" hay "chúng tôi không biết thế nào là bình thường", nó muốn Cost Anomaly Detection. Nếu nói "hiểu vì sao nó tăng", nó muốn Cost Explorer.

Cost Explorer vs CUR vs BudgetsCost Explorer, CUR và Budgets

Three tools over the same billing data, split by time direction and fidelity. Cost Explorer looks back at aggregates in a console; the Cost and Usage Report dumps every line item to S3 for real SQL; Budgets looks forward and shouts. Ba công cụ trên cùng dữ liệu billing, khác nhau ở hướng thời gian và độ chi tiết. Cost Explorer nhìn lại các số tổng trong console; Cost and Usage Report đổ từng dòng ra S3 để chạy SQL thật; Budgets nhìn tới và la lên.

Cost Explorer CUR Budgets
ShapeHình dạng interactive console + API, pre-aggregatedconsole + API tương tác, đã tổng hợp sẵn CSV / Parquet in S3, one row per line item, hourlyCSV / Parquet trong S3, mỗi dòng một line item, theo giờ a rule + notification, no visualisationmột quy tắc + thông báo, không có trực quan hoá
DirectionHướng backward — plus a 12-month forecast you read yourselfnhìn lại — kèm dự báo 12 tháng mà bạn tự đọc backward only — it is a record, not an opinionchỉ nhìn lại — nó là bản ghi, không phải nhận định forward — actual or forecasted breach triggers an alertnhìn tới — vượt thực tế hoặc vượt theo dự báo đều kích cảnh báo
Query powerKhả năng truy vấn fixed group-by / filter dimensionstập chiều group-by / filter cố định arbitrary SQL via Athena, or load to Redshift / QuickSightSQL tuỳ ý qua Athena, hoặc nạp vào Redshift / QuickSight none — you filter the budget's scope, that's allkhông có — bạn chỉ giới hạn phạm vi của budget, hết
Reach for it whenDùng khi a human needs an answer nowmột người cần câu trả lời ngay bây giờ chargeback, custom BI, anything Cost Explorer can't group bychargeback, BI tự dựng, bất cứ thứ gì Cost Explorer không group by được someone must be told without lookingphải báo cho ai đó mà không cần họ vào xem

Things that catch you outNhững chỗ dễ vấp

  • Tags are invisible until activated. A resource can be perfectly tagged and still show up under "no tag key" — Cost Explorer only offers keys you activated in Billing, and activation is not retroactive, so the tag appears on data from that point on. See Cost Allocation Tags. Tag vô hình cho đến khi được kích hoạt. Một tài nguyên có thể đã gắn tag đầy đủ mà vẫn nằm trong nhóm "no tag key" — Cost Explorer chỉ đưa ra những key bạn đã kích hoạt trong Billing, và việc kích hoạt không hồi tố, nên tag chỉ hiện trên dữ liệu từ thời điểm đó trở đi. Xem Cost Allocation Tags.
  • Enable it in the management account. In an Organization, the payer sees everything and can group by linked account; a member account sees only itself — and the payer can switch member access off entirely. Hãy bật ở management account. Trong Organization, tài khoản trả tiền thấy hết và có thể group by linked account; account thành viên chỉ thấy chính nó — và payer có thể tắt hẳn quyền truy cập của thành viên.
  • First enable takes up to 24 hours to populate, and daily figures keep settling for a day or two. Don't act on the current month's last bar. Lần bật đầu tiên mất tới 24 giờ để có dữ liệu, và số theo ngày còn chốt lại thêm một hai ngày nữa. Đừng ra quyết định dựa trên cột cuối của tháng hiện tại.
  • The API is not free — each paginated GetCostAndUsage request is charged. A dashboard polling it every minute is a line item of its own. API không miễn phí — mỗi request GetCostAndUsage có phân trang đều bị tính tiền. Một dashboard gọi nó mỗi phút sẽ tự trở thành một khoản chi riêng.
  • "Show costs as" changes the number: unblended is what each account was charged, amortised spreads upfront RI and Savings Plan payments across the term, blended is an Organization-wide average. Two people comparing different modes will never agree. "Show costs as" làm đổi con số: unblended là số mà từng account bị tính, amortised trải khoản trả trước của RI và Savings Plan ra cả kỳ hạn, blended là mức trung bình toàn Organization. Hai người so hai chế độ khác nhau sẽ không bao giờ khớp.
  • The forecast is extrapolation with a confidence interval, computed from your history. New workloads, one-off migrations and seasonal launches are exactly what it gets wrong. Dự báo là ngoại suy kèm khoảng tin cậy, tính từ lịch sử của bạn. Workload mới, đợt migration một lần và các đợt ra mắt theo mùa chính là những thứ nó đoán sai.

Exam reflexesPhản xạ khi thi

The question says…Đề nói… AnswerTrả lời
"Visualise and understand cost across all accounts, broken down by service or team""Trực quan hoá và hiểu chi phí trên mọi account, tách theo service hay team" Cost Explorer in the management account, group by linked account / tagCost Explorer ở management account, group by linked account / tag
"Forecast spend for the next year from past usage""Dự báo chi phí năm tới dựa trên mức dùng quá khứ" Cost Explorer forecast — up to 12 monthsDự báo của Cost Explorer — tới 12 tháng
"Alert us when spend exceeds $X or is forecast to""Cảnh báo khi chi phí vượt $X hoặc được dự báo sẽ vượt" Budgets — Cost Explorer never notifiesBudgets — Cost Explorer không hề gửi thông báo
"Detect unusual spend without defining a threshold""Phát hiện chi tiêu bất thường mà không cần đặt ngưỡng" Cost Anomaly Detection (ML) → SNS / emailCost Anomaly Detection (ML) → SNS / email
"Run custom SQL over every billing line item / build our own chargeback""Chạy SQL tuỳ ý trên từng dòng hoá đơn / tự dựng chargeback" CUR to S3 → Athena (→ QuickSight)CUR vào S3 → Athena (→ QuickSight)
"Right-size EBS, Lambda and Fargate too, weighing performance""Right-size cả EBS, Lambda và Fargate, có cân nhắc hiệu năng" Compute Optimizer — Cost Explorer right-sizing is EC2 onlyCompute Optimizer — right-sizing của Cost Explorer chỉ có EC2