Cloud Computing · Basics
How Does Cloud Computing Actually Work? Explained Simply
Quick summary — how cloud computing works
Cloud computing works because providers run huge data centres full of servers, use virtualisation to split each physical machine into many isolated virtual machines, place those data centres in regions and availability zones and let you create, use and delete resources through APIs, paying only for what you use.
In this guide you will learn:
- What is inside — a cloud data centre.
- How virtualisation — shares hardware safely.
- Regions, zones — and service models.
- How cloud pricing — works.
- A first hands-on lab — and interview questions.
SECTION 01Data centres and virtualisation
Behind every cloud service is a physical building, a data centre, filled with racks of servers, storage devices and network equipment, plus power backup and cooling. Providers do not give each customer a whole physical machine. Instead, software called a hypervisor divides one powerful server into many virtual machines (VMs), each with its own operating system and isolated from the others. Containers go further, sharing the operating system kernel for lighter workloads:
| Layer | What it is | Who manages it | Simple analogy |
|---|---|---|---|
| Data centre | Building with servers, power, cooling | Cloud provider | A huge apartment complex |
| Physical server | Real computer with CPUs and RAM | Cloud provider | One apartment building |
| Hypervisor | Software that creates VMs | Cloud provider | Walls dividing flats |
| Virtual machine | Your isolated server | You (OS and apps) | Your rented flat |
#!/usr/bin/env bash
# Run inside a cloud VM (or any Linux machine) to see what it is
set -euo pipefail
echo "Virtualisation: $(systemd-detect-virt 2>/dev/null || echo unknown)"
echo "CPUs: $(nproc)"
free -h | awk '/Mem:/ {print "Memory: " $2}'
df -h / | awk 'NR==2 {print "Root disk: " $2}'
uname -sr
Virtual machine:
hardware -> hypervisor -> guest OS -> your app
+ strong isolation, any OS
- heavier, slower to start
Container:
hardware -> host OS -> container runtime -> your app
+ light, starts in seconds
- shares the host kernel
Cloud services use both, often containers running on VMs.
SECTION 02Regions, availability zones and service models
Cloud providers build data centres in many parts of the world. A region is a geographic area, such as Mumbai, and each region usually has several availability zones, separate data centres with their own power and networking. Spreading an app across zones protects it if one fails. Providers also offer different levels of service, from raw virtual machines to finished software, called service models:
| Term | Meaning | Example | Why it matters |
|---|---|---|---|
| Region | Geographic area with data centres | ap-south-1 (Mumbai) on AWS | Latency and data location |
| Availability zone | Separate data centre(s) in a region | ap-south-1a, ap-south-1b | Resilience to failures |
| IaaS / PaaS | Infrastructure or platform as a service | VMs; managed app platforms | How much you manage |
| SaaS | Finished software over the internet | Online email or office apps | You just use it |
#!/usr/bin/env bash
# Requires AWS CLI configured with credentials
set -euo pipefail
aws ec2 describe-regions --query 'Regions[].RegionName' --output table
aws ec2 describe-availability-zones --region ap-south-1 \
--query 'AvailabilityZones[].ZoneName' --output table
On-premises IaaS PaaS SaaS
Application You You You Provider
Data You You You Provider*
Runtime You You Provider Provider
Operating system You You Provider Provider
Virtualisation You Provider Provider Provider
Hardware You Provider Provider Provider
* You still control who can access your data.
SECTION 03APIs, automation and pay-as-you-go pricing
Everything in the cloud is created through APIs. Clicking a button in the console, running a CLI command or applying a Terraform file all send API requests that the provider's control system turns into running resources within minutes. Because resources can be created and deleted quickly, providers charge for usage, such as compute time, storage per month and data transferred out. This flexibility is powerful, but you must remember to delete what you do not need:
| Charge type | Measured by | Example resource | Cost tip |
|---|---|---|---|
| Compute | Time running and size | Virtual machines | Stop or delete when idle |
| Storage | Amount stored per month | Object storage, disks | Delete old data and snapshots |
| Data transfer | Data sent out of the cloud | Downloads by users | Use caching where sensible |
| Managed services | Requests, capacity or time | Databases, functions | Right-size and set budgets |
#!/usr/bin/env bash
# First lab: create storage, upload a file, then clean up
set -euo pipefail
BUCKET=cloud-basics-$RANDOM
aws s3 mb "s3://$BUCKET" --region ap-south-1
echo "hello cloud" > hello.txt
aws s3 cp hello.txt "s3://$BUCKET/"
aws s3 ls "s3://$BUCKET/"
# Clean up so nothing keeps costing money
aws s3 rb "s3://$BUCKET" --force
# Rough monthly estimate with placeholder prices; use the provider's
# official pricing page or calculator for real numbers.
hourly_vm_price = 0.0 # fill in from the pricing page
storage_gb_price = 0.0 # per GB-month
vm_hours = 8 * 22 # 8 hours a day, 22 working days
storage_gb = 20
cost = vm_hours * hourly_vm_price + storage_gb * storage_gb_price
print(f"VM hours: {vm_hours}, storage: {storage_gb} GB, estimate: {cost:.2f}")
SECTION 04Cloud basics cheat sheet
Use these templates to revise and start practising:
Cloud computing Renting compute, storage and services over the internet
Data centre Building with servers, power and cooling
Hypervisor Software that runs many VMs on one server
VM Isolated virtual server with its own OS
Container Lightweight app package sharing the host kernel
Region Geographic area with data centres
Availability zone Separate data centre(s) within a region
IaaS/PaaS/SaaS Levels of what the provider manages
Pay-as-you-go Paying for what you use
Day 1 Create a free-tier account; enable MFA; set a budget alert
Day 2 Explore regions and the console
Day 3 Object storage: create, upload, delete
Day 4 Launch a small VM; connect; inspect it; terminate
Day 5 IAM: create a user with limited permissions
Day 6 Install the CLI and repeat Day 3 with commands
Day 7 Write notes explaining each step in simple words
[ ] MFA on the root or main account
[ ] Budget alert set
[ ] Use a limited IAM user, not root
[ ] Never commit access keys to Git
[ ] Delete or stop resources after each lab
[ ] Check the billing page weekly
SECTION 05Tips for understanding cloud computing
These habits make cloud concepts stick:
- Learn by doing — create and delete small resources often.
- Draw what you build — diagrams make architecture clear.
- Set budget alerts first — avoid surprise bills while learning.
- Learn networking basics — IP addresses and ports explain many issues.
- Explain it to someone — teaching shows what you really understand.
SECTION 06Interview Q&A — cloud computing basics
Q1What is cloud computing?
Delivering computing resources such as servers, storage, databases and software over the internet on demand, usually with pay-as-you-go pricing.
Q2What is virtualisation?
Using a hypervisor to run multiple isolated virtual machines on one physical server so hardware can be shared safely.
Q3What is the difference between a region and an availability zone?
A region is a geographic area; availability zones are separate data centres within it, used to build fault-tolerant systems.
Q4What is the shared responsibility model?
The provider secures the underlying infrastructure, while the customer secures their data, access, configuration and applications.
Q5What are the benefits of the cloud?
On-demand resources, scaling up or down quickly, paying for usage, global reach and managed services that reduce operational work.
SECTION 07Test yourself — cloud computing basics quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
How does cloud computing work in simple words?
Providers run large data centres and use virtualisation to rent out parts of their servers and services over the internet. You create and use resources through a console or API and pay for usage.
Where is my data stored in the cloud?
In the provider's data centres within the region you choose. You can usually pick a region close to your users or as required by rules.
Is cloud computing safe?
Providers secure the infrastructure, but you must secure your accounts, data and settings, for example with MFA, least-privilege access and encryption.
Do I need coding to learn cloud computing?
You can start with the console, but basic Linux, networking and scripting help a lot as you progress to automation.
Can I practise cloud computing for free?
Most providers offer free tiers or credits for limited usage. Read the current terms and set a budget alert before practising.
SECTION 09Related reads
Classroom & online · Noida
Learn cloud computing hands-on
Our AWS Training Course takes you from cloud basics to IAM, networking, compute, storage and Terraform with guided labs.
Talk to a counsellor for current fees- Cloud basics to architecture
- Hands-on AWS labs
- Terraform practice
- Weekday & weekend batches