Cloud computing models
IaaS, PaaS, CaaS, FaaS and SaaS, public, private, hybrid and multicloud, virtualization vs containers vs orchestration, and how cloud native differs from simply running in a cloud.
Exam tasks: 4.2 (cloud native ecosystem and principles: the cloud computing background the exam assumes)
The decision: who is responsible for which layer (service model), where does it run (deployment model), and is the application merely hosted in a cloud or actually built for one?
Service models: who manages what
The models differ in where your responsibility stops. Everything below that line is the provider's.
| Model | You manage | Provider manages | Example shape |
|---|---|---|---|
| IaaS (Infrastructure as a Service) | OS, runtime, application, data | Servers, storage, network, virtualization | A virtual machine you patch yourself |
| PaaS (Platform as a Service) | Application and data | Everything beneath, including OS and runtime | Push code, the platform builds and runs it |
| CaaS (Container as a Service) | Container images and their config | Orchestration, nodes and the control plane | A managed Kubernetes service |
| FaaS (Function as a Service) | Function code | Servers, scaling to zero, per-invocation billing | Event-triggered functions |
| SaaS (Software as a Service) | Your users and settings | The whole application | Hosted email or CRM |
Exam signal
"You deploy containers but never patch the control plane or the nodes' hardware" is CaaS. "You write a function and are billed per invocation" is FaaS, the building block behind serverless. "Only the application and data are yours" is PaaS.
Deployment models: where it runs
| Model | Meaning | Reach for it when |
|---|---|---|
| Public cloud | A provider's shared infrastructure, rented on demand | Elastic demand, no hardware to own |
| Private cloud | Cloud-style infrastructure used by one organization, on-premises or hosted | Strict data residency or regulation |
| Hybrid cloud | Private and public environments connected and used together | Burst to public capacity, or migrate in stages |
| Multicloud | Services from more than one public provider | Avoiding lock-in, or choosing the best service per task |
- Hybrid is about connecting two kinds of environment. Multicloud is about using several providers. A company can be both.
- Kubernetes gives workloads the same API in every one of these places, which is why it is the common layer for hybrid and multicloud.
Virtualization, containerization, orchestration
| Virtualization | Containerization | Orchestration | |
|---|---|---|---|
| What it does | Splits one machine into several VMs | Packages an app with its dependencies, isolated on a shared kernel | Schedules, scales, heals and connects many containers across many nodes |
| Isolation | Strong: separate kernels | Lighter: namespaces and cgroups | n/a, it manages containers |
| Start time | Minutes | Seconds or less | n/a |
| Typical tool | A hypervisor | A container runtime | Kubernetes |
- A container is not a small VM. It is an ordinary process that the kernel restricts. See Containers and runtimes.
- Orchestration is what turns "I can run a container" into "I can run a thousand, and keep them healthy".
Containers are not more secure VMs
Containers share one kernel, so a kernel flaw affects all of them. That is why sandboxed runtimes such as Kata Containers and gVisor exist: they add a stronger boundary where it matters.
Cloud and cloud native are different things
- Cloud computing is a way to consume infrastructure: on demand, metered, elastic.
- Cloud native is a way to build applications so they use that elasticity well: containers, microservices, declarative APIs, automation. See Cloud native principles.
- A monolith copied onto a rented VM is lift and shift. It runs in the cloud but is not cloud native.
- A cloud native application can also run on-premises, as long as it has the same properties.
Other background terms
| Term | Meaning |
|---|---|
| Stateless | The app keeps no data between requests. Any replica can serve any request, so it scales and restarts freely |
| Stateful | The app depends on data that must survive restarts, such as a database. It needs stable identity and storage |
| Ingress | Traffic entering the cluster from outside (north-south) |
| Egress | Traffic leaving the cluster to outside services |
| Declarative | You state the desired result and the system works out the steps |
| Imperative | You give the steps in order |
- Kubernetes handles stateless apps best with a Deployment and stateful ones with a StatefulSet. See Core objects.
- Ingress here is a traffic direction. The Kubernetes Ingress object is one way to implement it. See Networking.
Where Kubernetes came from
| Step | What changed |
|---|---|
| Linux containers (LXC) | Namespaces and cgroups made process isolation usable, but tooling was hard |
| Docker | Made building, shipping and running containers easy with images and a registry |
| OCI | Standard image and runtime specs, so tools interoperate and no vendor owns the format |
| Kubernetes | Open source orchestrator, donated to the CNCF in 2015, built on lessons from Google's internal systems |
- Alternatives to Kubernetes exist: Docker Swarm, HashiCorp Nomad and Apache Mesos with Marathon. Kubernetes won on ecosystem, extensibility and vendor support.
- OpenShift is a Red Hat platform built on Kubernetes. It adds opinionated defaults, a build system and a console. It is a distribution of Kubernetes, not an alternative to it.
Trends the exam may name
| Trend | One-line meaning |
|---|---|
| Platform engineering | A team builds an internal developer platform on Kubernetes so developers self-serve (Backstage is a CNCF portal project) |
| Edge computing | Running workloads near users or devices. Lightweight distributions such as k3s and projects such as KubeEdge target it |
| WebAssembly | A portable, sandboxed binary format. Some runtimes run Wasm modules instead of containers |
| AI and ML workloads | GPUs scheduled through device plug-ins, training and serving pipelines on Kubernetes (Kubeflow) |
| Vector databases | Stores for embeddings used by AI search. They run on Kubernetes as stateful workloads |
Trend names are rarely the answer
These terms appear as distractors or as context. A question about how to run a stateful vector database still resolves to a StatefulSet and persistent volumes, and a question about self-service platforms still resolves to a platform team, not a new Kubernetes object.
Scenarios
CaaS stops the customer's responsibility at the container image and its configuration, with orchestration and the control plane operated by the provider. IaaS would leave the operating system to the retailer. SaaS delivers a finished application. Private cloud is a deployment model, not a service model.
Hybrid cloud connects a private environment with a public one and uses both. Public cloud alone would move the records too. Multicloud means using more than one public provider, which isn't described. Edge computing is about where compute sits relative to users and devices.
Containers are isolated processes on a shared kernel, so they start quickly and use less memory. Booting a guest OS per workload describes a VM. The isolation claim is backwards, because separate kernels isolate more strongly. VMs are how IaaS is delivered.
Related
Further reading
Observability
Logs, metrics and traces in Kubernetes, how Prometheus, OpenTelemetry, Jaeger and Fluent Bit fit together, the metrics APIs behind autoscaling, and SLOs and cost signals.
Cloud native principles
What "cloud native" means in the CNCF definition, microservices vs monoliths, immutability and declarative APIs, and serverless with Knative.