Based on the SAP-C02 exam guideReport an error
Over the week we looked at nearly every building block of the container domain, from ECS, EKS, Fargate, Karpenter, and IRSA to Service Connect. Now we see how the SAP exam actually combines these blocks into a single question. The exam's container questions do not ask about single-service knowledge but about combinations of blocks. "Multi-account + EKS + cost + hybrid" appears in a single question at the same time, and keyword matching alone does not get you even half. The key is how Domain 1 (organizational complexity and reliability), Domain 2 (architecture and resilience), and Domain 3 (security and cost) branch out on the common foundation of containers.
This article is the time to cement the week through 12 scenario questions. Each question demands not simple fact-checking but branching judgment. The pattern where changing a single sentence of the same scenario moves the correct answer to a different option is typical of SAP, and the explanations spell out those branch points. At the end, we organize the whole Week 7 mapping on one page.
Q1. Starting a container workload
│
├─ Is simple deployment and zero operations the top priority?
│ └─ Yes → App Runner
│ └─ No → below
│
├─ K8s standard compatibility / multi-cloud portability?
│ └─ Yes → EKS
│ └─ No → ECS
│
▼
Q2. Choosing the data plane
│
├─ Minimal operational burden? → Fargate
├─ Bin packing / high density? → EC2 Launch Type
└─ On-premises? → Anywhere
Q3. Node autoscaling (EKS)
├─ Fast scaling / bin packing / automatic Spot? → Karpenter
└─ Simple ASG-based? → Cluster Autoscaler
Q4. Per-Pod permissions
├─ Reuse permissions across multiple clusters? → Pod Identity
├─ OIDC standard compatibility? → IRSA
└─ A single node-level permission is OK? → Instance Profile (anti-pattern)
Q5. Cost optimization
├─ 24/7 steady load → EC2 + Compute SP
├─ Variable + zero operations → Fargate Spot + Compute SP
├─ Short and frequent → Lambda
└─ ARM compatible → Graviton +20% savings
Q6. Service-to-service communication
├─ Full mesh (mTLS, canary) → App Mesh
├─ Lightweight mesh for ECS → Service Connect
└─ Discovery only → Cloud Map
Once this tree is drawn in your head, you can check as you solve the 12 questions which branch your own answer diverged on.
Click a choice to reveal the answer and explanation.
Question 1
A global fintech deploys the same K8s workload to three environments: AWS, GCP, and on-premises. On AWS it wants to reduce the burden of operating the control plane (etcd backup, version upgrades), and it must be able to apply the same manifests as they are to the other environments. What is the most suitable combination?
Question 2
A company operates 30 EKS clusters. Pods in each cluster must access S3 and DynamoDB with least privilege per Pod. What is the method that makes it easy to reuse the same IAM Role across all clusters?
Question 3
An EKS cluster with variable traffic. It must satisfy all of the following: (1) scale-out within 1 minute, (2) optimal instance type chosen each time according to Pod requests, (3) automatic handling of Spot mix, (4) automatic consolidation when node utilization is low. Which tool is suitable?
Question 4
An ECS Fargate back-office API. An average of 5 Tasks is enough, but it spikes to 30 Tasks during campaigns. A 1-year commitment is possible, and some Task interruption is tolerable. What is the cost-optimal configuration?
Question 5
A media startup wants automatic build, deployment, and an HTTPS endpoint from a single code push, with no operational burden. Sidecars, service mesh, and advanced VPC integration are unnecessary. Which service is most suitable?
Question 6
A fintech runs 30 ECS Fargate microservices. (1) mTLS for all communication, (2) 5% traffic canary for new versions, (3) per-service circuit breakers. What is the most suitable combination?
Question 7
Between microservices in an ECS Cluster: (1) automatic service discovery, (2) automatic Envoy sidecar injection, (3) automatic CloudWatch metrics, (4) minimal operational burden. Weighted canary is unnecessary. Which service is suitable?
Question 8
A manufacturer runs industrial gateway container workloads at 100 factories. Some factories lose internet for days at a time. The control plane must operate autonomously inside the factory. Which service is most suitable?
Question 9
Upgrading EKS 1.22 → 1.24. What is the most accurate procedure?
Question 10
An EKS Pod has enough CPU and memory, but new Pods can no longer be scheduled. It looks like it hit a limit other than node resources. What is the solution with the least operational burden?
Question 11
A SaaS has a machine learning inference workload (average 100ms, 50,000 calls per hour, 3GB memory). What is the cost-optimal compute?
Question 12
A company runs EC2 and Fargate at the same time and plans to move workloads from EC2 to Fargate during migration. It wants a 1-year commitment discount, but it must apply to both services and the discount must be maintained during the migration. Which commitment?
The SAP exam's container domain is not simply "which service do you use" but is combined with SAP-specific perspectives. Multi-account, Multi-Region, 7R migration, and the Well-Architected 6 Pillars are layered one at a time onto the same EKS and ECS scenarios, so keyword matching alone does not yield the answer.
Large enterprises operate EKS and ECS clusters separated by account: dev, staging, and prod each in their own account, and the data team and payments team in theirs. How to share ECR images and how to tie IAM Roles together cross-account at that point are favorite SAP scenarios.
Three core patterns:
🎯 Scenario: "A company operates 30 accounts on top of Control Tower. dev, staging, and prod each have their own EKS cluster, and container images are built and deployed only from the central account. The operations team wants to enforce that EKS Pods in all accounts cannot pull images directly from the external internet. Which combination?" — The answer is central account ECR + Repository Policy allowing cross-account pull + SCP blocking external registries + VPC Endpoints (ECR, S3) in each account. An SCP is a guardrail that enforces denial of IAM permissions, and a VPC Endpoint makes traffic flow only inside AWS.
Multi-Region patterns for container workloads fall into two branches.
| Pattern | Structure | Suitable for |
|---|---|---|
| Active/Active | Identical ECS/EKS clusters in two Regions, Route 53 Latency-based Routing | Global users, low latency |
| Active/Passive | One Region operating, another Region as Pilot Light or Warm Standby | DR, low RTO/RPO |
ECR Cross-Region Replication is the foundation of both patterns. A push to one Region is automatically replicated to the ECR of another Region, so the DR Region can use the images immediately. EKS has no cross-region replication of its own, so the standard pattern is to synchronize workload manifests to both Regions with GitOps (ArgoCD, Flux).
The data layer is the hardest part. Choose among DynamoDB Global Tables (multi-region, active-active), Aurora Global Database (asynchronous, < 1 second lag), and S3 Cross-Region Replication (asynchronous) according to the workload's consistency requirements.
📚 Case: During the major us-east-1 outage in December 2021, companies with a Multi-Region Active/Active structure (some of Netflix and Stripe) automatically shifted traffic to us-west-2 and minimized the impact. Companies that ran ECS in a single Region only suffered service outages from as short as 4 hours to as long as 9 hours. When SAP emphasizes "RTO within 5 minutes even for a single-Region failure," Active/Active + Route 53 Health Check is the standard answer.
🔍 Going deeper: The cost of Multi-Region containers cannot be ignored. Running the same workload in two Regions roughly doubles infrastructure cost. To reduce this, lower the activity level with Pilot Light (only the DB and minimal infrastructure on standby) or Warm Standby (running at a small scale). If the RTO/RPO requirement tolerates minutes, Pilot Light is cost-efficient; if the RTO is in seconds, Active/Active.
The AWS migration 7R framework is as follows.
| R | Meaning | Container mapping |
|---|---|---|
| Retire | Decommission | - |
| Retain | Keep as is | - |
| Rehost | Lift & Shift (move without changes) | Move EC2 as is |
| Relocate | VMware → AWS VMC | - |
| Repurchase | Replace with SaaS | - |
| Replatform | Move with small modifications | Containerization (Docker) |
| Refactor | Redesign the architecture | Microservices + ECS/EKS |
Containers are the core tool of Replatform and Refactor. Wrapping a monolithic .war file in a Tomcat container and putting it on ECS is Replatform, and splitting the monolith into 30 microservices and putting them on EKS is Refactor.
🎯 Scenario: "A company is moving an on-premises monolithic Java application (.war + Tomcat) to AWS. It wants to minimize code changes while reducing operational burden. Which 7R strategy and service combination?" — The answer is Replatform + ECS Fargate. Wrap Tomcat + .war in a Dockerfile to containerize it and put it on ECS Fargate. EC2 Rehost leaves the operational burden as is, and EKS Refactor involves large code changes.
⚠️ Pitfall: "Lift & Shift = ECS Fargate" is a wrong-answer pattern. Containerization is Replatform, not Lift & Shift. Lift & Shift is moving without changes, while containerization requires at least writing a Dockerfile and changing the image build.
| Pillar | Container decisions |
|---|---|
| Operational Excellence | Minimize operational burden with App Runner, Fargate, and EKS Auto Mode; debug without SSH using ECS Exec |
| Security | Per-Pod least privilege with IRSA and Pod Identity, mTLS with ACM Private CA + App Mesh, ECR Image Scanning |
| Reliability | Multi-AZ distribution, ALB Health Check, Multi-Region Active/Active, PodDisruptionBudget |
| Performance Efficiency | Automatic selection of the right instance with Karpenter, suitable compute with Graviton and Inferentia |
| Cost Optimization | Combination of Fargate Spot, Compute SP, and bin packing; utilization monitoring |
| Sustainability | Graviton (+20% power efficiency), reducing idle resources by improving utilization, ARM migration |
💡 Related theory: The WA 6 Pillars are a tradeoff framework, and one decision affects several Pillars. For example, going with Karpenter Spot 100% scores ⭐⭐⭐ on cost efficiency but drops to ⭐ on reliability. When the SAP exam explicitly says "both cost and reliability," a balanced configuration such as base=2 + Spot 80% becomes the answer. An answer that maximizes only one Pillar is almost always wrong.
| A | B | Decision criterion (which side?) |
|---|---|---|
| ECS vs EKS | "K8s standard, multi-cloud portability" → EKS, "AWS-centric, simple" → ECS | |
| Fargate vs EC2 Launch Type | "Zero operations, variable" → Fargate, "High density, 24/7" → EC2 + SP | |
| Cluster Autoscaler vs Karpenter | "Simple ASG" → CA, "Fast, consolidation, automatic Spot" → Karpenter | |
| IRSA vs Pod Identity | "OIDC standard, multi-cloud" → IRSA, "Reuse across multiple clusters" → Pod Identity | |
| Cloud Map vs Service Connect | "Discovery only" → Cloud Map, "ECS + Envoy, metrics" → Service Connect | |
| Service Connect vs App Mesh | "Lightweight" → Service Connect, "mTLS, canary, circuit breaker" → App Mesh | |
| App Runner vs ECS Fargate | "PaaS, zero operations" → App Runner, "Fine-grained control, mesh" → ECS Fargate | |
| ECS Anywhere vs EKS Anywhere | "Control plane in AWS" → ECS Anywhere, "Control plane on-premises, air-gapped" → EKS Anywhere | |
| EC2 Instance SP vs Compute SP | "Maximum discount, EC2 only" → EC2 SP, "Flexibility, multiple services" → Compute SP | |
| Lambda vs Fargate | "Under 5 minutes, short and frequent" → Lambda, "Minutes to hours, variable" → Fargate |
Orchestration ──► ECS (AWS-proprietary) / EKS (K8s standard) / App Runner (PaaS)
Data plane ──► EC2 Launch / Fargate / Fargate Spot / Anywhere
Scalers ──► HPA (Pod) / Karpenter (Node, recommended) / Cluster Autoscaler
Pod permissions ──► IRSA (OIDC) / Pod Identity (multi-cluster)
Discovery, mesh ──► Cloud Map (registry) / Service Connect (ECS) / App Mesh (full)
Hybrid ──► ECS Anywhere (control in AWS) / EKS Anywhere (control on-premises) / Outposts
Cost levers ──► Fargate Spot (-70%) + Compute SP (-66%) + Graviton (-20%)
Upgrades ──► EKS one minor at a time, nodes ±1, EBS CSI required from 1.23+
Week 8 is advanced serverless. We cover advanced Lambda (layers, extensions, Provisioned Concurrency), Step Functions (workflow orchestration), EventBridge (event routing), DLQ and retry strategies, and event-driven microservice architecture. The Lambda vs Fargate vs EC2 branch judgment we saw today becomes the starting point of Week 8. What happens one level above ECS and EKS (or one level lighter) is next week's theme.
Over the week we have seen all the building blocks of the container domain. If you have developed the sense of immediately eliminating one or two of the four options on the exam, that is enough. The rest is training to narrow the answer candidates by breaking down two or three keywords of the scenario, and that translates directly into points on the next mock exam and the real exam.