Volume 4 · Chapter 12 — Compute and Containers
EKS in Depth and Other Compute Options
12.1 Introduction
This chapter completes compute with EKS specifics (the managed control plane, node group options, and IAM Roles for Service Accounts) and the other compute services the exam expects you to recognize - Elastic Beanstalk, App Runner, Lightsail, Batch, and hybrid edge compute - so you can pick the right compute abstraction for any scenario.
12.2 EKS Architecture and Node Options
EKSruns managed Kubernetes: AWS operates thecontrol plane(API server, etcd) across AZs, and you run the worker nodes. Nodes come three ways:managed node groups(EKS provisions and manages EC2 nodes in an Auto Scaling group, handling updates),self-managed nodes(you run the EC2 nodes for full control), andFargate(serverless pods via Fargate profiles - no nodes to manage, each pod gets right-sized compute). For scaling pods and nodes, theCluster AutoscalerorKarpenteradds/removes nodes, and the Horizontal Pod Autoscaler scales pods. The exam pattern: managed node groups for standard EC2-backed clusters with less operational overhead, Fargate profiles for serverless pods, self-managed only when you need full node control.
flowchart TB
CP[EKS managed control plane - multi-AZ] --> Nodes{Worker nodes}
Nodes -->|managed node group| MNG[EKS-managed EC2 in an ASG]
Nodes -->|Fargate profile| FGP[Serverless pods - no nodes]
Nodes -->|self-managed| SM[Your EC2 nodes - full control]
IRSA[IAM Roles for Service Accounts] -.per-pod least-privilege AWS access.-> Nodes 12.3 IAM Roles for Service Accounts (IRSA)
A key EKS security feature isIAM Roles for Service Accounts (IRSA): instead of giving every pod the node’s IAM role (over-permissioned), you associate a Kubernetes service account with an IAM role via an OIDC provider, so each pod assumes its own least-privilege role and gets scoped temporary AWS credentials. This is the EKS equivalent of ECS task roles and the way to give pods precise AWS permissions - the payments pod can read only its secret, without the node granting broad access. IRSA (and its newer evolution, EKS Pod Identity) is the tested best practice for per-pod AWS access on EKS.
12.4 Other Compute: Beanstalk, App Runner, Lightsail, Batch
The exam expects recognition of several higher-level compute options.Elastic Beanstalkis a PaaS that deploys and manages a web app’s whole environment (EC2, ASG, ELB, capacity) from your code - you keep control of the underlying resources but AWS orchestrates them (good for teams wanting simple app deployment without designing infrastructure).App Runneris a fully-managed way to run a containerized web service or API directly from source or an image, with automatic scaling and load balancing and no infrastructure management (even simpler than ECS/Fargate for a stateless web service).Lightsailis simplified, bundled, low-cost virtual servers/apps for simple projects and predictable pricing (small websites, dev).AWS Batchruns batch computing jobs at any scale, managing the compute (including Spot) for queued jobs - for large-scale batch processing that exceeds Lambda’s limits. Match each: Beanstalk (managed web-app environment), App Runner (managed container web service), Lightsail (simple bundled), Batch (large batch jobs).
12.5 Hybrid and Edge Compute
For hybrid and edge, the exam expects:Outposts(AWS-managed racks running AWS services in your data centre for low-latency/residency, truly hybrid),Local Zones(AWS compute in metro areas for single-digit-ms latency to users),Wavelength(compute inside 5G networks for mobile-edge latency), andECS/EKS Anywhere(run AWS container orchestration on your own hardware). These extend compute beyond the Region to on-premises and the edge - reach for them when a workload needs to run near users or on-premises for latency, residency, or local processing.
12.6 Banking Production Scenario
A bank runs its strategic microservices on EKS with managed node groups for the standard fleet and Fargate profiles for bursty services, using IRSA so each pod holds its own least-privilege role (no broad node permissions), with Karpenter scaling nodes efficiently. A small internal reporting web app runs on Elastic Beanstalk for simple managed deployment, and a lightweight public API uses App Runner. Overnight risk calculations run on AWS Batch across Spot capacity. A trading component runs in a Local Zone for ultra-low latency, and a residency-bound legacy workload runs on Outposts on-premises. This deliberate selection across the compute spectrum - EKS with IRSA for the core, PaaS/managed options for simpler apps, Batch for large jobs, and edge/hybrid for latency and residency - is exactly the professional-level compute design the certification expects.
12.7 Chapter Revision Notes
- EKS: AWS-managed multi-AZ control plane; nodes via managed node groups (EKS-managed EC2), Fargate profiles (serverless pods), or self-managed; Cluster Autoscaler/Karpenter scale nodes.
- IRSA associates a Kubernetes service account with an IAM role (via OIDC) for per-pod least-privilege AWS access - the EKS equivalent of ECS task roles.
- Beanstalk = managed web-app environment (PaaS); App Runner = managed container web service; Lightsail = simple bundled low-cost; Batch = large-scale batch jobs (uses Spot).
- Hybrid/edge: Outposts (AWS in your DC), Local Zones (metro latency), Wavelength (5G edge), ECS/EKS Anywhere (on-prem orchestration).
- Match the abstraction to the need: EKS/ECS for orchestration, Fargate for serverless containers, Beanstalk/App Runner/Lightsail for simpler apps, Batch for jobs, edge/hybrid for latency/residency.