Containers, Batch and Specialised Compute
Overview
Beyond virtual machines and functions, AWS offers services for packaging apps as containers, running big batches of jobs, and putting AWS hardware in your own data center. The exam lists them under compute (Task 3.3).
Picture shipping. A container is a standard box that holds your app and everything it needs, so it runs the same anywhere. ECR is the depot storing the boxes, ECS and EKS are the harbour managers who decide where each box goes, and Fargate is a harbour that also provides the trucks. AWS Batch is a job queue that runs thousands of similar tasks, and Outposts is a mini AWS depot installed in your own yard.
Key Concepts
- Amazon ECR (Elastic Container Registry) stores, manages and secures container images.
- Amazon ECS runs Docker containers using AWS-native orchestration; Amazon EKS runs managed Kubernetes.
- AWS Fargate is the serverless compute engine for ECS and EKS - no instances to manage.
- AWS Batch runs batch computing jobs at any scale, provisioning the right compute automatically.
- AWS Outposts brings AWS infrastructure and services to your on-premises facility for a consistent hybrid experience.
- AWS Launch Wizard guides you through sizing and deploying enterprise workloads such as SQL Server or SAP.
- Elastic Beanstalk and Lightsail simplify deployment for web apps and simple virtual servers.
- AWS Auto Scaling adjusts capacity of several services based on demand.
Detailed Notes
Container services compared
| Service | Role | Notes |
|---|---|---|
| ECR | Image registry | Private repositories, image scanning, IAM-controlled |
| ECS | Orchestrator (AWS-native) | Simpler, deep AWS integration |
| EKS | Managed Kubernetes | Choose when you need Kubernetes portability |
| Fargate | Serverless launch type | Pay for vCPU and memory per task, no servers to patch |
| EC2 launch type | You manage the instances | More control, can be cheaper at steady load |
aws ecr create-repository --repository-name web-app
aws ecs create-cluster --cluster-name demo
Why containers
Containers start in seconds, use fewer resources than VMs and give identical behaviour in development and production. A typical flow: build the image, push to ECR, define a task definition for ECS (or a Deployment for EKS), and run it on Fargate.
AWS Batch
Batch removes the need to install batch software or manage clusters. You submit jobs to a job queue; Batch picks instance types, uses Spot where allowed and scales to zero when idle. Typical uses: financial risk simulations, genomics, media rendering, nightly data processing. You pay only for the underlying compute.
AWS Outposts
| Aspect | Detail |
|---|---|
| What | AWS-designed racks or servers installed in your data center |
| Managed by | AWS installs, monitors and updates the hardware |
| Why | Low latency to local systems, local data processing, data residency |
| Services | EC2, EBS, S3 on Outposts, ECS, EKS, RDS and more |
| Connectivity | Needs a link back to its parent AWS Region |
Other simplified compute services
| Service | Use |
|---|---|
| Elastic Beanstalk | Upload code; AWS handles provisioning, load balancing, scaling (PaaS) |
| Lightsail | Simple virtual servers, databases and storage at predictable monthly prices |
| Launch Wizard | Guided, sized deployment of SQL Server, SAP, Active Directory and similar workloads |
| App Runner | Deploy containerised web apps from source or image with minimal setup |
Capacity options recap
| Option | Why choose |
|---|---|
| On-Demand Capacity Reservation | Guarantee capacity in an AZ |
| Dedicated Host | BYOL, compliance needing physical server visibility |
| Dedicated Instance | Hardware isolation without managing host placement |
| AWS Auto Scaling | Keep performance and cost balanced automatically |
Decision guide
| Scenario | Choose |
|---|---|
| Run containers with no servers | ECS or EKS on Fargate |
| Already using Kubernetes | EKS |
| Thousands of parallel compute jobs | AWS Batch |
| AWS services but in my own data center | Outposts |
| Store container images | ECR |
| Guided SQL Server deployment | Launch Wizard |
Real World Example
A media company packages its video transcoding tool in a container, pushes the image to ECR, and runs thousands of jobs through AWS Batch on Spot capacity at night, paying nothing when the queue is empty.
Its customer-facing website runs on ECS with Fargate, so engineers never patch servers. A broadcast studio with strict latency to its editing hardware installs AWS Outposts on site, and uses Launch Wizard to deploy a SQL Server cluster with the recommended layout.
Architecture Diagram
- 1Developers build a container image from a Dockerfile.
- 2The image is pushed to a private ECR repository.
- 3ECS or EKS schedules the container using a task or pod definition.
- 4Fargate supplies compute without servers to manage.
- 5Auto scaling adds tasks as load increases.
Best Practices
- ✓Enable ECR image scanning and use immutable tags.
- ✓Choose Fargate unless you need host-level control.
- ✓Run fault-tolerant batch jobs on Spot through AWS Batch.
- ✓Use Outposts only when local processing or residency demands it.
- ✓Give each task its own IAM task role with least privilege.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Store Docker images" = ECR.
- "Serverless containers" = Fargate.
- "Run batch jobs at scale" = AWS Batch.
- "AWS in my data center" = Outposts.
Finished this lesson?
0 of 43 lessons done · 0% of the course

