Cloud computing comes in three main service models, and each one decides how much of the work you do when you use and manage cloud resources:

  • Infrastructure as a Service (IaaS) – you rent virtual servers, storage and networks.
  • Platform as a Service (PaaS) – you get a managed platform to build and run your apps on.
  • Software as a Service (SaaS) – you use finished applications over the internet.

On top of these, there are two additional specialized service models:

  • Function as a Service (FaaS) – a serverless model where your code runs only when something calls it.
  • Backend as a Service (BaaS) – a ready-made backend you plug your app into.

With IaaS you get virtualized computing resources over the internet: servers, storage, networking and virtualization, and you manage what runs on them.

Key Features:

  • On-demand computing resources (VMs, storage, networking).
  • Scalable and flexible – add or remove resources in minutes.
  • Pay-as-you-go pricing – you pay for what you use.

Examples:

  • AWS EC2, S3
  • Microsoft Azure Virtual Machines
  • Google Compute Engine

Use Cases: hosting websites, running enterprise applications and disaster recovery.

PaaS gives you a managed environment for developers to build, test, and deploy applications, and the provider looks after the servers underneath.

Key Features:

  • Pre-configured development tools (databases, runtimes, frameworks).
  • Automatic scaling & security, handled by the provider.
  • Supports multiple programming languages & frameworks.

Examples:

  • AWS Elastic Beanstalk
  • Google App Engine
  • Microsoft Azure App Service

Use Cases: web & mobile app development, API management and machine learning apps.

SaaS gives you ready-to-use applications over the internet, so nobody has to install or maintain them on local machines.

Key Features:

  • Accessible from any device through a web browser.
  • Automatic updates & maintenance, done by the provider.
  • Subscription-based pricing (monthly/yearly plans).

Examples:

  • Google Workspace (Docs, Gmail, Drive)
  • Microsoft 365 (Word, Excel, Teams)
  • Salesforce (CRM software)

Use Cases: email, working on documents together, CRM and e-commerce.

FaaS is a serverless computing model in which your application is split into independent functions, and each one runs only when an event triggers it.

Key Features:

  • Event-driven execution – it runs when needed and sits idle otherwise.
  • No server management – the cloud provider handles all of it.
  • Pay-per-use pricing – you’re charged for execution time.

Examples:

  • AWS Lambda
  • Google Cloud Functions
  • Azure Functions

Use Cases: IoT applications, chatbots, real-time data processing and automation.

BaaS hands you a pre-built backend for your app, with databases, authentication, cloud storage, and APIs already in place.

Key Features:

  • Managed backend infrastructure – you don’t build it from scratch.
  • API-based integration – it plugs into mobile & web apps easily.
  • Real-time synchronization for faster data processing.

Examples:

  • Firebase (by Google)
  • AWS Amplify
  • Parse

Use Cases: mobile app development, authentication and real-time applications (chat, notifications).

Each of these cloud service models gives you a different mix of control, flexibility, and automation, so the right one comes down to your business needs:

  • IaaS → for companies that want full infrastructure control.
  • PaaS → for developers building applications.
  • SaaS → for businesses needing ready-made software.
  • FaaS → for event-driven, serverless applications.
  • BaaS → for developers needing a pre-built backend.
Interview questions

Click a question to open it. Each one is worded the way an interviewer would ask it, and under it you’ll see why they ask and one way you could answer in your own words.

Fresher level

1. In IaaS, PaaS and SaaS, who is responsible for patching the operating system?

Why they ask this: It’s a quick way to check that you understand who’s responsible for what in each model, beyond knowing the examples.

How you might answer: In IaaS, say an AWS EC2 server, I patch the operating system myself because I own everything from the OS up. In PaaS, like Azure App Service, the provider patches the OS and runtime and I look after my code and data.

In SaaS, like Microsoft 365, the provider handles the lot, the app included, and I’m left managing users and my data.

2. What does serverless mean if there are still servers somewhere?

Why they ask this: Freshers often trip on this term, and they want to see you know serverless is about who manages the servers.

How you might answer: There are still servers, but the cloud provider runs and scales them, so I never see or manage them. With AWS Lambda or Azure Functions I upload a function and tell it which event should start it.

It runs only when triggered and I pay for the time it runs, so when nothing’s happening I pay nothing for compute.

2–5 years experience

3. A team wants to resize every image users upload to a storage bucket. Would you use a VM or a function, and why?

Why they ask this: They want to see whether you’d pick FaaS for an event-driven job and can explain why in everyday terms.

How you might answer: I’d go with a function, like AWS Lambda, that fires every time a new file lands in the bucket. It runs only when an image arrives, scales up by itself when lots of uploads come in together, and costs nothing while idle.

A VM would sit there all day waiting for uploads, and I’d be the one patching and scaling it. For a short, event-driven task like this a function is much simpler.

4. A mobile app team needs login, a database and push notifications fast. What would you suggest, and what would you warn them about?

Why they ask this: They want to know whether you can tell when BaaS fits and be honest about the trade-offs.

How you might answer: I’d point them to a BaaS like Firebase or AWS Amplify, which gives ready-made login, a real-time database and storage through APIs, so they can launch in weeks instead of building a backend from scratch.

The warning I’d give is lock-in, because the app gets tied to that platform’s APIs. I’d also ask them to watch costs as users grow and to set database security rules properly from day one.

Senior level

5. How would you decide between IaaS, PaaS and serverless for a new customer-facing application?

Why they ask this: They want to see you weigh control, speed, cost and team skills when you choose a model, instead of grabbing the newest option.

How you might answer: I’d look at what the app needs and what the team can run. If it needs special OS settings or old software, IaaS gives full control, and if it’s a standard web app, PaaS like Elastic Beanstalk or App Engine takes away most of the server work.

For event-driven parts with uneven traffic, serverless is often the cheapest and simplest. Most real systems end up mixing them, for example a PaaS web front end with functions for the background jobs.

6. A company uses dozens of SaaS tools. What risks does that bring, and how would you manage them?

Why they ask this: SaaS feels easy, but at scale it brings security, cost and data risks, and they want to see you think about governance.

How you might answer: The big ones are accounts left active after people leave, company data scattered across lots of vendors, and paying for licences nobody uses. On top of that, every vendor has its own level of security.

I’d keep a list of approved SaaS tools, hook them up to single sign-on with MFA so access is removed in one place, and review licences every quarter. Before approving a new tool I’d check its security and where it keeps data.

Further reading: Service Models in Cloud

If you want to go further into service models, the official reference is NIST SP 800-145: The NIST Definition of Cloud Computing. You can also follow the full Cloud Computing course on SaatVedha, one lesson at a time.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.