Part 11 · Revision sheet
Cloud, Infrastructure and Delivery
Key Terms
- IaaS / PaaS / SaaS — the same stack with the management boundary drawn at a different layer; the shared-responsibility model splits what you secure from what the provider secures (→ 174)
- Availability zone vs. region — AZs are the default unit of production availability; regions add geography, residency and disaster recovery at real cross-region latency cost (→ 175)
- Service identity — a workload's own cloud-IAM identity, short-lived and automatically rotated, replacing a long-lived key embedded in config (→ 176)
- VPC / private endpoint — a logically isolated network slice; private endpoints keep managed-service traffic off the public internet (→ 177)
- Managed service — trades money and some lock-in for removing a category of operational work — patching, backups, failover (→ 178)
- Container image — an immutable, layered filesystem packaging an app with its exact dependencies, run via OS-level isolation (namespaces/cgroups) (→ 180)
- Reconciliation loop — Kubernetes' control plane continuously compares desired state to observed actual state and acts to close the gap (→ 181)
- Readiness vs. liveness probe — readiness gates traffic without restarting; liveness kills and restarts a stuck process; checking a dependency in liveness amplifies outages (→ 183)
- Infrastructure drift — real infrastructure diverging from the infrastructure-as-code-declared state after an untracked manual change (→ 185)
- Deployment verification — the automated check (error rate, latency, a business metric) that decides a rollout is actually healthy, not just running (→ 187)
- Feature flag — decouples deploy (an engineering event) from release (a business decision) and buys an instant flag-flip rollback (→ 188)
- Expand-and-contract — sequences a breaking schema change into additive, dual-write, switch-over, and cleanup steps so no running code version ever sees a shape it can't handle (→ 189)
Decision Rules
- Use IaaS for low-level control or platform-building; use PaaS/FaaS when the application, not infrastructure, is the differentiator; use SaaS when the capability itself isn't your product (→ 174)
- Default every production service to multi-AZ; reserve multi-region for data residency, genuinely global latency, or disaster recovery, not "just in case" (→ 175)
- Give every workload its own least-privilege service identity instead of sharing one broad identity across unrelated services (→ 176)
- Default to private subnets unless proven otherwise, and use private endpoints for managed-service traffic whenever available (→ 177)
- Prefer managed services for anything that isn't your product's differentiator; self-host only when a specific config, engine version, or cost need demands it (→ 178)
- Use a VM when you need a specific OS/kernel or strong isolation; use a container as the default deployment unit for a stateless service (→ 179, → 180)
- Reach for Kubernetes only once manual placement and recovery are genuinely untenable and the team has the operational skill to run it (→ 181)
- Use a Deployment for stateless workloads; use a StatefulSet only when per-instance identity or storage genuinely matters (→ 182)
- Wire liveness to process health only, never a downstream dependency; wire readiness to whatever actually decides if this pod can serve traffic right now (→ 183)
- Adopt infrastructure as code for anything provisioned more than once or needing an audit trail; run drift checks on a schedule, not only before planned changes (→ 185)
- Use rolling as the default deployment strategy; use blue-green when instant rollback matters more than its 2× capacity cost; use canary when blast radius must be minimized (→ 187)
- Decide rollback vs. roll-forward per change class before the deploy — most schema changes cannot cleanly roll back (→ 187, → 189)
- Use feature flags for risky or user-facing changes needing progressive exposure or instant rollback; skip them when there's no real need to decouple release timing from deploy (→ 188)
- Use expand-and-contract for any non-additive schema change; skip it for a purely additive change with no incompatible window (→ 189)
- Invest in a platform team only once redundant per-team infrastructure work clearly outweighs the cost of centralizing it (→ 190)
- Design provider-agnostic first, then map concepts to one provider's concrete services — go deep on a single provider only with no portability or migration need (→ 191)
Numbers & Formulas
- Multi-AZ deployment spans at least two to three availability zones within a region as the default unit of production availability (→ 175)
- Blue-green deployment costs 2× capacity during the switch, trading that cost for an instant, simple rollback (→ 187)
Traps
- Treating a PaaS as if you own the OS — assuming local disk persists or a fixed IP survives the platform recycling the instance (→ 174)
- Multi-AZ deployed over a hidden single point of failure, such as one shared NAT gateway or a database primary with no cross-AZ standby (→ 175)
- An un-pinned, mutable container tag resolving to a different image at build time than at the last deploy (→ 180)
- A liveness probe checking a downstream dependency, turning one outage into a restart storm for every otherwise-healthy pod (→ 183)
- Collapsing expand-and-contract's steps under deadline pressure — skipping the migrate/dual-write step is the most common cause of a schema-change outage (→ 189)
Self-Quiz
Mark the questions you can explain and choose which topics to revisit.
Answers are available for this page visit. Browser storage is unavailable.
-
Can you place a service across availability zones correctly and justify whether it needs a second region at all? (no → revisit 175)
-
Can you write a least-privilege policy for a workload and explain why a shared broad identity is worse, not just lazier? (no → revisit 176)
-
Can you design probes that fail safely for a given dependency graph and set resource requests from measured usage? (no → revisit 183)
-
Can you choose a deployment strategy and verification metric for a given change and state in advance whether it can roll back? (no → revisit 187)
-
Can you sequence a breaking schema change into expand/migrate/switch/contract and justify why skipping a step reintroduces the outage? (no → revisit 189)