Let’s Get Certified
Module 07 / 07 · Usage and optimization

Explain a bill and assemble an audit trail

Start with the unit of measurement. A named seat, a minute of runner execution and a stored artifact answer different billing questions.

Use a unit that matches the question

A finance report shows 400 assigned seats but a CI cost increase. Seat assignment describes access to the product. For metered services, break usage down by product, repository, runner type, duration and retention interval. Compare equal time windows and consider different rates before comparing totals. Measure queue time separately from compute time. An idle-looking personal account may operate an integration; investigate ownership before removing its seat.

For an audit, set a UTC time window and identify the actor, action, organization and resource. Stream or export the supported events to the approved retention system where required. Look for actual authorization grants alongside membership changes. Use aggregate adoption trends, such as active repositories among those enabled, to design coaching or reclaim unused resources. Separate individual activity records from the aggregate data the finance team needs.

For adoption, define an eligible population, a time window and what action counts. For an invoice, use the metered unit and billed resource class. For an access incident, use the audit event and effective permission. Mixing the three can lead to reclaiming a license when the actual cost increase came from a change in runner size.

Worked case 1

A report says runner minutes fell 20 percent while the bill stayed flat.

Check your reasoning

Compare the types and rates of runners, included allowances, storage and billing periods. A change to a more expensive machine can offset fewer minutes. Confirm the explanation on a per-repository breakdown.

Worked case 2

One organization reports an unexplained ruleset change last Tuesday.

Check your reasoning

Narrow the audit query to the organization, resource, action and UTC interval. Preserve the actor and event evidence, then inspect current ruleset settings. Escalate to Support with timestamps and diagnostics when the evidence points to service behavior outside the administrator's control.

Reconcile runner minutes and cost

These invented rates use integer cost units per minute. Run the snippet in Python 3 to compare identical billing windows, then explain why a falling total of minutes can accompany a rising bill.

rates = {"standard": 2, "large": 8}
periods = [{"standard": 900, "large": 100},
           {"standard": 600, "large": 200}]
for usage in periods:
    minutes = sum(usage.values())
    cost = sum(usage[machine] * rates[machine] for machine in usage)
    print(minutes, cost)
Check your output

The first period has 1,000 minutes and costs 2,600 units. The second has 800 minutes and costs 2,800 units. An additional large-runner minute costs four standard-runner minutes in this exercise. Use actual billable units and current rates for a real investigation.

GitHub documentation · GH-100 skills outline

Related lesson in GitHub Actions. Reduce CI minutes without losing release evidence.

Reviewing package cost and access together

Compare two package versions with different retention periods. Identify the publishing workflow’s identity, the package visibility, its consumers and its stored size. Before removing a version to save storage, verify that deployed builds can still install or pull their required version.

Practice with the recording

The Actions bill rises while active-user counts stay flat. Which comparison can identify the change?

Check your reasoning

Group metered usage by repository, workflow, runner type and period. Compare execution counts, duration and artifact retention with the prior period. Seat usage and metered compute can move independently, so each needs its own denominator.

Microsoft Learn · GH-100 episode 7 · 10:15

Apply the current exam objectives

Separate recurring seat charges, Actions compute and Packages storage in the usage export. Assign each charge to an owner before optimizing it. For package growth, inspect publish frequency and retention of versions separately from the cost of the workflow that built them.

Separating subscriptions and metered usage · 7:20

Publishing a container image to GitHub Packages · 4:29

Adoption versus consumption

A team increases build frequency while a different team acquires unused seats. Use activity reports for adoption, usage exports for charges and the audit log for administrative changes. Choose a separate owner and a measurable improvement for each team.

Knowledge check

Explain a bill and assemble an audit trail quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · An audit event with no current owner · Worked example · Attributing a usage increase