AWS Systems Architect Professional

AWS Cost Explorer: Analyze, Filter, and Attribute Cloud Spending – SAP-C02 Study Guide

Learn how to use AWS Cost Explorer to analyze spending, filter costs by service and region, use tags and cost categories, and investigate unexpected charges for the SAP-C02 exam.

AWS Systems Architect ProfessionalAWS Systems Architect ProfessionalUpdated Sep 1, 2026
Study options
WatchComing later
ListenComing later
ReadAvailable
ReviewComing later

Study guide

Technical reference and lesson notes

Purpose of This Lesson

AWS Cost Explorer helps teams visualize, investigate, and attribute AWS spending over time. It is particularly useful when an account has unexpected charges and you need to determine which service, Region, resource characteristic, or organizational grouping generated the cost.

Cost Explorer is an analysis and investigation tool. It does not replace detailed billing exports, AWS Budgets, or billing alarms, but it provides an interactive way to explore cost and usage data in the AWS Management Console.

Key Concepts

Cost and usage visualization

Cost Explorer displays historical AWS cost data in charts and tables. Costs can be grouped and analyzed by dimensions such as:

  • AWS service
  • AWS Region
  • Instance type
  • Usage type
  • Purchase option
  • Linked account
  • Tags and cost categories, when configured
  • Other available billing and usage dimensions

The chart provides a high-level view of spending, while the underlying table gives a more detailed service-by-service or dimension-by-dimension breakdown. Data can also be downloaded as a CSV file for further analysis.

Time range and granularity

You can select a historical time range and choose the level of detail displayed:

  • Monthly granularity: Useful for trend analysis, reporting, and comparing spending across months.
  • Daily granularity: Useful for investigating when an unexpected charge began or identifying short-lived resources.

A monthly chart may hide a brief cost spike, whereas a daily view can reveal the exact period in which spending changed.

Filtering and grouping

Cost Explorer supports filtering the displayed data. A practical investigation sequence is:

  1. Identify the unexpected amount or period.
  2. Filter by Service to find the AWS product responsible.
  3. Filter by Region to locate where the charge occurred.
  4. Narrow the analysis using dimensions such as instance type, usage type, or purchase option.
  5. Use tags, cost categories, or ownership information to determine who or which team incurred the cost.
  6. Locate and remove, resize, or reconfigure the underlying resource if the charge was unintended.

For example, an unexpected EC2 charge can be narrowed by Region and instance type. This can distinguish a resource running in a rarely used Region from normal workloads in the primary Region.

Cost allocation tags

Cost allocation tags allow tagged resources to be associated with business or technical ownership, such as:

  • Department=Operations
  • Application=Payments
  • Environment=Production
  • Owner=DataTeam

After tags are activated for cost allocation, they can be used in cost analysis. Tags must be applied consistently and activated in the billing configuration; simply adding an arbitrary tag to a resource does not automatically make it available for cost reporting.

Tag-based cost allocation is only as reliable as the organization’s tagging governance. Untagged resources, inconsistent values, and resources that do not support the expected tagging behavior can reduce reporting accuracy.

Cost categories

AWS Cost Categories allow organizations to classify costs according to business rules. These classifications can represent departments, environments, products, or other internal groupings.

Unlike relying only on raw AWS service names, cost categories can provide a business-oriented view of spending. For example, multiple AWS services and accounts can be grouped into a single application or department category.

Creator and ownership analysis

Cost Explorer can expose creator or ownership-related information where the relevant billing data is available. This can help identify the IAM user or other principal associated with resource creation or incurred charges.

This information should be treated as an investigation aid rather than a complete audit trail. For definitive API activity and resource-change history, use services such as AWS CloudTrail alongside billing analysis.

Cost Explorer versus other cost tools

RequirementAppropriate AWS capability
Interactive investigation of historical spendingAWS Cost Explorer
Alert when actual or forecasted cost exceeds a thresholdAWS Budgets
Detailed, repeatable billing dataset for SQL or external analyticsAWS Cost and Usage Report (CUR)
API activity and identity investigationAWS CloudTrail
Centralized account and billing managementAWS Organizations and consolidated billing
Automatic optimization recommendationsAWS Cost Optimization Hub or service-specific tools

