Certopolis

AWS Certified Solutions Architect – Professional

CUR 2.0 Data Exports vs Cost Explorer for SAP-C03

AWS documents Cost Explorer as the console view: its resource-level and hourly data cover only the past 14 days and are enabled from the management account. A CUR 2.0 export in AWS Data Exports writes line items to Amazon S3 every day, optionally with resource IDs and split cost allocation data, for SQL queries in Athena.

What Cost Explorer can show, and for how long

The management account turns on extra data in the Cost Management preferences. Multi-year data gives up to 38 months of history at monthly granularity. Hourly granularity for all AWS services has no resource-level data. EC2 instance resource-level data is hourly. Resource-level data at daily granularity is enabled for the services you choose.

Hourly data and daily resource-level data cover only the past 14 days. A change to these settings can take up to 48 hours to show, and the preferences cannot be changed again for 48 hours after saving. The service list offers only services used in the organization in the last six months.

With resource-level data on, you group by Resource to see cost by resource ID. Services that were not enabled appear under No resource ID. Cost Explorer displays the 5,000 most costly resources per service. The data is not available in the Savings Plans and Reservations utilization and coverage reports.

AWS turns resource-level data off for the whole organization if nobody in the organization accesses it for three consecutive months. Multi-year data has the same rule. You can turn either back on in the preferences, and then wait for the data again.

What a CUR 2.0 export adds

In AWS Data Exports you create a standard data export and pick the CUR 2.0 table. Include resource IDs creates a line item for each resource and adds a tags column with data about users, accounts, cost categories and resources. Time granularity is hourly, daily or monthly. Billing and cost exports refresh up to once a day.

The export is delivered to an S3 bucket in the same account or in another account. The file format is Parquet, or CSV compressed with gzip or zip. File versioning either overwrites the existing file for a billing period or creates a new file on each refresh.

To query with Athena, deliver the export as Parquet with overwrite. Then point an AWS Glue crawler at the export's data folder so that it loads every delivered partition into a table. Athena queries that table in place. Aggregation happens in Athena: the SQL that defines an export supports column selection and row filters, not aggregations.

Split cost allocation data for shared resources

Split cost allocation data divides the cost of a shared resource among the workloads that use it. The shared resource keeps its own line item with the total, and extra line items show the allocation. For containers, the sub-resources are Amazon ECS tasks and Kubernetes pods on Amazon EKS, and each one's share comes from the instance's amortized cost and the CPU and memory it consumed.

For accelerated computing instances, AWS documents the allocation of GPUs, AWS Trainium and AWS Inferentia alongside CPU and memory for Amazon EKS pods and AWS PCS jobs. The feature also covers networking charges such as NAT gateways, and Amazon S3 buckets split by prefix.

Two steps are needed for containers. Turn on Amazon ECS, Amazon EKS or both in the Cost Management preferences. Then configure the legacy CUR or the CUR 2.0 export to include split cost allocation data. The new rows can increase the export's size significantly.

Where the exam catches people

  • Believing Cost Explorer's resource-level view stays on once enabled: AWS disables it when nobody in the organization accesses it for three consecutive months.
  • Believing hourly granularity for all services shows cost per resource: that option has no resource-level data. Only EC2 instances get hourly resource-level data.
  • Believing multi-year data gives daily or per-resource history: it is monthly granularity only, for up to 38 months.
  • Believing the Cost Management preference alone produces split cost allocation rows: the export must also be configured to include split cost allocation data.
  • Believing split cost allocation data counts GPUs for Amazon ECS tasks: the accelerator allocation is documented for Amazon EKS pods and AWS PCS jobs.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A retail company has 85 member accounts in AWS Organizations. Its FinOps analysts must run SQL queries that join each day's AWS charges with the company's internal product catalog. Every row must identify the resource that incurred the charge, its tags, and its cost category values, for all accounts. Billing data is to land in an Amazon S3 bucket named finops-billing, and the company does not want to run any database servers for this analysis. Which combination of steps should a solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Cost-Optimized Architecture Design building.

    Not that one: A,E is right. In the game your Cost-Optimized Architecture Design building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Delivered in Parquet, the export is what AWS's Athena setup expects: an AWS Glue crawler pointed at the export's data folder builds the table, and Athena then queries it in place, so the catalog join needs no servers.

    Written from docs.aws.amazon.com/cur/latest/userguide/dataexports-processing.html

  2. A company runs a storage review every four months. Before each review, analysts examine the daily cost of each Amazon S3 bucket and Amazon EBS volume across the organization for the previous seven days. Last year, the management account turned on resource-level data at daily granularity in AWS Cost Explorer for those two services, and the analysts used it for that review. Between reviews, nobody opens the resource view. The analysts must have the daily per-resource costs ready for every review without anyone repeating setup steps beforehand. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Cost-Optimized Architecture Design building.

    Not that one: A is right. In the game your Cost-Optimized Architecture Design building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Someone would have to re-enable it and wait up to 48 hours before every review. A CUR 2.0 export with resource IDs keeps writing daily line items to S3 regardless of whether anyone reads them, so the last seven days are always there to query with Athena.

    Written from docs.aws.amazon.com/cost-management/latest/userguide/ce-resource-daily.html

  3. A company is building a shared GPU platform on Amazon EC2 instances for the inference services of eight product teams. Teams will share the same instances. Finance will charge each team for its share of every instance hour, based on the GPUs, CPU, and memory that the team's workloads reserve, and the results must appear in the Cost and Usage Report. The platform team is choosing between Amazon ECS and Amazon EKS and has no other constraint on the orchestrator. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Cost-Optimized Architecture Design building.

    Not that one: A,B is right. In the game your Cost-Optimized Architecture Design building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The choice of orchestrator decides whether GPUs count. For accelerated instances, split cost allocation includes the reserved GPUs, Trainium, or Inferentia alongside CPU and memory only for Amazon EKS pods. On Amazon ECS, the same data would divide each instance by CPU and memory alone, which is not the basis finance asked for.

    Written from docs.aws.amazon.com/cur/latest/userguide/split-cost-allocation-data.html

Ask for something