The three models differ in how much of the stack the cloud provider runs for you. The easiest way to explain it is a responsibility table.
Layer On-premises IaaS PaaS SaaS
Application You You You Provider
Data You You You You*
Runtime/middleware You You Provider Provider
Operating system You You Provider Provider
Virtualisation You Provider Provider Provider
Servers, storage,
network You Provider Provider Provider
* You still own your data and who can access it in every model.
IaaS: rent the infrastructure
You get virtual machines, disks and networks, and you patch the OS and install everything else. Examples: Amazon EC2, Azure Virtual Machines, Google Compute Engine. Choose it for full control or to lift and shift existing servers.
PaaS: bring your code
You deploy the application; the provider runs the OS, runtime, scaling and patching. Examples: Azure App Service, AWS Elastic Beanstalk, Google App Engine, and managed databases such as Amazon RDS or Azure SQL Database. Choose it to ship faster with less operations work.
SaaS: use the finished software
You sign in and use it. Examples: Microsoft 365, Gmail, Salesforce, Jira. Choose it when the software is not what makes your business different.
Serverless and containers
Functions (AWS Lambda, Azure Functions) are often called FaaS, a step beyond PaaS where you deploy single functions and pay per call. Managed Kubernetes (EKS, AKS, GKE) sits between IaaS and PaaS.
A good closing line
“In my last project we ran the API on Azure App Service, which is PaaS, used Azure SQL as a managed database, kept one VM for a legacy batch job, which is IaaS, and the team used Jira, which is SaaS.”
Follow-ups
- Public, private and hybrid cloud.
- What is the shared responsibility model?
- How would you cut a client’s cloud bill?
This answer was written by Debugger’s Space as practice material. It is asked in most Indian IT services interviews (TCS, Infosys, Wipro, HCLTech, Tech Mahindra, LTIMindtree, Accenture, Cognizant, Capgemini, IBM). See each company’s hiring steps and practice questions on Debugger’s Space.