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.
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.
You discover that a proposed architecture relies heavily on a single cloud-provider managed service with proprietary APIs. As solutions architect you need to document vendor lock-in risk and propose mitigations. List technical and contractual mitigations you would recommend, and how you'd estimate the migration effort later if needed.
Sample Answer
Direct answer
Documenting lock-in risk on a real architecture means going past "we depend on Service X" to a risk-register entry that names the specific capability you actually use, counts how many integration points touch it, and states plainly what breaks and how fast if the vendor changes terms or deprecates the feature. Mitigations split into technical (retrofit an abstraction boundary, keep a tested export path) and contractual (notice periods, price caps, exit rights), and a later migration-effort estimate should be built bottom-up from countable units of work, not guessed as a lump sum.
Documenting the risk
For the proprietary managed service in question, write down: which specific capability you use (not just the service's name); what a competing or open-source alternative would look like; how many integration points touch it, meaning call sites, data formats it produces, and downstream consumers; and a plain-language severity statement such as "if this vendor doubles price or retires this feature, these specific customer-facing behaviors break, and it would take roughly N weeks to recover."
Mitigations
Technical. Retrofit an abstraction boundary so internal callers use your own interface rather than the vendor's software development kit directly. Identify a concrete reference alternative, an actual competing service or open-source equivalent, and note which of its own proprietary features you are deliberately not using today, which tells you how close you already are to portable. Add automated, regularly tested data export to a standard format, so a future migration doesn't discover mid-cutover that the export path was never actually exercised.
Contractual. Negotiate an explicit deprecation-notice clause (a committed minimum notice period before a relied-upon feature is retired), price-increase caps or predictable renewal terms, and, where there is credible negotiating leverage, a right to extract data in a specified format on exit.
Estimating migration effort later: a worked example
A workable approach is a surface-area estimate: enumerate every integration point, classify each as trivial, moderate, or complex based on how provider-specific its logic is, price each class using a per-item basis from a comparable past migration, sum it, and add contingency weighted toward the high side, since migrations of this shape run over more often than under.
Suppose the application uses a proprietary managed queue-and-workflow product across 12 background jobs. On inspection, 8 use only generic enqueue and dequeue semantics (trivial, about 1 person-day each to re-point at a standards-based alternative), 3 use the provider's specific retry and dead-letter queue (DLQ, where failed messages are routed for inspection) configuration (moderate, about 4 person-days each to re-implement the same semantics elsewhere), and 1 relies on a proprietary workflow-orchestration feature with no direct equivalent (complex, scoped separately at 15 person-days based on a comparable past redesign).
8×1+3×4+15=8+12+15=35 person-days (base estimate)
Applying a 40 percent contingency for the migration-overrun pattern:
35×1.4=49 person-days
That gives a planning range of roughly 35 to 49 person-days, presented to stakeholders as "about 7 to 10 weeks of one engineer's time" (35 divided by 5 working days per week is 7 weeks, 49 divided by 5 is 9.8 weeks), rather than a single, falsely precise number.
Trade-offs and pitfalls
The biggest pitfall in documenting lock-in risk is treating it as binary, locked in or not, rather than as a spectrum of how many integration points exist, how proprietary each one is, and how reversible the data is; a risk-register entry that just says "high risk, uses a proprietary service" without that breakdown doesn't actually help anyone prioritize or estimate later. The second pitfall is doing the estimate once, at design time, and never revisiting it: treat the trivial and moderate and complex breakdown as living documentation that gets rechecked whenever new integration points are added, or the estimate silently rots and becomes useless exactly when it is needed most.
A legal requirement mandates that customer data for an EU region must remain in EU jurisdiction. How does choosing SaaS vs PaaS vs IaaS affect your approach to data residency? Provide concrete actions and controls you would enforce for each model to ensure compliance, including contractual and technical measures.
Sample Answer
Direct answer
Service-model choice does not change whether you can meet an EU data-residency requirement; it changes how much of the compliance burden is technical, something you configure and verify yourself, versus contractual, something you have to get in writing and trust. That split tracks the shared-responsibility boundary that governs every service model: IaaS gives you the most levers to pull yourself, SaaS gives you the fewest and pushes the burden toward contract terms.
Controls by model
| Model | Primary lever | Technical controls | Contractual controls |
|---|---|---|---|
| IaaS | You control everything | Deploy only into EU regions and availability zones (AZs, physically separate data-center clusters within a region); use customer-managed encryption keys stored in an EU region; disable or explicitly restrict cross-region backup and replication jobs | A Data Processing Addendum (DPA) covering the specific region, naming any provider control-plane telemetry that might leave the EU |
| PaaS | You choose the managed service's region; the provider owns more of the internals | Confirm the specific managed service's region pinning per service, not just per account, since some providers keep a service's control plane (the provider's own back-end management and orchestration systems that operate the service, separate from where your actual data lives) or diagnostic logs in a home region even when your data plane is EU-pinned; disable non-EU add-ons such as a global cache that could store responses outside the EU | DPA plus a written list of the sub-processors (other companies or services the vendor relies on to help deliver the product, who may also handle your data) and regions that specific managed service uses, since PaaS internals are less visible to you than IaaS |
| SaaS | The vendor's built-in offering, if one exists | Select an EU-hosted tenant if the vendor sells one; use field-level encryption if the product supports it, since you may not control the underlying region otherwise | Standard Contractual Clauses (SCCs) or an equivalent transfer mechanism, audit rights, and a contractual data-deletion and export guarantee, since contract language is close to your only lever |
Worked example
A company running an EU customer database on IaaS provisions its own virtual machines and database engine in an EU region and configures backup jobs to write only to EU storage, verifiable by inspecting their own infrastructure. On PaaS, they pick a managed database's EU region, but must additionally check the vendor's documentation for whether that service's automated backups, diagnostic logs, or support-access tooling are also EU-scoped, since providers have historically kept some metadata in a home region by default. On SaaS, for example a customer-support ticketing product, residency depends entirely on whether the vendor sells an EU-residency tier; if it does not, the technical option may not exist at all, and the choice becomes either avoiding that vendor for EU personal data or accepting a contractual transfer mechanism with legal sign-off.
Trade-offs and pitfalls
The biggest pitfall is assuming "I picked the EU region in the console" fully discharges the requirement above IaaS: managed-service metadata, provider support access, and third-party sub-processors can each independently violate residency even when the primary data store is correctly pinned. On SaaS specifically, pin down what the underlying regulation actually requires, for example the EU's General Data Protection Regulation (GDPR) if that is the driver, since "data must remain in the EU" and "a transfer of personal data outside the EU needs a valid transfer mechanism" are two different, commonly conflated obligations. Treating a residency requirement as absolute when the real rule permits a properly documented transfer mechanism can lead you to reject an otherwise workable vendor for no real compliance benefit.
Your CIO prioritizes cost predictability over absolute lowest spend. Compare how SaaS, PaaS, and IaaS affect operating cost predictability for a medium-sized enterprise. Discuss billing models (subscription, per-resource, usage-based), variable cost exposure, and operational labor costs in your answer.
Sample Answer
Direct answer
For predictability specifically, not lowest absolute spend, the ranking is SaaS ahead of PaaS on committed terms ahead of pure pay-as-you-go IaaS. SaaS's subscription billing turns cost into a near-fixed line item you can plan a year out; IaaS's usage-based billing ties your bill directly to demand and to how well your team manages the infrastructure underneath it.
Billing models compared
| Model | Typical billing | Variable cost exposure | Operational labor cost |
|---|---|---|---|
| SaaS | Subscription, usually per-seat or per-tier | Low: the bill mainly moves when headcount or plan tier changes, both deliberate decisions | Lowest: no infrastructure team required for this workload |
| PaaS | A provisioned-plan tier plus some usage-based add-ons (storage, bandwidth) | Medium: the base plan is predictable, but usage-based extras swing with traffic | Low to medium: some application-level tuning, but no OS or patch labor |
| IaaS | Usage-based (per resource-hour, per gigabyte, per request), unless reserved capacity is purchased | High: a traffic spike, a runaway script, or an unoptimized query directly and immediately inflates the bill | Highest: needs a team actively right-sizing, patching, and monitoring spend, a labor cost that itself competes with IaaS's lower unit price as a reason it often ends up not actually cheaper |
Applying it for a CIO who wants predictability
The Chief Information Officer's stated preference argues for two concrete moves. First, default to SaaS for anything that is a standard capability, since a fixed per-seat subscription is close to the most predictable line item in the entire budget. Second, for custom systems that must run on PaaS or IaaS, negotiate reserved or committed-use pricing (a multi-year capacity commitment in exchange for a discount and a flatter bill) rather than staying on raw on-demand pricing; committed-use converts a variable cost into something closer to fixed, at the price of losing the ability to shrink instantly if usage drops. On IaaS specifically, predictability also requires labor investment: a small cloud financial operations (FinOps) practice of budgets, alerts, and regular right-sizing reviews, precisely because the billing model itself will not provide predictability on its own.
Trade-offs and pitfalls
The pitfall is treating "SaaS is most predictable" as "SaaS is cheapest." Per-seat SaaS pricing can become the single largest line item as headcount grows, so predictability and total cost are different axes, and a CIO who says "predictability over lowest spend" is explicitly accepting the possibility of paying more for a flatter bill. Make that trade-off explicit rather than silently optimizing for cost anyway. Also flag that committed-use IaaS pricing only helps predictability if the workload's baseline is genuinely stable; over-committing capacity for a workload that later shrinks converts "unpredictable but scoped to actual use" into "predictable and now overpaying."
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.
Unlock Full Question Bank
Get access to all 16 Cloud Service and Deployment Models interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.