Cloud Notes
Complete guide to Infrastructure as a Service (IaaS), covering virtual machines, networking, storage, and hands-on examples with AWS EC2, Azure VMs, and Google Compute Engine.
Infrastructure as a Service (IaaS) is the most fundamental cloud service model. It provides virtualized computing resources over the internet, giving you the building blocks of IT infrastructure — compute, storage, and networking — without the burden of managing physical hardware.
What IaaS Provides
Core IaaS Components
1. Compute (Virtual Machines)
2. Storage
# AWS EBS (Block Storage)
aws ec2 create-volume \
--availability-zone us-east-1a \
--size 500 \
--volume-type gp3 \
--iops 3000 \
--throughput 125
# Attach to instance
aws ec2 attach-volume \
--volume-id vol-0123456789abcdef0 \
--instance-id i-0123456789abcdef0 \
--device /dev/sdf3. Networking
# Create a VPC
aws ec2 create-vpc --cidr-block 10.0.0.0/16
# Create subnets
aws ec2 create-subnet \
--vpc-id vpc-0123456789abcdef0 \
--cidr-block 10.0.1.0/24 \
--availability-zone us-east-1a
# Create Internet Gateway
aws ec2 create-internet-gateway
aws ec2 attach-internet-gateway \
--internet-gateway-id igw-0123456789abcdef0 \
--vpc-id vpc-0123456789abcdef0IaaS Providers Comparison
| Feature | AWS (EC2) | Azure (VMs) | GCP (Compute Engine) |
|---|---|---|---|
| Instance Types | 400+ | 300+ | 150+ |
| GPU Support | P4, G5, Inf2 | NCv3, NDv2 | A2, T4 |
| Max vCPUs/VM | 448 | 416 | 416 |
| Max Memory | 24 TB | 12 TB | 12 TB |
| Per-second billing | Yes | Yes | Yes |
| Spot/Preemptible | Up to 90% off | Up to 90% off | Up to 91% off |
| Bare Metal | Available | Available | Available |
IaaS Use Cases
- Web Hosting: Deploy web servers with full OS control
- Development/Testing: Spin up and tear down environments quickly
- Big Data: Process large datasets on powerful instances
- Disaster Recovery: Replicate on-premises infrastructure to cloud
- High-Performance Computing: Run scientific simulations on GPU clusters
Real-World Deployment Example
Interview Questions
- What is IaaS and what components does it include?
IaaS provides virtualized computing resources over the internet — primarily compute (VMs), storage (block/object), and networking (VPCs, load balancers). Users manage everything from the OS upward, while the provider manages physical infrastructure.
- Compare IaaS with traditional on-premises infrastructure.
IaaS eliminates hardware procurement (minutes vs weeks), offers pay-per-use pricing (no CapEx), provides elastic scaling, and removes maintenance burden. However, you lose some control over physical hardware and may face higher long-term costs for steady workloads.
- When would you choose IaaS over PaaS?
Choose IaaS when you need full control over the operating system, require custom software installations, need specific kernel configurations, or are migrating existing applications via lift-and-shift with minimal changes.
- What are spot instances and when should you use them?
Spot instances are spare cloud capacity available at up to 90% discount but can be interrupted with short notice. Use them for fault-tolerant workloads like batch processing, CI/CD pipelines, data analytics, and rendering — never for stateful production databases.
- Explain the networking components of IaaS.
VPC (isolated virtual network), subnets (network segments), internet gateways (public internet access), NAT gateways (outbound-only for private subnets), security groups (instance firewalls), and route tables (traffic routing rules).
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for IaaS - Infrastructure as a Service.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Cloud Computing topic.
Search Terms
cloud-computing, cloud computing, cloud, computing, service, models, iaas, infrastructure
Related Cloud Computing Topics