Launch pricing — Azure certification prep for €19,95 €29,95

Back to blog
Microsoft Azure · Fundamentals

CapEx vs OpEx in Cloud Computing: What AZ-900 Expects You to Know

AZ-900 · Updated October 2026 · Skills outline of 20 July 2026

CapEx (capital expenditure) is money you spend up front on IT you own: servers, network gear, a datacenter. OpEx (operational expenditure) is money you spend over time on services you use: a monthly Azure bill, for example. Cloud computing counts as OpEx, because you pay for it as you consume it.

That is the whole idea, and on AZ-900 it shows up in the cloud concepts domain (25-30% of the exam) under "describe the consumption-based model". The questions are rarely hard, but they are worded in finance language that trips up people from a technical background. Below: what each term means in IT, why the cloud is OpEx, the one case that confuses people, and three practice questions.

CapEx: paying up front for capacity you guess you'll need

Picture a web shop that runs on its own servers. Before it can grow, someone has to buy more hardware, find rack space, and pay for power and cooling. That purchase is CapEx: a big payment now for an asset the company owns and uses for years.

The catch is that you buy for the demand you expect, not the demand you get. Microsoft Learn describes the two ways this goes wrong. Overestimate, and you have paid for servers that sit idle. Underestimate, and your application slows down until new hardware is ordered, delivered, installed and provisioned, which can take weeks. Black Friday doesn't wait for a hardware delivery.

OpEx: paying for what you use, as you use it

In the cloud the web shop rents compute and storage instead. When traffic rises it adds virtual machines; when the rush is over it removes them, and the bill goes down with them. Nothing is bought, so there is no large payment before the project starts. The cost is an ongoing operating expense, like rent or electricity.

Microsoft calls this the consumption-based model: you pay for the IT resources you use, and nothing more. The pricing that goes with it is pay-as-you-go. Learn lists the benefits as no up-front cost for hardware or datacenter infrastructure, no capacity you buy and then leave unused, and the ability to add resources when demand rises and release them when it falls.

CapExOpEx
What you pay forPhysical infrastructure you own: servers, network hardware, datacenter spaceServices you use over time: compute hours, storage, licences
When you payUp front, before you use itAs you go, after or while you use it
CapacityFixed. You estimate demand years aheadFlexible. Add or remove resources when demand changes
Main riskIdle hardware if you buy too much, slow apps if you buy too littleA higher bill if nobody watches usage
Who maintains the hardwareYouThe cloud provider: power, cooling, hardware and networking
Typical exampleBuying 20 servers for a new datacenterA monthly bill for Azure virtual machines

Why the cloud counts as OpEx

Because you never own the hardware. Microsoft owns and runs the datacenters, and you rent a slice of them by the hour, by the gigabyte or by the transaction. Learn's own wording is the line to remember for the exam: because you pay for cloud services as you consume them, cloud computing is classified as an operational expense.

Serverless takes this one step further. With a serverless service such as Azure Functions you don't even keep a server running: you are billed when your code runs, and an idle function costs next to nothing. On the exam, serverless is the extreme end of the consumption-based model.

The case that confuses people: reservations

Azure also sells reservations: you commit to a service for one or three years and get a lower price in return. You can pay for a reservation up front or monthly, and the up-front option makes people think "that's CapEx".

It isn't. You are prepaying for a service, not buying an asset; there is still no server with your name on it. For AZ-900, keep it simple: cloud services are OpEx, and a reservation is a way to pay less for a service you know you'll keep using. If an answer option says "reserved capacity" while the question describes paying only for what you use, it's a distractor.

