Let’s Get Certified
Module 14 / 22 · Cost-Optimized Architecture Design

Reconcile product charges to the consolidated bill

Construct a shared-cost allocation that can be reproduced, explained and monitored by its owners.

Task 3.3 · Reconcile product charges to the consolidated bill

Two divisions dispute the model platform bill

The broker account incurred $12,000 in direct model usage and $3,000 in shared operating cost. Division A consumed 75% of model cost after accounting for model and token classes. The divisions agreed to split operating cost equally. Who pays what, and how do you prove it?

Compare your design with the worked answer

Allocate $9,000 + $1,500 to A and $3,000 + $1,500 to B. Confirm both sum to the $15,000 bill on the agreed cost basis. Preserve usage records and the versioned split rule. For the rest of the estate, activate allocation tags, prevent invalid tagged creates where supported and report uncovered costs.

Implement both threshold and anomaly notifications. An unexpected model usage spike may merit investigation several weeks before the cumulative monthly budget is exceeded.

3.3.1 · Use a durable attribution vocabulary

Agree on stable cost-center, workload and environment values, an owner for changes, and propagation rules for provisioned resources. Activate eligible cost allocation tags in Billing and monitor missing coverage. Shared and untaggable resources need a separate attribution method. Avoid sensitive information in tags.

3.3.2 · Reconcile summarized spend to billing line items

Use Cost Explorer to find trends, then use Cost and Usage Reports or Data Exports for detailed line-item analysis. Select the cost basis deliberately, such as amortized commitments versus cash charges. Separate credits, refunds, shared costs and billing periods before comparing a team report to the consolidated bill.

3.3.3 · Enforce tags where the API supports it

Tag policies standardize keys and permissible values on supported resources. For supported create APIs, an SCP or IAM condition can require request tags. Use Config or inventory to detect gaps, including existing resources or services without tag-on-create support. Design exceptions for trusted service-created resources.

3.3.4 · Agree how shared spend will be distributed

Showback presents allocated spend; chargeback posts an internal financial charge. Specify how fixed shared capacity, variable usage and unattributed residuals are apportioned. For a central AI service, record tenant-specific usage with model and input/output token classes. Reconcile driver totals to billed cost and retain the attribution rule version.

3.3.5 · Pair budget limits with unexpected-spend detection

Budgets tracks defined actual or forecast thresholds. Cost Anomaly Detection identifies unusual spend patterns and associated contributors. Route notifications to an owner who can inspect the line items and choose an appropriate response. Billing latency makes these unsuitable as hard real-time request cutoffs.

Apply the video example

The backup discussion locates a service charge in Cost Explorer. Take that billing entry as the starting point: reproduce its line items, identify the paying account, then decide which consumer or shared-cost pool should bear it.

freeCodeCamp · 64:25:00 in AWS Backup

Allocate a shared bill to the cent

Two teams own $9,000 and $3,000 of direct cost. A $3,000 shared bill is split evenly between a central budget and a metered team pool. Allocate that pool by a 3:1 usage ratio and reconcile the invoice. Then distribute one cent across two equally weighted teams. Predict which team receives it under the stated tie rule. Save the code as allocate.py and run python3 allocate.py.

def allocate(cents, weights):
    total = sum(weights.values())
    shares = {}
    remainders = {}
    for name, weight in weights.items():
        shares[name], remainders[name] = divmod(cents * weight, total)
    remaining = cents - sum(shares.values())
    order = sorted(shares, key=lambda name: (-remainders[name], name))
    for name in order[:remaining]:
        shares[name] += 1
    return shares

direct = {"claims": 900000, "policy": 300000}
shared = 300000
central = shared // 2
usage = {"claims": 3, "policy": 1}
team_pool = allocate(shared - central, usage)
totals = {team: direct[team] + team_pool[team] for team in direct}
assert central + sum(totals.values()) == shared + sum(direct.values())
for team, cents in totals.items():
    print(f"{team}: ${cents // 100:,}.{cents % 100:02}")
print(f"central: ${central // 100:,}.{central % 100:02}")
print(allocate(1, {"claims": 1, "policy": 1}))
Check the output and change one assumption
claims: $10,125.00
policy: $3,375.00
central: $1,500.00
{'claims': 1, 'policy': 0}

Direct ownership stays fixed. The metered pool assigns $1,125 to claims and $375 to policy. Integer cents and allocation of the largest fractional remainders preserve the invoice total. The alphabetical tie rule makes repeated runs reproducible. Change the weights to 1:3 to see why a disputed usage metric changes chargeback even when the provider bill stays fixed.

Official SAP-C03 task 3.3

Return to the objective map

Knowledge check

Reconcile product charges to the consolidated bill quiz

Answer 5 questions. Check each answer for an explanation.