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.
Compare the IaaS, PaaS, and SaaS delivery models, with a concrete example of each. Discuss the pros and cons for a small engineering team, then recommend which model, or combination of models, you would adopt to host a medium-sized web application serving around 10,000 daily active users, run by a 4-person team with limited operations experience. Describe a hybrid approach you might reach for instead, and explain when it would make sense.
Sample Answer
Direct answer
For a 4-person team with limited operations experience hosting an application around 10,000 daily active users, I would recommend PaaS as the primary model, a managed application platform plus a managed database, reserving IaaS only for any piece that genuinely needs it, and treating SaaS as a source of building blocks to buy, such as authentication or transactional email, rather than as the hosting model for the core app itself.
Comparing the three for a small team
IaaS gives full control and potentially the cheapest per-unit compute, but the team would own OS patching, scaling configuration, and monitoring, which competes directly with the very small number of engineering hours available for the actual product. Wrong default here.
PaaS gives up some control, but a 4-person team gets a production-grade deployment, managed scaling, managed database, automated patching, without hiring or becoming operations specialists. That is exactly the trade a resource-constrained team should make.
SaaS is the right model for well-defined, already-solved problems adjacent to the product, using a SaaS product for email delivery, a SaaS-provided authentication service, or a support-ticketing tool for customer service, rather than for the core application, since the core app is presumably the team's actual differentiated product and isn't something an off-the-shelf SaaS product would be.
The recommendation
A managed application platform for the app tier plus a managed database for storage, with a couple of SaaS building blocks glued in for auth and transactional email rather than built from scratch. This keeps the team's operations surface down to "watch a dashboard and occasionally adjust a scaling policy" instead of "own a fleet."
A hybrid approach, and when it makes sense
A hybrid here would mean keeping the core app on a managed platform while running one specific piece on IaaS, for example a background job that needs a software dependency the managed platform doesn't support, or a steady, cost-sensitive batch workload where a small reserved virtual machine is genuinely cheaper at this scale than the managed equivalent. This makes sense once the team has one clear, isolated piece of the system with a requirement PaaS can't satisfy, or a cost delta large enough to justify the added operational surface for that one piece, not as a blanket decision to control more of the stack.
The analytics variant: a different lock-in calculus
If the workload were analytics or business intelligence (BI) flavored instead of a general customer-facing app, for instance this same 4-person team standing up internal reporting dashboards, the PaaS-first instinct needs an extra check. A fully SaaS BI tool gets a working dashboard fastest, but it usually couples the team's reporting logic and data tightly to that vendor's proprietary query language and connectors, a much larger vendor lock-in exposure than picking a managed application platform for a general web app, where the exit path (redeploy the same container elsewhere) is comparatively cheap. A PaaS-level option, a managed data warehouse queried with standard SQL, costs the team a bit more setup and ongoing responsibility, someone has to model the data and maintain the queries, but keeps the exit path open, since standard SQL and exported data are portable in a way a BI SaaS product's proprietary dashboard definitions typically are not. For a 4-person team specifically, that's worth naming explicitly rather than defaulting to "SaaS is always right for a small team," because the team's limited operations capacity has to be weighed against how expensive it would be for that same small team to unwind a deep SaaS BI dependency two years later if the vendor's pricing or roadmap stops fitting.
Trade-offs and pitfalls
The first pitfall is treating "small team, limited ops" as an automatic vote for SaaS everywhere; SaaS for your core differentiated product usually means you're not actually building a product anymore, just configuring someone else's. The second is over-indexing on cost-per-unit-compute when comparing IaaS to PaaS at this scale: at 10,000 daily active users, the labor cost of even a fraction of one engineer's time spent on operations very likely exceeds the sticker-price premium of PaaS, so the "PaaS costs more per server" argument that matters at large scale mostly doesn't apply yet.
Explain what a Platform as a Service (PaaS) offering is and how it differs from IaaS and serverless. Give concrete examples of PaaS products suited to web applications and to container-based workloads, then walk through the operational trade-offs a team takes on by choosing PaaS instead of one of the other two models.
Sample Answer
Direct answer
PaaS sits between IaaS and serverless on a single spectrum of "how much of the running instance do I still manage," rather than off to the side as an unrelated third category. IaaS gives you a virtual machine and you build everything above it. PaaS gives you a managed runtime and deployment target: you push code and the platform runs it continuously. Serverless goes one step further than PaaS by removing the concept of a continuously running instance altogether, scaling to zero and billing per invocation instead.
How PaaS differs from each neighbor
Versus IaaS. On IaaS you decide the OS, patch it, install a runtime, and configure a process manager, and an instance typically stays running whether or not it's serving traffic. On PaaS you supply application code or a container image and a deployment manifest; the platform handles OS patching, runtime installation, health checks and restarts, and autoscaling policy configuration replaces manual instance management.
Versus serverless. PaaS still asks you to think in terms of how many instances and what size, even if it autoscales them for you, and instances generally stay warm between requests. Serverless removes the instance concept entirely, scales per invocation including to zero, and bills per invocation and duration rather than per provisioned hour.
Examples for the two workload shapes the question asks about
Web applications: AWS Elastic Beanstalk, Azure App Service, and Google App Engine let you push source code and get a managed, autoscaled web service with a built-in load balancer.
Container-based workloads: managed container-runtime platforms such as Google Cloud Run or AWS App Runner take a container image, giving you the middleware and dependency control of a container, while the platform still handles the OS, orchestration, and autoscaling, including scaling to zero when idle. This is why these products sit right at the boundary between PaaS and serverless.
Operational trade-offs of choosing PaaS
Instead of IaaS: you give up fine-grained OS and kernel control and the ability to install arbitrary system-level software, and you gain freedom from patch management and instance-level monitoring and alerting.
Instead of serverless: you give up the cost benefit of scaling fully to zero for spiky or idle workloads and take on slightly more capacity-planning thinking, how many instances, what size, but you gain a simpler mental model for stateful or long-running processes and typically fewer cold-start surprises (the extra delay a request hits when it wakes an idle instance or function that has to initialize before it can respond).
Worked example
A small team is choosing between the three for a customer-facing web app with steady, moderate daily traffic that also needs a custom authentication middleware wrapping every request. Raw IaaS would mean owning OS patches for no real benefit, since nothing about the workload needs kernel-level control. Pure serverless functions would technically work but would mean re-architecting the middleware into a function-per-endpoint shape, adding real engineering cost for a workload that isn't particularly spiky. A container-based PaaS product lets the team package the existing middleware into the container image unchanged, deploy it once, and let the platform handle scaling and OS management, which is the best fit given steady traffic and existing middleware investment.
Trade-offs and pitfalls
The main pitfall is picking PaaS reflexively as "the safe middle choice" without checking whether the workload is actually spiky, where serverless's per-invocation billing would save real money, or genuinely needs OS-level control, where PaaS's restrictions become a real blocker, for example a workload needing raw socket access a managed platform won't expose. A second pitfall is assuming all PaaS products are equally restrictive: a container-based PaaS product gives you a much larger slice of control over the runtime and middleware than a source-code-only PaaS product, so the choice between PaaS flavors matters almost as much as the IaaS-versus-PaaS-versus-serverless choice itself.
Describe the shared responsibility model in cloud computing. For a simple 3-tier web application (load balancer, application servers, managed database), list concrete responsibilities the cloud provider handles and responsibilities the customer must implement to meet security and compliance goals.
Sample Answer
Direct answer
The shared responsibility model says the cloud provider is responsible for the security and correctness of everything below the layer you're consuming, and you're responsible for everything you build and configure on top of it and for how you use the pieces the provider gives you. For a 3-tier application, a load balancer, application servers, and a managed database, that line falls in a different place at each tier, because each tier is effectively a different service model in practice.
flowchart TD
U["User traffic"] --> LB["Load balancer (managed service)"]
LB --> APP["Application servers (customer-managed OS)"]
APP --> DB["Managed database"]
Responsibilities, tier by tier
| Tier | Provider handles | Customer must implement |
|---|---|---|
| Load balancer (a managed service) | The physical network, the load balancer software itself, patching, and typically baseline distributed denial-of-service (DDoS, an attack that floods a service with traffic to take it down) protection | Transport Layer Security (TLS, the encryption behind HTTPS) certificate configuration and renewal policy, routing and health-check rules, which backend targets can receive traffic, and any web application firewall (WAF) rules for filtering malicious requests |
| Application servers (running on IaaS virtual machines, since this tier is described separately from the managed database) | Physical hardware, the hypervisor (the software that splits one physical server into several isolated virtual machines), and network isolation between tenants | OS patching, runtime and dependency updates, application code security such as input validation and secrets handling, host-level monitoring and log collection, and configuring the servers so only the load balancer, not the open internet, can reach them directly |
| Managed database | The database engine's installation and patching, and typically automated backups and high-availability failover | Schema and query design, including avoiding injection vulnerabilities in application code that talks to it, access control over which application identities can read or write which data, encryption key management if customer-managed keys are offered, and classifying which data is sensitive enough to need extra controls |
Worked example
Suppose a security review finds that customer records were briefly readable by an unauthorized internal service account. At the load-balancer tier, that's not the provider's issue, since the load balancer correctly routed the traffic it was configured to route. At the application-server tier, it's a customer issue if the application code granted that service account more permission than it needed. At the database tier, it's a customer issue if the database access-control configuration allowed the account to read the table in the first place. Tracing the same incident through all three tiers, at no point was the provider's own responsibility, physical security, hypervisor isolation, database engine patching, actually implicated. This is exactly why a compliance audit asks "which model are you on for each tier" before assigning blame.
Trade-offs and pitfalls
The main pitfall is assuming that because the database is "managed," data-access misconfiguration becomes the provider's problem; managed means the provider keeps the engine patched and running, not that the provider decides who your application should let read what. A second pitfall specific to this 3-tier shape: teams often harden the load balancer and database carefully, since they clearly feel like "cloud things," while under-investing in the application-server tier's OS patching and host-level monitoring, precisely because it's the one tier here that still looks and feels like "our own server," even though the shared-responsibility line places real, non-optional obligations there too.
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.
Compare single-cloud, multi-cloud, and hybrid-cloud strategies. For each approach: define it, list three business or technical scenarios where it is the preferred choice, and explain the primary trade-offs in cost, complexity, operations, and vendor risk. Then argue the other side: describe a scenario where multi-cloud looks attractive but is not actually worth the added complexity.
Sample Answer
Direct answer
Single-cloud means running the whole estate on one public provider. Multi-cloud means deliberately running production workloads across two or more public providers. Hybrid means splitting workloads between a private environment, on-premises or a dedicated private cloud, and one or more public clouds, usually with real integration between the two. These describe different axes (how many providers, versus what type of environment), and conflating "multi-cloud" with "hybrid" in casual conversation is itself a common interview trip-up worth naming directly.
The three strategies
Single-cloud. Preferred when: a small team has no dedicated platform engineers and operational simplicity matters more than negotiating leverage; a workload depends heavily on one provider's deeply integrated managed services, where reimplementing that integration elsewhere would erase most of the benefit; or volume-discount pricing from fully committing to one vendor materially outweighs diversification. Trade-offs: lowest complexity and lowest operational cost (one identity system, one network model, one team to train), but the highest single-vendor risk, since a pricing change, regional outage, or provider incident affects 100 percent of the footprint.
Multi-cloud. Preferred when: there is a genuine best-of-breed need, using one provider's specialized service for one workload and a different provider's for another, driven by real capability differences; a regulatory or customer-contract requirement explicitly bars single-vendor concentration; or resilience against a provider-level outage is worth the ongoing tax for a small number of genuinely critical services. Trade-offs: the highest complexity and operational cost of the three, duplicate identity, networking, observability and skills investment across two ecosystems, plus the cost and latency of any cross-cloud data movement, but the lowest single-vendor dependency risk.
Hybrid. Preferred when: a phased migration off legacy on-premises infrastructure needs a transitional state rather than an instant cutover; "cloud bursting" keeps a steady baseline on-premises and bursts to public cloud only for demand spikes, such as seasonal retail traffic; or a data-residency or latency-sensitive requirement keeps specific data or equipment on-premises, such as factory-floor control systems, while everything else runs in public cloud. Trade-offs: moderate-to-high complexity from integrating two fundamentally different environments with consistent identity and networking; cost sits between the other two depending on the size of the on-premises footprint; vendor risk is lower than single-cloud for the public-cloud portion, but you also now carry on-premises operational risk (hardware refresh cycles, physical capacity planning) that a pure public-cloud strategy would have eliminated.
| Complexity | Operational cost | Vendor risk | |
|---|---|---|---|
| Single-cloud | Lowest | Lowest | Highest |
| Multi-cloud | Highest | Highest | Lowest |
| Hybrid | Medium to high | Medium, depends on on-premises footprint | Medium |
Arguing the other side: when multi-cloud isn't worth it
A mid-sized team decides to run its core application redundantly across two public providers purely to avoid lock-in and gain negotiating leverage, with no regulatory driver and no measured history of a provider outage actually hurting them. In practice this doubles the identity, networking, CI/CD and observability surface the team maintains, and because engineers now need competence in two ecosystems, hiring and onboarding get harder too. The negotiating-leverage benefit is largely theoretical unless spend is large enough that a vendor actually cares about losing the account, and the resilience benefit is often illusory as well, since running two clouds through a thin, lowest-common-denominator abstraction tends to produce an application that gets neither provider's differentiated capabilities while still paying the full operational tax of two ecosystems. The more honest call here is single-cloud with strong internal portability discipline rather than pre-emptively paying the multi-cloud tax for a risk that hasn't materialized.
Trade-offs and pitfalls
The recurring pitfall in interview answers is conflating hybrid with multi-cloud: hybrid is about environment type (private plus public), multi-cloud is about provider count (two or more public providers). You can be both at once, a private data center integrated with two different public clouds, and naming that combination unprompted is a good signal of real fluency with the terms.
Unlock Full Question Bank
Get access to all 14 Cloud Service and Deployment Models interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.