Cloud Service and Deployment Models Questions
The foundational service models (IaaS, PaaS, SaaS, FaaS) and deployment models (public, private, and hybrid cloud) and when each is appropriate. Covers the shared-responsibility boundary, the core value proposition of cloud versus on-premises, how service-model choice shifts operational ownership, vendor lock-in risks and mitigation, and when a single-cloud, multi-cloud, or hybrid-cloud strategy is the better choice. The conceptual entry point before any provider-specific or architectural depth.
Design a simple production architecture for a customer-facing web application expected to serve 100k daily active users. The team prefers minimal OS management but needs some control over scaling rules and custom middleware. Choose an appropriate cloud service model (or combination) and justify how your choice balances control, operational overhead, and scalability, citing vendor examples. Then describe a past project where you made a similar service-model trade-off and what the measurable outcome was.
Sample Answer
Direct answer
For a customer-facing application at 100,000 daily active users, with the team wanting minimal OS management but real control over scaling rules and custom middleware, I would choose a managed application platform (PaaS), specifically a container-based one such as AWS App Runner, Azure App Service, or Google Cloud Run, sitting in front of a managed database. Container-based PaaS gives up direct OS control, matching the team's stated preference, while still letting them ship whatever middleware (authentication, rate limiting, logging) they need baked into the container image, and it exposes autoscaling as configuration rather than code.
Why this, and not the alternatives
Raw IaaS would over-deliver control the team explicitly said it does not want, at the cost of OS patching and instance-fleet management they would have to staff for no real benefit at this scale. Pure serverless functions could technically work, but the team's requirement for custom middleware, which today typically runs as a layer wrapping the whole request path, would need real re-architecture into a function-per-endpoint shape, adding engineering cost for a workload that is not described as bursty. A container-based PaaS product avoids both problems: it takes the container image unchanged, including the middleware, and the platform still owns the OS and scaling.
A quick sanity check on scale: 100,000 daily active users translating to a handful of requests per user per session is on the order of a few hundred thousand requests a day, which is not an exotic scale. It argues for favoring operability over squeezing out a raw performance ceiling.
flowchart LR
U["User traffic"] --> LB["Load balancer / content delivery network"]
LB --> APP["PaaS app tier: autoscaling containers with custom middleware"]
APP --> CACHE["Managed cache for session and rate-limit state"]
APP --> DB["Managed database"]
A content delivery network (CDN) in front of the load balancer caches static assets close to users and takes load off the app tier; the app tier autoscales on request volume or queue depth, using the platform's built-in policy rather than custom scaling scripts; and the managed database removes OS and patch ownership from that tier too, consistent with the team's stated preference.
Balancing control, overhead and scalability
Scaling rules: container PaaS platforms expose autoscaling policy (CPU or request-based) as configuration you tune, not infrastructure you build. Custom middleware: bringing your own container image means you keep full control over the middleware stack, unlike a "just push source code" PaaS product that would constrain you to its supported frameworks. Minimal OS management: the team never patches a kernel or manages an OS image, since the platform owns that layer entirely.
A past project with a measurable outcome
A team migrating an internal tool off self-managed virtual machines moved its app tier to a container-based PaaS platform specifically to get out of OS patch management, which had been consuming a real, recurring slice of on-call time. Framed as a short story: the team was losing meaningful after-hours time to OS-level patch cycles across a small fleet; the goal was to cut that load without giving up the custom authentication middleware already built into the app; the action was repackaging that middleware into the container image unchanged and switching to the platform's built-in autoscaling instead of custom scripts; the illustrative result was eliminating the OS-patching workstream entirely, with the team reporting roughly a third fewer after-hours pages in the months that followed, since OS-version drift across the fleet stopped being something that needed attention.
Trade-offs and pitfalls
Container PaaS is not unlimited freedom: you are still bound by whatever networking model and container runtime the platform allows, so a workload needing raw kernel modules or unusual hardware access would need to fall back to IaaS. A common pitfall is applying one model uniformly across the whole application when part of it, such as a nightly batch job, fits a scheduled compute pattern better run alongside the main system rather than inside it.
Explain the differences between IaaS, PaaS, and SaaS from a systems administrator's perspective. For each model, name two example services from AWS, Azure, or GCP, describe one operational responsibility that shifts as you move from IaaS toward PaaS, and note one monitoring or backup implication of that shift.
Sample Answer
Direct answer
From a systems administrator's chair, the IaaS-to-SaaS ladder isn't a technical abstraction exercise, it's a description of which daily tasks disappear or move to a different team at each step, starting with patching and ending with almost the entire job shifting from "keep the infrastructure running" to "manage user access and vendor relationships."
IaaS: the starting point
Example services: AWS Elastic Compute Cloud (EC2), Azure Virtual Machines.
The sysadmin still owns OS patch management: choosing a patch cadence, testing patches, and applying them across the fleet, exactly as with on-premises servers, just on rented hardware. The monitoring and backup implication is direct: you must build and maintain your own OS-level and application-level monitoring and backup jobs, since the provider guarantees the underlying hardware and network, not that your specific virtual machine's disk gets backed up or that a runaway process gets alerted on. A sysadmin moving from on-premises to IaaS who assumes "the cloud backs things up for me" is making the single most common early mistake in this transition.
PaaS: the first real shift
Example services: Azure App Service, Google App Engine.
OS-level patch management moves entirely to the provider. The sysadmin's job shifts from "patch the box" to "verify the platform's automatic runtime and OS updates haven't broken application compatibility," and to managing deployment configuration and scaling policy instead of server configuration. The monitoring and backup implication: infrastructure-level monitoring, is the OS healthy, is disk full, is now the provider's concern, so monitoring effort moves up the stack to application-level health checks and request and error-rate metrics. For backup, "backing up a server" stops being a meaningful task, since there's no persistent server to back up, and the real backup concern moves entirely to whatever managed database or storage the application actually uses.
SaaS: the full shift
Example services: Salesforce, Google Workspace.
There's no infrastructure left for the sysadmin to touch. Operational responsibility shifts to identity and access management, who has an account, what permissions they hold, how quickly access is revoked when someone leaves, and to vendor management, tracking the vendor's service-level agreement (SLA) commitments and uptime history. The monitoring and backup implication: "monitoring" becomes watching the vendor's status page and your own usage and license metrics rather than any system you operate, and "backup" becomes verifying, often by actually testing it rather than trusting a marketing claim, that the vendor's own data-export or retention policy actually meets your organization's recovery needs, since you generally have no independent backup mechanism of your own unless you build one on top of the vendor's export capabilities.
Worked example: a sysadmin's week, across the shift
Under IaaS, a real chunk of a sysadmin's week might go to reviewing patch reports and confirming backup jobs completed successfully across a virtual machine fleet. After a move to PaaS for the same application, that time gets reallocated to reviewing application-level error-rate dashboards and adjusting an autoscaling policy, since there's no OS layer left to patch. After a further move of an adjacent capability, internal email for example, to a SaaS product, the equivalent time goes to a quarterly access review, confirming former employees' accounts were actually deactivated, and confirming that the vendor's exported backup of mailbox data can actually be restored, since that's now the only backup lever left.
Trade-offs and pitfalls
The pitfall specific to this transition is treating it as "less work" rather than "different work." A SaaS-era sysadmin still carries real, auditable responsibility: identity governance, vendor SLA tracking, and verified export or backup capability. An organization that lets go of headcount assuming "SaaS runs itself" typically discovers the gap first during an access-related security incident or a data-recovery request that the vendor's default retention policy doesn't actually cover.
Serverless functions are often described as a form of PaaS. Explain whether serverless (e.g., AWS Lambda, Azure Functions, GCP Cloud Functions) is best classified as PaaS, something between PaaS and SaaS, or a distinct model. Discuss responsibilities for runtime, scaling, and application code management.
Sample Answer
Direct answer
Serverless functions, also called Function as a Service (FaaS: AWS Lambda, Azure Functions, Google Cloud Run functions, the platform formerly known as Cloud Functions), are best understood as a further point along the PaaS spectrum rather than a wholesale new category or a step toward SaaS. The provider takes over everything PaaS already took over (OS, runtime, middleware) plus two things classic PaaS still leaves you: capacity planning and idle cost. What makes serverless feel distinct is a difference of granularity and billing, not a different responsibility layer.
Why not SaaS, and why "further along PaaS"
SaaS gives you a finished application. Serverless gives you a place to run your application code, so it fails the core SaaS test immediately: does the provider own the application logic? No, you still write the function.
PaaS gives you a managed runtime you deploy a service into and typically leave running continuously; you still think in terms of "how many instances" and pay for a provisioned server whether or not it's handling a request. Serverless removes the instance concept from your mental model entirely: the platform decides how many copies of your function to run, scales all the way to zero when idle, and bills per invocation and execution duration rather than per hour of a running server. That is a difference in degree along the same "who manages what" ladder PaaS is already on, not a new category.
The three responsibilities the question names
- Runtime: entirely the provider's. It picks the execution environment, patches the language runtime, and you only choose a supported version and keep your code compatible with it.
- Scaling: entirely the provider's, and automatic. It scales per invocation, including to zero, and the levers you get are reserved concurrency (a cap that both guarantees and limits how many copies of your function can run at once, useful for protecting a downstream dependency like a database connection pool, at no extra charge) and, on some platforms, provisioned concurrency (an additional-cost option that keeps a guaranteed number of copies pre-initialized and ready, so a request doesn't have to wait for a fresh one to start) to reduce cold starts.
- Application code: yours, same as PaaS. You still own business logic, dependencies, and any bugs in your function.
Worked example
Contrast two workloads. An internal admin dashboard that gets hit sporadically all day is a natural PaaS fit: a provisioned instance sits warm between requests, and you pay for that idle time regardless of traffic. An event-driven job that resizes an uploaded image whenever one lands in storage is a natural serverless fit: the function runs for, say, a few hundred milliseconds per image and you pay only for that time, at the cost of a cold-start penalty the first time an idle function wakes up to handle a request.
Trade-offs and pitfalls
Serverless trades away two things PaaS still gives you. First, statelessness: nothing reliably persists in memory between invocations, so any state the workload needs has to live in an external database or cache. Second, a hard maximum execution duration, which makes serverless a poor fit for long-running or streaming work. The common pitfall is treating "serverless" as free of operational burden entirely; in practice you trade server-patching burden for observability burden, since tracing a request across many short-lived, independently scaling function instances is genuinely harder to reason about than reading one long-lived process's logs.
Create a responsibilities matrix table that shows, for each service model (IaaS, PaaS, SaaS), whether the cloud provider or the customer is primarily responsible for: networking, virtualization, operating system, runtime, middleware, application, and data. Explain one conflict or gray area where responsibility may be shared or ambiguous.
Sample Answer
Direct answer
Every row in a shared-responsibility matrix is answering the same question at a different layer: who has to act if something at that layer breaks, needs patching, or gets misconfigured? As you move from IaaS to PaaS to SaaS, the line of provider ownership climbs higher, and the one row that never fully crosses over is data: you always decide what your data means and who can see it, even when the provider secures every technical layer underneath it.
The matrix
| Layer | IaaS | PaaS | SaaS |
|---|---|---|---|
| Networking | Provider | Provider | Provider |
| Virtualization | Provider | Provider | Provider |
| Operating system | Customer | Provider | Provider |
| Runtime | Customer | Provider | Provider |
| Middleware | Customer | Provider | Provider |
| Application | Customer | Customer | Provider |
| Data | Customer | Customer | Customer |
Networking and virtualization are provider-owned at every tier: you never touch the physical switches, cables, or the hypervisor that slices one machine into many virtual ones. OS, runtime and middleware are where the boundary actually moves, crossing over entirely between IaaS and PaaS. Application crosses over last, between PaaS and SaaS. Data is the one row that stays with the customer across all three models, because ownership of meaning and access is not a technical layer the provider can absorb.
A genuine gray area: virtual networking configuration
"Networking" reads as cleanly provider-owned in the table above, and for the physical network fabric it is. But the moment you get to the virtual networking artifacts sitting on top of that fabric, such as subnets, route tables, security groups and network access control lists (NACLs), responsibility becomes shared in practice even under IaaS: the provider builds the tooling and guarantees isolation between tenants, but you configure which ports are open and which resources can reach the internet. This is exactly the boundary cloud providers describe as "security of the cloud" (the provider's job) versus "security in the cloud" (yours). It is a genuine gray area because a customer who assumes "networking is the provider's row" and never reviews their own security group rules is the single most common real-world path to an accidental public data exposure, even though the table technically marks networking as provider-owned.
A second, smaller gray area worth naming: under PaaS, the provider's automatic OS and runtime upgrades can silently change application behavior (a language runtime minor version bump, for instance). The table says "provider owns runtime," but if that upgrade breaks your application, you are the one who has to notice and fix it, which is a shared failure mode the matrix alone doesn't capture.
Trade-offs and pitfalls
The matrix is a useful starting point, but it is easy to over-trust as a complete answer. Identity and access management (IAM), the system that controls who can do what, cuts across every layer and every model: a customer's own IAM misconfiguration (an over-privileged access key, for example) can undermine security regardless of which service model is in play, and no single row in the table captures that cross-cutting risk. Treat the matrix as the starting framework for a conversation about responsibility, not as a checklist that, once satisfied, guarantees safety.
Define the three primary cloud service models: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). For each model, give a one-paragraph definition, one concrete vendor example (AWS, Azure, or GCP), and state which layers (networking, virtualization, OS, runtime, middleware, application, data) the provider manages versus the customer. Then classify these real services and justify each: AWS EC2, GCP App Engine, Azure SQL Database, Salesforce, and Google Workspace.
Sample Answer
Direct answer
All three service models sit on one spectrum: how much of the technology stack the provider manages for you, versus how much you still manage yourself. Infrastructure as a Service (IaaS) hands you raw compute, storage and networking and you own everything from the OS up. Platform as a Service (PaaS) additionally takes over the OS, runtime and middleware (the software layer that sits between the OS and your application, such as message queues, application servers, or authentication/session handling), so you just deploy code. Software as a Service (SaaS) is a finished application: you own only your data and how you configure and use it.
The three models, one at a time
IaaS. The provider manages the physical data center, the network hardware, and the virtualization layer (the hypervisor that carves one physical server into many virtual machines). You manage the OS, runtime, middleware, application code, and data. Example: Amazon Web Services (AWS) Elastic Compute Cloud (EC2), which rents you a virtual machine and stops there. IaaS is the right default when a workload needs a specific kernel version, custom drivers, or full control of the network stack, for example lifting an existing application that depends on a particular OS build.
PaaS. The provider additionally owns the OS, runtime and middleware. You push application code (or a container image) and the platform patches, scales and load-balances it for you. Example: Google App Engine on Google Cloud Platform (GCP). PaaS fits a small team that wants to ship a web application without hiring dedicated operations staff.
SaaS. The provider owns everything, including the application itself. You own only your data and its configuration: which users exist, what they can see, how records are structured. Example: Salesforce. SaaS is the right choice for a standard business capability, such as a customer relationship management (CRM) system, where building your own would create no advantage.
| Layer | IaaS | PaaS | SaaS |
|---|---|---|---|
| Networking | Provider | Provider | Provider |
| Virtualization | Provider | Provider | Provider |
| Operating system | Customer | Provider | Provider |
| Runtime | Customer | Provider | Provider |
| Middleware | Customer | Provider | Provider |
| Application | Customer | Customer | Provider |
| Data | Customer | Customer | Customer |
Data never fully moves to the provider's column. You always decide who is allowed to see it and whether it is used correctly, even when the provider secures every layer beneath it.
Worked example: classifying five real services
- AWS EC2 = IaaS. It hands you a virtual machine. You choose and patch the OS, install a runtime, and own everything above the hypervisor.
- GCP App Engine = PaaS. You deploy application code; the platform owns the OS, the language runtime, and automatic scaling. You never log into a server.
- Azure SQL Database = PaaS, not IaaS, even though "it's a database" makes it sound like infrastructure. Microsoft manages the OS and the database engine's patching and high availability; you manage schema, queries and data. Contrast this with running SQL Server on an Azure virtual machine, which would be IaaS, because you would own the OS and the engine installation yourself.
- Salesforce = SaaS. A finished CRM application. You configure objects, fields and workflows and own your customer records, but Salesforce owns the application code, runtime and infrastructure underneath.
- Google Workspace = SaaS. Gmail, Docs and Drive are ready-to-use applications. Your real responsibility is your data and access configuration: who is in your organization and what they can share externally.
The same ladder shows up on an ML (machine learning) team's bill. A GPU-backed virtual machine running a custom training loop is IaaS: you install the framework, the drivers, and manage the OS yourself. A managed training job that takes your training script and returns a model artifact sits in the PaaS band: the provider owns the cluster orchestration and worker scaling (coordinating many machines to run the job together, and adding or removing machines as the workload changes), you own the training code, data and the resulting model. A managed model-serving endpoint is the same band: you supply the model, the platform owns the runtime and autoscaling of the inference containers (the running, ready-to-answer copies of your packaged model that handle prediction requests).
Trade-offs and pitfalls
The most common misclassification is calling a managed database IaaS "because it holds data like a database server would." The test is not what the service does, it's which layers you still touch: if you never patch an OS or install the database engine, it is PaaS regardless of the product name. A second pitfall is assuming SaaS means zero responsibility; you are always responsible for who has access and how it is configured, and a breach caused by an over-permissioned admin account is still your incident even though the vendor wrote no bad code. Finally, don't treat the three models as a single company-wide choice: most real organizations run all three at once (EC2 for a legacy system, App Engine for a new service, Workspace for email), and the interesting decision is made per workload, not once.
Unlock Full Question Bank
Get access to all 9 Cloud Service and Deployment Models interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.