Exam-Relevant Takeaways

  • AWS Cost Explorer is used to visualize, filter, group, and investigate AWS costs and usage.
  • Cost Explorer can analyze spending by dimensions such as service, Region, instance type, and usage type.
  • Use daily granularity to investigate short-term spikes and monthly granularity for trend reporting.
  • Cost allocation tags must be activated before they can be used for cost allocation analysis.
  • Cost Categories organize spending according to business-defined rules, such as departments or applications.
  • Cost Explorer helps identify unexpected charges, but it does not by itself remove resources or prevent future spending.
  • Use AWS Budgets for threshold-based alerts and CloudTrail for detailed API and identity investigation.
  • A cost appearing in a bill does not necessarily identify the person responsible for creating the resource; correlate billing data with CloudTrail and resource metadata when attribution matters.

Architecture Decision Guide

SituationRecommended approachReason
Determine which AWS service generated an unexpected chargeCost Explorer filtered by serviceQuickly narrows the source of the charge
Determine which Region generated a chargeCost Explorer filtered by RegionHelps identify resources deployed outside the normal operating Region
Find when spending increasedUse daily granularity over the relevant time rangeReveals the start and duration of a cost spike
Report spending by department or applicationActivated cost allocation tags or Cost CategoriesMaps technical charges to business ownership
Receive an alert before a budget is exceededAWS BudgetsCost Explorer analyzes data but is not primarily an alerting service
Investigate which API principal created a resourceAWS CloudTrail, correlated with Cost ExplorerCloudTrail provides event and identity history
Build recurring chargeback reports from detailed billing dataAWS CUR exported to Amazon S3 and analyzed with query toolsBetter suited to large-scale, automated billing analytics

Common Exam Traps

  • Confusing Cost Explorer with AWS Budgets: Cost Explorer is primarily for interactive analysis; Budgets provides cost, usage, or reservation alerts.
  • Assuming tags are immediately usable for billing: A tag must be activated as a cost allocation tag, and billing data may not be available instantly.
  • Using Cost Explorer as a real-time monitoring system: Billing and usage data can have reporting delays. It is not a substitute for operational monitoring or immediate resource-state detection.
  • Assuming Cost Explorer deletes unwanted resources: It identifies spending patterns. Remediation requires actions through the relevant AWS service, automation, or governance controls.
  • Ignoring Regions: An unused-looking account can still incur charges from resources in a different Region. Always include Region in unexpected-cost investigations.
  • Treating creator attribution as a complete audit record: Use CloudTrail to confirm the API call, identity, timestamp, and request details.
  • Assuming monthly granularity is sufficient for every investigation: A short-lived resource or sudden usage increase may only be visible when the analysis is changed to daily granularity.

Real-World Engineer Notes

  • Establish a mandatory tagging strategy before teams begin relying on tag-based chargeback.
  • Use consistent, controlled tag values. Environment=prod, Environment=production, and Environment=Production may be treated as different values in reporting and automation.
  • Combine Cost Explorer with AWS Budgets so that teams can both investigate historical charges and receive proactive notifications.
  • When investigating a surprise charge, check more than the service name. Consider Region, account, usage type, purchase option, and the date the charge began.
  • Maintain a central inventory of accounts and Regions. This makes it easier to distinguish expected multi-Region architecture from accidental deployments.
  • For recurring financial reporting, export detailed billing data rather than manually downloading Cost Explorer charts each month.
  • Cost allocation is an organizational control as much as a technical feature. Account structure, tagging policies, and ownership standards determine whether the reports are useful.

Quick Reference Summary

  • Cost Explorer: interactive cost and usage analysis.
  • Granularity: daily for investigation, monthly for trends.
  • Common filters: service, Region, instance type, usage type, account, and purchase option.
  • Cost allocation tags: activated tags used to attribute costs to teams, applications, or environments.
  • Cost Categories: business-defined grouping of AWS charges.
  • Budgets: thresholds and notifications.
  • CloudTrail: API and identity evidence.
  • CUR: detailed billing dataset for automated reporting and analytics.

