Cloud Fundamentals

Cloud computing essentials — IaaS, PaaS, SaaS and serverless, regions and availability zones, the core services (compute, storage, databases, networking) across AWS, GCP and Azure, VPCs, IAM, the shared responsibility model, high availability, and cost management.

Beginner 5 min readLesson 5 of 9

Cloud computing means renting computing resources — servers, storage, databases, networks — on demand over the internet, paying for what you use, instead of buying and running hardware. It turns capital expense into operating expense and lets you scale in minutes.

Service models

ModelYou manageProvider managesExamples
On-premisesEverythingNothingYour own data centre
IaaS — infrastructureOS, runtime, app, dataHardware, virtualisation, networkEC2, Compute Engine, Azure VMs
CaaS — containersContainers, app, data+ OS, orchestrationEKS/GKE/AKS, ECS, Cloud Run
PaaS — platformApp code and data+ OS, runtime, scalingHeroku, App Engine, Elastic Beanstalk, Render
FaaS — serverless functionsFunctions+ servers, scaling to zeroLambda, Cloud Functions, Workers (Serverless)
SaaS — softwareYour data and settingsThe whole applicationGmail, Salesforce, Slack

Moving down the table: less control, less operational work.

Global infrastructure

  • Region: a geographic area (ap-south-1 Mumbai, us-east-1 N. Virginia) — choose for latency to users, data residency laws, price and service availability.
  • Availability Zone (AZ): one or more isolated data centres within a region, with independent power and networking, connected by low-latency links. Deploy across multiple AZs to survive a data-centre failure.
  • Edge locations / PoPs: hundreds of sites for CDN caching and DNS (CloudFront, Cloud CDN, Cloudflare).

Core services across providers

CategoryAWSGoogle CloudAzure
Virtual machinesEC2Compute EngineVirtual Machines
Managed KubernetesEKSGKEAKS
Serverless containersFargate, App RunnerCloud RunContainer Apps
FunctionsLambdaCloud Run functionsAzure Functions
Object storageS3Cloud StorageBlob Storage
Block storageEBSPersistent DiskManaged Disks
Managed SQLRDS, AuroraCloud SQL, AlloyDB, SpannerAzure SQL, Database for PostgreSQL
NoSQLDynamoDBFirestore, BigtableCosmos DB
CacheElastiCacheMemorystoreAzure Cache for Redis
Queues / streamsSQS, SNS, KinesisPub/SubService Bus, Event Hubs
Data warehouseRedshiftBigQuerySynapse / Fabric
CDNCloudFrontCloud CDNFront Door
DNSRoute 53Cloud DNSAzure DNS
IdentityIAMIAMEntra ID + RBAC
MonitoringCloudWatchCloud Monitoring/LoggingAzure Monitor

Storage types

TypeAccessUse
Object (S3)HTTP API, whole objects by key; virtually unlimited; 11 nines durabilityMedia, backups, static sites, data lakes, logs
Block (EBS)Attached to one VM as a diskDatabases, OS volumes
File (EFS, Filestore)Shared NFS/SMB filesystemShared content between many servers

Object storage has storage classes (standard → infrequent access → archive/Glacier) with lifecycle rules to move data to cheaper tiers.

Networking: the VPC

A Virtual Private Cloud is your isolated network inside the provider (IP addressing):

outbound onlyInternet gatewayLoad balancerpublic subnetNAT gatewaypublic subnetApp serversprivate subnetDatabaseprivate subnet
  • Subnets split the VPC's CIDR range per AZ. Public subnets route to an internet gateway; private subnets don't — app servers and databases live there, reaching the internet (for updates) only outbound through a NAT gateway.
  • Security groups: stateful firewalls per instance ("allow 5432 only from the app servers' security group").
  • Network ACLs: stateless subnet-level rules.
  • Connect to on-premises or other VPCs with VPN, Direct Connect/Interconnect, peering or transit gateways; reach provider services privately with VPC endpoints / Private Link.

Identity and access management

IAM controls who can do what to which resources. The most important security boundary in the cloud.

JSON
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:GetObject", "s3:PutObject"],
    "Resource": "arn:aws:s3:::invoices-prod/*"
  }]
}
  • Least privilege: grant only the actions and resources needed.
  • Give workloads roles (temporary credentials, automatically rotated) — never long-lived access keys in code. CI systems should use OIDC federation to assume roles.
  • Humans log in through SSO with MFA; lock away the root account.
  • Separate environments (dev, staging, prod) into separate accounts/projects.

The shared responsibility model

Provider is responsible for security of the cloudYou are responsible for security in the cloud
Physical data centres, hardware, hypervisor, global networkIAM policies, data encryption choices, network configuration
Managed service internals (patching RDS's OS)OS patching on your VMs, application code, secrets

Most cloud breaches are customer misconfigurations: public S3 buckets, over-broad IAM policies, leaked access keys, open security groups.

Designing for availability

  • Run stateless app tiers across ≥ 2 AZs behind a load balancer, with auto-scaling groups.
  • Use managed databases with multi-AZ standbys and automated backups; test restores.
  • For regional disasters: cross-region replication, backups and a documented failover (RTO/RPO targets — Reliability patterns).
  • Avoid single points of failure: one NAT gateway, one AZ, a single instance.

Cost management

Cloud bills surprise teams that don't watch them.

LeverDetail
Right-sizeMost instances are over-provisioned; check utilisation
Pricing modelsOn-demand → reserved instances / savings plans (up to ~70% off for 1–3 year commitments) → spot/preemptible (up to ~90% off, can be reclaimed — for batch and stateless workers)
Turn things offDev environments at night; delete unattached disks, old snapshots, idle load balancers
Storage tiersLifecycle policies to cheaper classes
Data transferEgress to the internet and cross-AZ/region traffic is billed — often the hidden cost
VisibilityTags per team/service, budgets and alerts, cost dashboards (FinOps)
Key takeaways
  • IaaS → PaaS → FaaS → SaaS: progressively less control and less operational work.
  • Regions for latency and compliance; multiple AZs for fault tolerance; edge locations for CDN.
  • Know the core services: compute, object/block/file storage, managed databases, queues, CDN, DNS, IAM.
  • VPCs: public subnets for load balancers, private subnets for apps and data, NAT for outbound, security groups as firewalls.
  • IAM least privilege with roles, not long-lived keys; most breaches are customer misconfigurations.
  • Spread across AZs, back up and test restores; manage cost with right-sizing, commitments, spot and egress awareness.