What is cloud computing?
Cloud computing means renting computing power, storage and ready-made services from a provider, over the internet, and paying only for what you use. Instead of buying servers, installing them in a data centre and keeping them running, you ask for a server, a database or a storage bucket with a click or a command, and it's ready in seconds. When you don't need it any more, you delete it and stop paying.
Today most new software runs in the cloud. Netflix runs on AWS, Spotify on Google Cloud, and LinkedIn and Xbox services on Azure, alongside millions of startups, banks, governments and students.
💡 About this course: it covers the three biggest providers: AWS (Amazon Web Services), Google Cloud and Microsoft Azure. AWS examples were run with the real AWS CLI v2 against Moto, an open-source AWS emulator, so the outputs are genuine AWS CLI output. On your own account, IDs, account numbers and dates will differ. Google Cloud and Azure examples show typical output, labelled Example output.
Before the cloud
Running a website in 2005 meant:
- Estimating how much traffic you'd get next year.
- Buying servers for the peak (most of the time they'd sit idle).
- Waiting weeks for delivery, then installing them in a rented data-centre rack.
- Replacing broken disks, patching, paying for power and cooling, 24/7.
- If traffic doubled overnight, the site went down while you ordered more servers.
The cloud turned all of that into an API call.
The five essential characteristics
The US standards body NIST defines cloud computing with five characteristics:
| Characteristic | Means |
|---|---|
| On-demand self-service | Create resources yourself, any time, without talking to anyone |
| Broad network access | Use them over the internet, from anywhere |
| Resource pooling | Many customers share the provider's huge pool of hardware, securely separated |
| Rapid elasticity | Scale up for a sale, back down at night, automatically |
| Measured service | Pay per second, per gigabyte, per request: only for what you use |
IaaS, PaaS, SaaS: who manages what
Cloud services differ in how much the provider manages for you:
On-premises IaaS PaaS SaaS
(your own) (e.g. EC2) (e.g. App (e.g. Gmail,
Engine) Salesforce)
Application you you you provider
Data you you you provider*
Runtime you you provider provider
Operating sys. you you provider provider
Virtual machine you provider provider provider
Servers/storage you provider provider provider
Networking you provider provider provider
Data centre you provider provider provider
* you still decide who can access it| Model | You get | Examples |
|---|---|---|
| IaaS (Infrastructure as a Service) | Virtual machines, disks and networks; you manage the OS and everything above it | AWS EC2, Google Compute Engine, Azure Virtual Machines |
| PaaS (Platform as a Service) | A place to run your code or database; the provider handles servers, OS and scaling | AWS Elastic Beanstalk, Google App Engine and Cloud Run, Azure App Service, managed databases |
| SaaS (Software as a Service) | A finished application you use | Gmail, Microsoft 365, Slack, GitHub |
| Serverless / FaaS | Upload a function; it runs on each event and you pay per call | AWS Lambda, Google Cloud Run functions, Azure Functions |
The further right you go, the less you manage and the faster you can build, but the less control you have.
Regions and availability zones
Cloud providers run data centres all over the world, grouped like this:
| Term | Means | Example |
|---|---|---|
| Region | A geographic area with several data centres | ap-south-1 (Mumbai), europe-west2 (London), eastus (Virginia) |
| Availability zone (AZ) | One or more data centres in a region, with their own power and network, a few kilometres apart | ap-south-1a, ap-south-1b, ap-south-1c |
| Edge location | A smaller site near users, for caching content (CDN) | Hundreds of cities |
Here are the regions AWS reports (on a real account the list depends on which regions are enabled):
aws ec2 describe-regions --query "Regions[].RegionName" --output text | tr '\t' '\n' | sort | head -12
aws ec2 describe-availability-zones --region ap-south-1 --query "AvailabilityZones[].ZoneName" --output textaf-south-1 ap-east-1 ap-east-2 ap-northeast-1 ap-northeast-2 ap-northeast-3 ap-south-1 ap-south-2 ap-southeast-1 ap-southeast-2 ap-southeast-3 ap-southeast-4 ap-south-1a ap-south-1b ap-south-1c
How to choose a region:
- Close to your users: lower latency (Mumbai for users in India, Frankfurt for Germany).
- Data laws: some data must stay in a country or the EU (GDPR, India's DPDP Act, banking rules).
- Price: the same server costs different amounts in different regions.
- Services: new services launch in a few regions first.
Run important systems across several availability zones, so one data-centre failure doesn't take you down.
The shared responsibility model
Security in the cloud is split between you and the provider:
| The provider secures… | You secure… |
|---|---|
| The data centres, hardware and physical network | Who can log in and what they can do (IAM) |
| The virtualisation layer | Your data: encryption, backups, who can read it |
| Managed services' underlying servers | Your operating system patches (on VMs), firewall rules, application code |
Almost every cloud data leak you read about (a public storage bucket, a leaked access key, an open database port) was a mistake on the customer's side of this line. This course shows you how to avoid them.
How you pay
| Model | Means | Good for |
|---|---|---|
| On-demand / pay-as-you-go | Per second or hour, no commitment | Starting out, unpredictable load |
| Reserved / committed use / savings plans | Commit to 1 or 3 years for 30–70% off | Steady, always-on workloads |
| Spot / preemptible | Spare capacity at up to 90% off, but can be taken back with short notice | Batch jobs, CI, data processing |
| Free tier | Small amounts free (some for 12 months, some forever) | Learning and tiny projects |
You also pay for data transfer out of the cloud to the internet (data coming in is usually free), which surprises many beginners. The Cost control lesson covers how to keep bills under control.
Public, private, hybrid and multi-cloud
- Public cloud: AWS, Google Cloud, Azure and others, shared by many customers.
- Private cloud: cloud-style self-service on hardware a single company owns (for example with OpenStack or VMware).
- Hybrid: some systems on-premises, some in the cloud, connected securely.
- Multi-cloud: using more than one public cloud, either deliberately or because different teams chose differently.
When the cloud isn't the answer
The cloud isn't automatically cheaper. A steady, predictable workload running 24/7 for years can cost less on your own hardware, and some companies have moved systems back out of the cloud. The cloud wins on speed, flexibility, global reach and not having to run data centres. Choose it for those reasons, and keep an eye on the bill.
Practice
- Classify each as IaaS, PaaS, SaaS or serverless: a virtual machine, Google Docs, a managed PostgreSQL database, a function that runs when a file is uploaded.
- Pick a region for an app whose users are mostly in Brazil, and one for a bank in Germany. What matters for each?
- In the shared responsibility model, whose job is it to patch the operating system of a virtual machine? And of a managed database?
- Explain to a friend why running across two availability zones is safer than one.
1.In IaaS, who manages the operating system?
2.What is an availability zone?
3.A storage bucket was accidentally made public and data leaked. Whose responsibility was that?
4.Which pricing is cheapest but can be interrupted at short notice?