Challenge 03: Cloud Pricing Models
20-30 min | Cost: Free | Domain: Cloud Concepts (25-30%)
Exam skills covered
- Describe the consumption-based model
- Compare cloud pricing models (CapEx vs OpEx)
- Describe serverless
Overview
One of the biggest shifts when moving to the cloud is how you pay for IT. Traditional on-premises computing requires large upfront investments (buying servers, building datacenters). Cloud computing shifts this to a pay-as-you-go model — like paying for electricity rather than building a power plant.
Understanding the difference between Capital Expenditure (CapEx) and Operational Expenditure (OpEx) is fundamental to the AZ-900 exam and to understanding cloud economics.
Explore
Task 1: CapEx vs OpEx
| Aspect | CapEx (Traditional) | OpEx (Cloud) |
|---|---|---|
| Payment timing | Upfront | Monthly/hourly |
| Ownership | You own it | You rent it |
| Depreciation | Depreciates over time | No depreciation |
| Scaling | Buy more hardware | Click a button |
| Risk | Overprovisioning or underprovisioning | Pay for what you use |
| Example | Buying servers for $100K | Azure VM at $0.05/hour |
Task 2: Use the Azure Pricing Calculator
- Open azure.microsoft.com/pricing/calculator
- Click Virtual Machines from the products list
- Configure:
- Region: East US
- OS: Linux
- Type: D2s v3 (2 vCPUs, 8 GB RAM)
- Leave other defaults
- Observe the monthly cost estimate
- Now change to Windows — see how the cost increases (OS licensing)
- Change region to West Europe — notice price may differ by region
Task 3: Use the TCO Calculator
- Open azure.microsoft.com/pricing/tco/calculator
- In Define your workloads, add:
- Servers: 2 servers, Windows, 4 cores, 16 GB RAM
- Click Next (Adjust assumptions)
- Review the assumptions about electricity, labor, etc.
- Click Next (View report)
- See the 5-year cost comparison between on-premises and Azure
Task 4: Understand the consumption-based model
The consumption-based model means:
- No upfront cost — start using services immediately
- No wasted resources — stop paying when you stop using
- Pay for what you need — scale up/down with demand
- Predictable billing — usage-based forecasting
Real-world analogy:
| Model | Analogy |
|---|---|
| CapEx | Buying a car (upfront cost, maintenance, depreciation) |
| OpEx | Uber/taxi (pay per ride, no maintenance, no ownership) |
Task 5: Understand serverless
Serverless computing is the ultimate consumption-based model:
- You deploy code, not infrastructure
- The platform manages all servers
- You pay only when your code runs (per execution)
- Azure Functions: first 1 million executions/month are free
# List available VM sizes and specs
az vm list-sizes --location eastus --query "[?name=='Standard_D2s_v3']" --output table
# List VM sizes available in the region
az vm list-sizes --location eastus --query "[?name=='Standard_B1s']" --output table
Key Concepts
| Concept | Definition |
|---|---|
| CapEx | Large upfront investment in physical infrastructure; depreciates over time |
| OpEx | Ongoing operational spending; pay-as-you-go with no upfront cost |
| Consumption-based | Pay only for what you actually use; meters track usage |
| Serverless | Maximum abstraction — no server management, pay per execution |
| Reserved Instances | Commit to 1-3 year terms for significant discounts (still OpEx) |
| Spot pricing | Use unused Azure capacity at deep discounts (can be evicted) |
Knowledge Check
1. A company is considering moving to Azure to avoid purchasing new servers. Which financial benefit of cloud computing does this represent?
2. Which pricing model means you only pay for resources when they are being used?
3. What is a characteristic of serverless computing?
4. Which Azure tool helps you estimate the cost savings of migrating on-premises workloads to Azure?
5. A company deploys an Azure Function that processes 500,000 requests per month. The free grant covers 1 million executions. How much will they pay for the executions?
Learn More
- 📚 Study Guide AZ-900 — Curated study materials
- Microsoft Learn: Describe cost management in Azure
- Azure Pricing Calculator
- TCO Calculator