Lesson content
Read, practise, then check your understanding
Google Cloud Pricing and Billing
Google Cloud charges vary by product, location, consumption dimension, commitment, data movement, support, and licensing. Billing accounts fund projects, while budgets, reports, cost export, labels, and FinOps practices connect spend to ownership.
Core ideas
- The Pricing Calculator estimates a planned architecture but must be validated against actual meters.
- Budgets generate notifications; they do not automatically enforce a hard cap unless automation acts on them.
- Sustained use discounts can apply automatically to eligible Compute Engine use.
- Committed use discounts exchange a term commitment for discounts on eligible stable usage.
Design and operating model
Estimate before deployment, attach projects to the correct billing account, apply labels, create budgets and anomaly processes, and export detailed billing data to BigQuery for analysis. Remove idle resources, right-size, schedule development environments, tune storage retention, then evaluate commitments.
Example
SELECT
service.description AS service,
ROUND(SUM(cost + IFNULL((SELECT SUM(c.amount) FROM UNNEST(credits) c), 0)), 2) AS net_cost
FROM `billing_export.gcp_billing_export_v1_*`
WHERE usage_start_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
GROUP BY service
ORDER BY net_cost DESC;
Run examples in a disposable training project. Replace project IDs, Regions, identities, resource names, sizes, and policies with reviewed values, and verify current Google Cloud CLI and service requirements before production use.
Production guidance
- Review external IPs, load balancing, logging, snapshots, idle disks, database capacity, and network egress.
- Do not remove security evidence, backups, or redundancy without explicit risk and recovery analysis.
- Buy commitments only for attributable, stable usage with a named owner.
The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.
Knowledge check
Answer every question correctly to complete this chapter.
0 of 10 checks passed
Your progress is saved on this device.