How AZ-900 asks about CapEx and OpEx

  1. 1

    Name the model in a scenario

    A company buys hardware for a new office: CapEx. A company pays a monthly bill for the virtual machines it ran: OpEx. Clue words for CapEx are buy, purchase, own, up front, depreciate and datacenter. Clue words for OpEx are monthly, subscription, pay-as-you-go, consumption and per hour.

  2. 2

    Pick the benefit of moving to the cloud

    If the options include "no upfront costs", "pay only for what you use" or "shift from CapEx to OpEx", that is the financial benefit the exam is after. "Guaranteed 100% uptime" is never right; no cloud service promises that.

  3. 3

    Fill in the blank

    Moving from an on-premises datacenter to the cloud shifts spending from capital expenditure to operational expenditure. Watch the order: the move is always from CapEx to OpEx, never the other way round.

The spending model links to the rest of the cloud concepts domain. The less of the stack you manage, the less you buy: SaaS leaves you nothing to purchase, IaaS still leaves you managing the operating system. See IaaS vs PaaS vs SaaS for that side of it, and the AZ-900 exam guide for where it sits in the exam.

Test yourself

Three questions from our AZ-900 bank. Try to answer before you open the answer.

Question 1 · Cloud concepts

A startup wants to deploy a new e-commerce application and pay only for the compute and storage resources actually consumed each month. Which cloud benefit does this primarily describe?

  • A. Capital expenditure model
  • B. Consumption-based pricing
  • C. Reserved capacity
  • D. Geo-distribution
Show answer

B. Paying only for what you consume is the consumption-based model. A is the opposite: buying capacity up front.

Question 2 · Cloud concepts

Which statement best describes the operational expenditure (OpEx) model of cloud computing?

  • A. You purchase hardware assets upfront and depreciate them over several years.
  • B. You pay a recurring cost based on actual usage or subscription, with no large upfront investment.
  • C. You lease physical servers from a colocation facility for a fixed monthly fee.
  • D. You invest in on-premises infrastructure once every five years to reduce long-term costs.
Show answer

B. Recurring, usage-based cost without a large purchase is OpEx. A and D describe CapEx.

Question 3 · Cloud concepts

When you move your infrastructure to Azure, costs shift from capital expenditure (CapEx) to which type of expenditure?

  • A. Revenue expenditure (RevEx)
  • B. Operational expenditure (OpEx)
  • C. Capital expenditure remains unchanged
  • D. Fixed expenditure (FixEx)
Show answer

B. RevEx and FixEx are made-up distractors. The exam only uses CapEx and OpEx.

More questions like these, each with an explanation, are on the AZ-900 cloud computing questions page. Full access adds the complete bank of 400 AZ-900 practice questions and a timed mock exam. See what full access includes.

Frequently asked questions

▶

What is the difference between CapEx and OpEx?

CapEx (capital expenditure) is money spent up front on physical things you own, such as servers, network hardware and datacenter space. OpEx (operational expenditure) is money spent over time on services, such as a monthly cloud bill. Buying a server is CapEx; renting a virtual machine by the hour is OpEx.

▶

Is cloud computing CapEx or OpEx?

OpEx. Microsoft Learn puts it plainly: because you pay for cloud services as you consume them, cloud computing is classified as an operational expense. That is the answer AZ-900 expects.

▶

What is the consumption-based model in Azure?

You pay for the IT resources you use, and nothing more. Instead of buying and running your own datacenter, you rent compute and storage, add more when demand rises and release it when demand drops. Pay-as-you-go is the pricing model that goes with it.

▶

Are Azure reservations CapEx?

No. A reservation is a one- or three-year commitment to a service in exchange for a lower price, and you can pay for it up front or monthly. You still don't own any hardware, so it stays a cloud service. AZ-900 questions about the spending model expect OpEx for cloud services.

▶

Why do companies prefer OpEx for IT?

There is no large purchase before a project can start, you don't pay for capacity that sits idle, and the cost follows actual use. With CapEx you have to guess demand years ahead: guess too high and you paid for idle servers, guess too low and the application slows down until new hardware arrives.

Source: Describe the consumption-based model, Microsoft Learn.

Find out how ready you are for AZ-900

15 questions free · no account needed.

Try the free practice test