MarzleyTech Learn

Home / Learn / DevOps & cloud: from zero to deploying and running real systems / Cloud computing basics: IaaS, PaaS, SaaS, regions, shared responsibility and pricing

Cloud computing basics: IaaS, PaaS, SaaS, regions, shared responsibility and pricing

Before using any cloud provider, understand the ideas they all share. These concepts also appear in every entry-level cloud certification.

Why companies use the cloud

BenefitExample
No upfront hardwareA startup launches without buying servers
Scale on demandAn e-commerce site handles Black Friday traffic, then scales down
Pay as you goPay per hour, per GB or per request
Global reachServe users in Kenya, Europe and the US from nearby data centres
Managed servicesThe provider runs databases, backups and patches for you
ReliabilityRun in several data centres so one failure doesn't take you down

Service models: IaaS, PaaS, SaaS

Think of it like getting a meal:

ModelYou manageProvider managesExamplesMeal analogy
IaaS (Infrastructure)OS, apps, dataHardware, network, virtualisationAWS EC2, Azure Virtual Machines, Google Compute EngineRent a kitchen; you cook
PaaS (Platform)Your code and dataServers, OS, runtimeAzure App Service, Google App Engine, Heroku-style platformsOrder ingredients delivered; you assemble
SaaS (Software)Just your use and dataEverything elseGmail, Microsoft 365, ZoomEat at a restaurant

Also common: serverless / FaaS (functions that run when triggered: AWS Lambda, Azure Functions, Google Cloud Functions) and containers as a service.

Deployment models

  • Public cloud: shared provider infrastructure (AWS, Azure, Google Cloud).
  • Private cloud: infrastructure dedicated to one organisation (on-premises or hosted).
  • Hybrid cloud: a mix, e.g. sensitive data on-premises, web apps in public cloud.
  • Multi-cloud: using more than one provider.

Regions and availability zones

  • A region is a geographic area with data centres (for example, Cape Town, Johannesburg, Frankfurt, Ireland).
  • An availability zone (AZ) is one or more separate data centres within a region, with independent power and networking.
  • Running across several AZs keeps your app alive if one data centre fails.

Choosing a region: closeness to users (lower latency), the services available there, price, and legal requirements on where data is stored.

The shared responsibility model

Security is shared between you and the provider:

Provider is responsible forYou are responsible for
Physical data centres, hardware, the cloud networkYour data, user accounts and passwords
The virtualisation layerConfiguring access (IAM), firewalls and encryption settings
Managed service infrastructurePatching your own servers (in IaaS), your application code

Most cloud breaches come from customer mistakes: public storage buckets, leaked keys, weak passwords, no MFA.

How cloud pricing works

Pricing modelMeaning
On-demand / pay as you goPer second or hour, no commitment
Reserved / savings plansCommit for 1–3 years for lower prices
Spot / preemptibleCheap spare capacity that can be taken back at short notice
Free tierLimited free usage to learn (rules differ per provider; check them)

Common costs: compute hours, storage per GB per month, data transfer out (often forgotten), managed databases, and IP addresses.

Estimate a monthly bill (run it)

The prices below are made-up examples for practice only. Real prices differ by provider and region; use each provider's pricing calculator.

Python · runs live in the interactive lesson
hours_per_month = 730
server_per_hour = 0.02        # USD, example only
storage_gb, storage_per_gb = 50, 0.10
data_out_gb, data_out_per_gb = 100, 0.09

compute = server_per_hour * hours_per_month
storage = storage_gb * storage_per_gb
transfer = data_out_gb * data_out_per_gb
total = compute + storage + transfer
kes_rate = 129                # example exchange rate

print(f"Compute:  ${compute:.2f}")
print(f"Storage:  ${storage:.2f}")
print(f"Transfer: ${transfer:.2f}")
print(f"Total:    ${total:.2f}  (about KSh {total * kes_rate:,.0f})")

Try doubling the data transfer, or running two servers, and see how the bill changes.

Think about it: A school wants its student portal to keep working even if one data centre loses power. What should it ask its cloud team to do?Show answer

Run the application across at least two availability zones in a region, with a load balancer in front and a database that has a standby copy in another zone, plus regular backups (ideally stored in another region). Test that failover actually works.

Summary

  • Cloud gives on-demand, pay-as-you-go computing with managed services and global reach.
  • IaaS, PaaS and SaaS differ in how much you manage; serverless runs code on demand.
  • Regions contain availability zones; spread across zones for reliability; consider data laws.
  • Security is shared; most breaches come from customer misconfigurations. Watch data transfer costs.

Check yourself

  1. Gmail is an example of which service model? (abbreviation)

    Show answer

    saas

  2. What is a separate data centre inside a region called? (two words: availability ___)

    Show answer

    zone

  3. Under the shared responsibility model, who configures your user access: you or the provider? (one word)

    Show answer

    you

Lesson 2 of 14 in DevOps & cloud: from zero to deploying and running real systems · Written by · Course notes