04

Cloud Engineer · Step 4 of 8 · 8 min

Cost basics and avoiding surprise bills

Understand how cloud bills grow and set guardrails before you create anything.

Pay as you go cuts both ways

Metered pricing is great when you use little. It also means a forgotten machine, a big database left running over a holiday, or a leaked key can run up charges quickly. Many beginners' first cloud story is a surprise bill.

Where the money goes

The main drivers are compute running by the hour, storage including old snapshots and backups, managed databases that run all the time, and data transfer. Moving data into the cloud is usually free; moving it out to the internet usually costs money, called egress.

Some services charge even when idle: load balancers, NAT gateways, public IP addresses and provisioned databases. Read the pricing page before you create one.

Free tiers and credits

AWS, Azure and Google Cloud all offer new accounts some free credits for a limited time, plus a set of always-free usage limits. The details change and differ by provider, so read the current free-tier page before you start, and note when credits expire.

Free does not mean unlimited. Going over a free limit, or picking a larger size, is billed like any other usage.

Guardrails that work

Before anything else, create a budget with email alerts at low amounts, such as 1 and 5 in your currency. Know that budgets alert you; by default they do not stop spending. Tag resources by project so you can see what costs what. Delete things the same day you finish with them, and check the billing page weekly while you learn.

Try it

Set a budget alert before anything else

  1. 1.If you already have a cloud account, open its billing or cost management section. If not, read the provider's free-tier page and skip to step 4.
  2. 2.Create a monthly budget with alerts at a small amount, sent to an email you read.
  3. 3.Turn on multi-factor authentication for the account if you have not already.
  4. 4.Write a one-line rule for yourself, such as: anything I create, I delete the same day.
I am learning [AWS, Azure or Google Cloud] on a free account. List the services most likely to cause a surprise bill for a beginner, why, and how to check for anything still running. Tell me which details I should confirm on the provider's current pricing pages.
You set a monthly budget of 5 dollars with an alert. What happens by default if you reach it?

Check yourself

You set a monthly budget of 5 dollars with an alert. What happens by default if you reach it?