Volume 4 · Chapter 13 — Compute and Containers

Volume Summary and Interview Rapid-Fire

Goutham Mayaluri 4 min read AWSCloudContainers

13.1 What This Volume Covered

This volume covered where code runs on AWS: EC2 instances and right-sizing, Auto Scaling for elasticity and self-healing, Lambda for serverless event-driven compute, Docker and containers for consistent packaging, the orchestration choices of ECS, EKS, and Fargate, and the core Kubernetes objects and operational mechanisms - Pods, Deployments, ReplicaSets, Services, Ingress, ConfigMaps and Secrets, health probes, and rolling updates. The recurring themes are disposability (treat instances and Pods as replaceable, keep state external), the desired-state model (declare what you want; the platform reconciles and self-heals), and matching the compute model to the workload (instances, containers, or serverless). The rest of this chapter consolidates the essentials.

13.2 Rapid-Fire Interview Questions

Rapid-Fire

What does right-sizing mean and why does it matter?

Choosing the instance family and size that match a workload’s real measured usage plus headroom, rather than over-provisioning (pure waste) or under-provisioning (throttling). It’s data-driven from utilization metrics and is one of the highest-impact cost levers without hurting performance.

Rapid-Fire

EBS vs instance store?

EBS is durable network-attached storage that persists independently of the instance and can be snapshotted; instance store is fast but ephemeral, lost when the instance stops. Keep durable data on EBS; use instance store only for temporary scratch.

Rapid-Fire

How does an Auto Scaling group give both elasticity and resilience?

It maintains a desired number of healthy instances across AZs. Scaling policies add/remove instances with demand (elasticity); health checks replace failed instances automatically and AZ spread survives zone loss (resilience) - the same group delivering both.

Rapid-Fire

When is Lambda the right choice?

For event-driven, spiky, or intermittent workloads where you want automatic scaling and zero idle cost - processing uploads, queue messages, scheduled jobs, variable APIs. Not for long-running processes, steady high throughput, or ultra-low-latency paths sensitive to cold starts.

Rapid-Fire

Container vs virtual machine?

A VM virtualizes hardware with a full guest OS each (heavier, stronger isolation); a container virtualizes the OS, sharing the host kernel (lighter, faster, denser). Containers package just the app and its dependencies for consistent, portable deployment.

Rapid-Fire

Image vs container?

An image is an immutable, versioned template stored in a registry; a container is a running instance of an image (class vs object). Build/test once, run identical containers everywhere; deploy specific version tags, not “latest.”

Rapid-Fire

ECS vs EKS vs Fargate?

ECS is AWS’s simpler native orchestrator; EKS is managed Kubernetes (portable, rich ecosystem, more complex). Fargate is a serverless compute mode for either, removing node management. Decide orchestrator and compute mode as two separate dimensions.

Rapid-Fire

Deployment, ReplicaSet, Pod - how do they relate?

You declare a Deployment (desired image + replica count); it manages a ReplicaSet that keeps that many Pods running (self-healing and scaling); a Pod is the smallest unit wrapping the container(s). The Deployment adds rolling updates and rollbacks.

Rapid-Fire

What does a Kubernetes Service solve?

Pods are ephemeral with changing IPs, so a Service gives a stable endpoint and name for a set of Pods and load-balances across the healthy ones - stable discovery and load balancing despite Pod churn. Ingress adds external host/path routing on top.

Rapid-Fire

Liveness vs readiness probe?

Liveness governs restarts (is the app broken?); readiness governs traffic (is it ready now?). Readiness probes gate rolling updates so only ready Pods get traffic - enabling zero-downtime deploys. A missing readiness probe is a top deployment-failure cause.

13.3 Closing

Compute on AWS spans a spectrum from full-control instances to containers to zero-management serverless, and the senior skill is choosing deliberately: instances when you need OS control, containers for portable microservices at scale, serverless for event-driven variable work - all designed around disposability, external state, and desired-state self-healing. With compute understood, the next volume addresses what these workloads act on: storage and databases, where durability, consistency, and transaction integrity take centre stage.