Choosing the Compute Option with the Least Management
This lesson explains how AWS offers compute at several levels of control. The more AWS manages, the less you operate, but the fewer settings you can change, and questions usually ask for the option with the least management that still fits the need.
Learning outcomes
After completing this lesson, you will be able to:
- Order the AWS compute services from most control to least management.
- Distinguish Amazon ECS, Amazon EKS and AWS Fargate.
- Identify the compute options that run outside AWS Regions.
From most control to least management
AWS compute services range from full control to almost no management. With Amazon EC2, you manage the operating system, patching, scaling and software, which gives full control and suits any software and lift-and-shift migrations. Amazon Lightsail offers simple virtual servers at a fixed monthly price, for simple websites, blogs and beginners. With AWS Elastic Beanstalk, you provide only the application code, and AWS creates the servers, load balancing and scaling.
With ECS or EKS on Fargate, you provide container images and manage no servers at all. With AWS Lambda, you provide only functions, which run in response to events for up to 15 minutes each. AWS Batch runs large numbers of batch jobs, scheduling and scaling the compute for you. When several options meet a requirement, the expected exam answer is usually the one with the least management. The following table summarises the options.
| Service | You manage | Good for |
|---|---|---|
| Amazon EC2 | The OS, patching, scaling setup and software | Full control, any software, lift-and-shift migrations |
| Amazon Lightsail | A simple virtual server with a fixed monthly price | Simple websites, blogs and small applications; beginners |
| AWS Elastic Beanstalk | Your application code; AWS provisions servers, load balancing and scaling | Deploying web applications quickly without managing infrastructure |
| Amazon ECS / EKS with Fargate | Container images; no servers | Containerized applications |
| AWS Lambda | Only your functions | Event-driven code that runs for up to 15 minutes |
| AWS Batch | Job definitions; AWS schedules and scales compute | Large numbers of batch jobs |
Control versus management
Containers
AWS offers several services for running and storing containers. The following list describes them.
- Amazon ECS: AWS's own container orchestration service.
- Amazon EKS: managed Kubernetes, for teams that use Kubernetes.
- AWS Fargate: runs ECS or EKS containers without managing servers.
- Amazon ECR: stores container images.
Compute outside AWS Regions
Some workloads require compute capacity outside the AWS Regions. The following list describes the services that provide it.
- AWS Outposts: AWS hardware installed in your own data centre.
- AWS Local Zones: compute close to large cities for low latency.
Choosing compute
A developer wants to deploy a web application by uploading code, with AWS handling capacity provisioning, load balancing, scaling and health monitoring. Which service fits best?
AWS Elastic Beanstalk. EC2 would require setting up the infrastructure; Lambda runs functions rather than a traditional web application; Lightsail is simpler but does not automatically scale the application in the same way.
Which service runs batch computing jobs without you managing the servers?
Show answer
AWS Batch.
Exam Tips
Remember for the exam
- EC2 gives the most control; Lambda requires the least management.
- Lightsail offers simple virtual servers with predictable monthly pricing.
- Elastic Beanstalk deploys applications while AWS manages the infrastructure.
- Fargate runs containers without servers; ECS and EKS orchestrate them.
- AWS Batch runs batch jobs at scale.
- Outposts and Local Zones extend AWS beyond Regions.