SkillSprout
Chapter 4 · Lesson 5
Beginner
5 min read

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

ServiceRoleNotes
ECRImage registryPrivate repositories, image scanning, IAM-controlled
ECSOrchestrator (AWS-native)Simpler, deep AWS integration
EKSManaged KubernetesChoose when you need Kubernetes portability
FargateServerless launch typePay for vCPU and memory per task, no servers to patch
EC2 launch typeYou manage the instancesMore control, can be cheaper at steady load
bash
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

AspectDetail
WhatAWS-designed racks or servers installed in your data center
Managed byAWS installs, monitors and updates the hardware
WhyLow latency to local systems, local data processing, data residency
ServicesEC2, EBS, S3 on Outposts, ECS, EKS, RDS and more
ConnectivityNeeds a link back to its parent AWS Region

Other simplified compute services

ServiceUse
Elastic BeanstalkUpload code; AWS handles provisioning, load balancing, scaling (PaaS)
LightsailSimple virtual servers, databases and storage at predictable monthly prices
Launch WizardGuided, sized deployment of SQL Server, SAP, Active Directory and similar workloads
App RunnerDeploy containerised web apps from source or image with minimal setup

Capacity options recap

OptionWhy choose
On-Demand Capacity ReservationGuarantee capacity in an AZ
Dedicated HostBYOL, compliance needing physical server visibility
Dedicated InstanceHardware isolation without managing host placement
AWS Auto ScalingKeep performance and cost balanced automatically

Decision guide

ScenarioChoose
Run containers with no serversECS or EKS on Fargate
Already using KubernetesEKS
Thousands of parallel compute jobsAWS Batch
AWS services but in my own data centerOutposts
Store container imagesECR
Guided SQL Server deploymentLaunch 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

From container image to running task
Architecture
AWS Cloud
Dockerfile
Amazon ECRimages
ECS / EKS
Fargateserverless
  1. 1Developers build a container image from a Dockerfile.
  2. 2The image is pushed to a private ECR repository.
  3. 3ECS or EKS schedules the container using a task or pod definition.
  4. 4Fargate supplies compute without servers to manage.
  5. 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