Choosing Target Compute Platforms
This lesson explains how migrated and modernised workloads choose a compute platform that balances control against operational effort, shaped by licensing, workload shape and team skills.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish EC2, containers and Lambda as targets.
- Explain the control and effort spectrum of compute platforms.
- Choose instance types and purchase options.
- Describe special cases such as Windows licensing.
The platforms
Migrated workloads land on the platform that matches how much control they need. EC2 gives full control, for particular operating systems or licensing needs; Dedicated Hosts support per-core licences. Elastic Beanstalk is a managed platform for conventional web applications. ECS or EKS, on EC2 or Fargate, runs containers. Lambda runs event-driven code and short tasks, and AWS Batch runs batch jobs at scale. (App Runner, which ran simple web services from source code or images, stopped accepting new customers on 30 April 2026; ECS on Fargate is the usual alternative.) The following table summarises the platforms.
| Platform | Best for |
|---|---|
| EC2 | Full control, particular operating system or licensing needs (Dedicated Hosts for per-core licences) |
| Elastic Beanstalk | Managed platform for conventional web applications |
| ECS or EKS on EC2 or Fargate | Containers |
| Lambda | Event-driven code and short tasks |
| AWS Batch | Batch jobs |
The control and effort spectrum
The platforms range from most control to least operational effort: EC2, then containers on EC2, containers on Fargate, and Lambda. Moving along the spectrum removes work such as patching operating systems and managing capacity, but requires more change to the application. The right point depends on the scenario's constraints: "no code changes" points to EC2, "least operational overhead" points towards Fargate or Lambda.
Choosing instance types and purchase options
Instances are sized from observed utilisation, not from the on-premises allocation, which was usually set for a peak years in the future and runs far below it. The instance family follows from the resource that limits the workload: C for compute, R for memory and M for balanced workloads, with Graviton instances where the software supports Arm, which typically gives better price performance.
Purchase options follow the load: Savings Plans cover the steady baseline once sizing has settled, and Spot covers fault-tolerant work. Where licences are tied to physical cores or sockets, Dedicated Hosts give visibility of the physical hardware, and AWS License Manager tracks usage against the licences owned.
Special cases
Some workloads need particular treatment. Windows workloads run on licence-included instances, which are simplest, or bring their own licences on Dedicated Hosts; moving .NET applications to Linux removes the Windows licence cost altogether, at the price of modernisation work. Workloads on operating systems that modern instance types no longer support may need an operating system upgrade as part of the migration, which turns a rehost into a small replatform.
Mainframe workloads are modernised with AWS Transform for mainframe, which uses AI agents to analyse and convert mainframe code; the AWS Mainframe Modernization service stopped accepting new customers in November 2025.
Choosing compute targets after the rehost phase
After the rehost phase, the architect chooses compute targets that reduce operational effort while respecting each workload's constraints:
Workload Constraint Target
----------------------------------------- -------------------------------- ----------------------------------
.NET Framework web app on Windows/IIS Windows-only libraries EC2 Windows, license-included,
then .NET modernisation to Linux
Conventional Java web application Small team, no container skills Elastic Beanstalk or ECS Fargate
Nightly report generator (cron on a VM) Runs 20 minutes a day EventBridge Scheduler + Lambda or
ECS Fargate task
SQL Server licensed per core BYOL licences in contract EC2 on Dedicated Hosts with
License ManagerThe report generator is the clearest win: a server that ran 24 hours a day for 20 minutes of work becomes a scheduled task billed only for its runtime. The SQL Server case shows that licensing can outweigh every other factor: the cheapest compute is the one that lets existing licences be used legally, until the database can move to Aurora PostgreSQL.
Which service recommends right-sized EC2 instance types from measured utilisation?
Show answer
AWS Compute Optimizer, which analyses CloudWatch metrics and recommends instance types and sizes.
Exam Tips
Remember for the exam
- "No code changes" points to EC2; "least operational overhead" points to Fargate or Lambda.
- Per-core licensing calls for Dedicated Hosts with License Manager.
- For a conventional web application with little operational effort, use Elastic Beanstalk or ECS on Fargate.
- Size targets from utilisation, not on-premises allocation.
- Use Graviton where the software supports Arm for better price performance.