Sub topic 4
IaaS, PaaS, and SaaS
This chapter covers the three cloud service models tested on CompTIA A+ Core 1. It assumes you know what cloud computing is and the difference between public, private, hybrid, and community deployment. It also assumes you know basic PC and networking terms such as CPU, RAM, storage, IP address, and LAN. After this chapter you should be able to name a model from a scenario, say who manages which layer, and avoid the common mix-ups.
The idea: layers and who manages them
A cloud service model describes how much of the technology stack the provider manages and how much the customer manages. The stack has these layers, from bottom to top:
- Networking, storage, and physical servers
- Virtualization (the hypervisor that splits hardware into virtual machines)
- Operating system
- Runtime and middleware (the language runtime, web server, and database engine)
- Application
- Data and user access
In every model the customer is responsible for their own data and for deciding who can use the service. What changes is how many of the layers below that the provider takes over.
- IaaS (Infrastructure as a Service) gives you virtual hardware. The provider runs layers 1 and 2. You manage everything from the operating system up.
- PaaS (Platform as a Service) gives you a place to run your own code. The provider runs layers 1 to 4. You manage the application and its data.
- SaaS (Software as a Service) gives you a finished application. The provider runs layers 1 to 5. You manage your data, settings, and user accounts.
A helpful memory aid is that the customer's work shrinks as you go from IaaS to PaaS to SaaS, while convenience grows and control shrinks.
IaaS: virtual hardware you configure
With IaaS you rent virtual machines, virtual disks, and virtual networks. You pick the CPU count, RAM, storage size, and operating system image. Then you log in and manage the machine as if it were a server in your own closet.
Typical examples are Amazon EC2, Microsoft Azure Virtual Machines, and Google Compute Engine.
You are responsible for:
- Installing and patching the operating system
- Installing and updating software
- Configuring the guest firewall and backups
- Sizing the machine, and resizing it when load changes
IaaS fits when you need full control or must run software that a platform does not support. Examples include a legacy application that needs a specific Windows Server version, a test lab you build and delete each week, or extra capacity during a seasonal peak. You pay for what you use, so a lab that runs for eight hours costs far less than buying a server.
IaaS gotchas
- The provider patches the hypervisor and hardware. It does not patch your guest operating system. An unpatched IaaS server is your problem, not theirs.
- A stopped virtual machine may still bill for its disks and reserved addresses.
- Moving a physical server to IaaS is often called "lift and shift". It is simple but does not use cloud features such as automatic scaling.
PaaS: a platform for building and running applications
With PaaS the provider supplies the operating system, runtime, and often a database or web hosting service. You deploy code and the platform runs it. Developers use PaaS so they can focus on the application and not on server upkeep.
Typical examples are Azure App Service, Google App Engine, AWS Elastic Beanstalk, and Heroku.
You are responsible for:
- Writing and deploying the application
- The application's settings and data
- Access control to the application
The provider handles OS patching, scaling the underlying machines, and keeping the runtime available. PaaS fits when a team writes a web application and wants to push new versions quickly without running servers. A development team that tests an application in a platform that already includes a database and web server is a classic PaaS scenario.
PaaS gotchas
- You can only use the languages, versions, and features the platform supports.
- Moving between platforms can be hard if your code depends on provider-specific services. This is called vendor lock-in.
- You cannot log in to the underlying operating system the way you can in IaaS.
SaaS: finished software you use
With SaaS the provider runs the whole application. You use it through a web browser or a thin client app and pay a subscription, often per user per month. You do not install or patch anything on a server.
Typical examples are Microsoft 365, Google Workspace, Salesforce, Dropbox, and Zoom.
You are responsible for:
- Your data and how it is shared
- User accounts, passwords, and multifactor authentication
- Configuring options the application offers
SaaS fits when you need a standard business function such as email, office documents, customer records, or video meetings, and you do not want to maintain it. Updates arrive automatically, which means features can change without your approval.
SaaS gotchas
- You depend on the internet connection and on the provider's availability.
- Customization is limited to what the vendor offers.
- You must plan for data export if you ever leave the service.
Comparing the three models
| Feature | IaaS | PaaS | SaaS |
|---|---|---|---|
| What you get | Virtual machines, storage, networks | Platform to build and run code | Finished application |
| Customer manages | OS, runtime, apps, data | Apps and data | Data, settings, users |
| Provider manages | Hardware and hypervisor | Hardware, hypervisor, OS, runtime | Everything except your data and users |
| Control | Highest | Medium | Lowest |
| Convenience | Lowest | Medium | Highest |
| Typical user | System administrator | Developer | End user |
| Examples | EC2, Azure VMs | App Service, App Engine | Microsoft 365, Salesforce |
Matching a scenario to a model
Exam questions describe a need and ask you to choose the model. Look for the key phrase.
| Scenario clue | Likely model |
|---|---|
| "Rent a server and install my own operating system" | IaaS |
| "Add virtual machines during a busy season" | IaaS |
| "Developers deploy code without managing servers" | PaaS |
| "Staff use hosted email through a browser" | SaaS |
| "Subscription per user, nothing to install or patch" | SaaS |
| "Need a database and web hosting for a new app" | PaaS |
A quick way to decide is to ask what the customer actually touches. If they configure an operating system, it is IaaS. If they upload code, it is PaaS. If they just sign in and use the software, it is SaaS.
Other "as a service" terms
You may see more labels. They follow the same pattern: the provider runs more of the stack so you can focus on one task.
- DaaS (Desktop as a Service) delivers a full virtual desktop from the cloud. It is related to virtual desktop infrastructure, which a later chapter covers.
- XaaS means "anything as a service" and is a general term for the pattern.
The A+ exam focuses on IaaS, PaaS, and SaaS. Know the others only as vocabulary.
Worked example: three needs, three models
A small design firm has three requests.
- The owner wants staff to share email and calendars. Nobody wants to run a mail server. This is SaaS. The firm signs in to a hosted email service, and the provider handles everything but accounts and mailbox data.
- A contractor is building a customer portal and wants to upload code to a service that already runs the web server and database. This is PaaS. The contractor never patches an operating system.
- The firm has an old accounting program that needs a specific Windows Server version. They rent a virtual machine and install the program themselves. This is IaaS. They must patch Windows and back up the machine.
Notice that the answer comes from who manages the operating system and the application, not from how big the service is.
Common errors to avoid
- Calling any hosted software "PaaS". If users just sign in and use it, it is SaaS.
- Assuming the provider patches your IaaS operating system. It does not.
- Thinking SaaS means you have no security duties. You still control accounts, passwords, multifactor authentication, and sharing settings.
- Mixing up "platform" and "infrastructure". Infrastructure is raw machines. A platform adds an operating system and runtime so you only bring code.
- Treating cloud storage as a separate model. Services such as file sync are usually SaaS. The next chapter covers them.
Exercise
A company moves its payroll application to a vendor-hosted website. Employees sign in with a browser and the vendor handles all servers, updates, and application code. The company only manages its employee accounts and payroll data. Which service model is this, and which layers does the company still manage?
Show answer
SaaS. The company manages only its data and its user accounts and settings. The provider manages the application, runtime, operating system, virtualization, and hardware.
Exercise
A technician rents a virtual machine from a cloud provider, installs Windows Server, and sets up a file server. A month later a security update is released for Windows Server. Who is responsible for installing it, and what model is this?
Show answer
The customer, because this is IaaS. The provider maintains the hypervisor and hardware, but the customer manages the guest operating system and everything above it.
Exercise
A development team wants to deploy a web application without building or patching servers, and it needs a managed database. Which model fits, and what is one drawback?
Show answer
PaaS. One drawback is vendor lock-in or limited choice of supported languages and versions, and the team cannot log in to the underlying operating system.