Flashcards

  1. Q: What is AWS Cost Explorer used for?

A: Interactive visualization, filtering, grouping, and analysis of AWS costs and usage over time.

  1. Q: When should daily granularity be used?

A: When investigating a short-lived resource, a sudden increase, or the precise period when spending changed.

  1. Q: When is monthly granularity more appropriate?

A: For spending trends, management reporting, and month-over-month comparisons.

  1. Q: Name two common Cost Explorer filters.

A: AWS service and Region. Other examples include instance type, usage type, account, and purchase option.

  1. Q: What must be done before a resource tag can support cost allocation reporting?

A: The tag key must be activated as a cost allocation tag in the billing configuration.

  1. Q: What problem do Cost Categories solve?

A: They classify AWS charges into business-defined groups such as departments, products, or applications.

  1. Q: Which service should provide threshold-based cost notifications?

A: AWS Budgets.

  1. Q: Which service provides detailed evidence of who made an AWS API call?

A: AWS CloudTrail.

  1. Q: Does Cost Explorer automatically terminate an expensive resource?

A: No. It identifies and analyzes charges; remediation must be performed separately.

  1. Q: Why should Region be included when investigating unexpected charges?

A: A resource may have been created in a Region that is not part of the account’s normal workload footprint.

Practice Questions

Question 1

A company notices an unexpected increase in its monthly AWS bill. The finance team wants to determine which AWS service and Region generated the additional cost. Which approach is most appropriate?

A. Use AWS CloudTrail to produce a monthly service-cost graph.
B. Use Cost Explorer and filter the results by service and Region.
C. Use Amazon CloudWatch to query consolidated billing charges.
D. Use AWS Budgets to identify the resource responsible for the charge.

Correct answer: B

Explanation: Cost Explorer is designed to interactively analyze spending and supports filtering by dimensions such as service and Region. CloudTrail identifies API activity, CloudWatch monitors operational metrics, and Budgets provides threshold-based notifications rather than detailed charge investigation.

Question 2

An organization wants to compare costs for its development and production environments. The environments are distributed across several AWS accounts and services. What should the organization implement first?

A. Activate a consistent environment cost allocation tag and apply it to supported resources.
B. Create a separate Cost Explorer dashboard for every EC2 instance.
C. Enable CloudTrail data events for all AWS services.
D. Use only the AWS service dimension in Cost Explorer.

Correct answer: A

Explanation: A consistently applied and activated cost allocation tag allows costs to be analyzed by environment across services and accounts. Cost Categories may also be useful for more complex business rules, but reliable tagging is a foundational requirement.

Question 3

A solutions architect must investigate an EC2-related charge that appeared for only two days. Which Cost Explorer configuration is most useful initially?

A. Monthly granularity with no filters.
B. Daily granularity filtered by EC2 and the relevant Region.
C. Monthly granularity filtered only by account name.
D. Daily granularity filtered only by tax.

Correct answer: B

Explanation: Daily granularity exposes short-lived charges, while EC2 and Region filters narrow the analysis to the likely source and location of the resource.

Question 4

A security team needs to confirm which IAM principal created an unexpectedly expensive resource and identify the API request that created it. Which combination provides the strongest investigation capability?

A. Cost Explorer and CloudTrail.
B. AWS Budgets and Amazon CloudWatch Logs only.
C. Cost Categories and AWS Trusted Advisor only.
D. Cost Explorer and Amazon Route 53 Resolver.

Correct answer: A

Explanation: Cost Explorer helps identify the charge and its billing dimensions. CloudTrail provides API event details, including the principal, timestamp, service, and request information needed to validate resource creation.

Question 5

A company wants an alert when its forecasted spending is likely to exceed a quarterly threshold. Which service should be used alongside Cost Explorer?

A. AWS Budgets
B. AWS CloudTrail
C. AWS Config
D. Amazon Inspector

Correct answer: A

Explanation: AWS Budgets supports cost and usage thresholds and can notify stakeholders when actual or forecasted spending approaches or exceeds a configured limit. Cost Explorer can then be used to investigate the source of the increase.