Compute runs application instructions. Choosing compute involves both the resources the software needs and how much of the operating environment your team wants to manage. A website waiting for requests and a collection of jobs that eventually finish do not have the same operating pattern.
Start with an EC2 Instance
Amazon EC2 provides virtual servers called instances. An instance type specifies a combination of processing, memory, storage and networking capabilities. The Amazon Machine Image (AMI) supplies the starting software image, including the operating system. The image and hardware choice must be compatible; selecting a larger instance is not a way to fix incompatible software.
Think of these as two questions: "What resources will the machine have?" and "What software will it start with?" An instance family emphasizes a resource profile; sizes within a family offer different capacity. An AMI is not an instance-size selection or a record of every future change to a running machine.
On a conventional EC2 instance, you manage the guest operating system and its patches, installed applications and access configuration. AWS manages the underlying cloud infrastructure. The additional control is useful when an application requires particular system software, but it also creates work for the customer. A successful launch does not prove the application is secure.
Match the Resource to the Bottleneck
The CPU executes instructions; a vCPU is a virtual processing unit exposed to the instance. Memory holds data being actively worked on. Storage input/output (I/O) moves data to and from storage. Waiting on one resource can leave the others underused.
| Category | Requirement that suggests it |
|---|---|
| General purpose | A balanced mixture of processing and memory needs. |
| Compute optimized | Sustained processing-heavy work with suitable memory capacity. |
| Memory optimized | A large working data set that must be held in memory. |
| Storage optimized | Demanding local storage throughput or I/O activity. |
| Accelerated computing | Software that benefits from supported specialized hardware, such as GPUs. |
Use measurements, not the application name alone. A program called an "image processor" might be waiting on downloads rather than its CPU. A GPU helps only if the application can use the accelerator. More storage capacity is not the same requirement as faster storage operations. These are selection principles, not a requirement to memorize current instance codes.
Jobs, Packaged Servers and Application Platforms
AWS Batch schedules and runs submitted jobs using configured compute environments. A job has work to perform and an outcome, rather than being a website endpoint that waits indefinitely for visitors. Batch manages the batch execution process; you still provide appropriate job code, inputs, permissions and resource requirements. It can use AWS compute options underneath, so it is not a separate processor type.
Amazon Lightsail provides a simpler collection of hosting resources and plans for websites and applications. Instance plans bundle specified resources and allowances. Other resources or usage beyond allowances can affect the bill; "predictable" does not mean unlimited or automatically cheapest. With a Lightsail instance, the installed software still needs customer attention.
AWS Elastic Beanstalk deploys applications into managed environments, handling infrastructure provisioning and capabilities such as health monitoring and scaling. Current documentation distinguishes Standard, running on EC2, and Cluster, running on EKS. EKS is AWS's managed Kubernetes service; the next lesson explains containers and orchestration. At this level, recognize Beanstalk's application-deployment role rather than memorizing its internals. You retain responsibility for your application and chosen configuration, and the underlying resources have costs.
When Compute Must Be at Your Site
AWS Outposts brings supported AWS infrastructure and services to customer premises. It is relevant when work needs local processing or low-latency access to nearby systems. AWS manages the Outposts equipment; the customer site must meet facility, power and connectivity requirements. Supported services vary by form factor and Region.
An Outpost extends an associated AWS Region through a service link. It is not a new independent Region, a replacement for every AWS service, or software that turns an ordinary laptop into an AWS data center. Most small cloud-hosted websites do not need it simply because their owners work in an office.
Two Workloads at a Print Studio
A print studio has a small public website and receives large image collections for overnight conversion. The team wants straightforward website hosting and does not need unusual operating-system customization. A suitable Lightsail plan is worth evaluating for the website. An application team wanting a managed deployment environment could instead evaluate Beanstalk against its requirements.
For the conversion work, suppose the jobs are independent, can queue overnight and spend most of their time processing rather than waiting for storage. Batch is a useful fit for organizing the jobs. Compute-optimized capacity is a candidate, subject to the program's memory and compatibility requirements.
These decisions operate at different levels: Batch organizes execution; the compute configuration supplies capacity. A hosting plan does not by itself provide the job scheduling policy. Conversely, a batch queue is not the studio's always-available website.
Check Your Understanding
A separate studio application requires a custom operating-system component and direct control over its configuration. Is an EC2 instance a reasonable starting point? Would selecting a memory-optimized type automatically solve a measured CPU bottleneck in the overnight jobs?
Answer and Reasoning
EC2 offers the required server control, with responsibility for guest software, patching and security configuration. More memory is not a direct answer to a CPU bottleneck. Evaluate processing capacity while checking the workload's other needs. The service name, resource category and retained operational work all matter; one keyword is insufficient to choose a complete solution.
References
- S05: Domain 3 and S08: scope.
- S114: EC2, S115: instance types, S120: security responsibilities and S121: AMIs.
- S116: Batch, S117: Lightsail and S118: Beanstalk.
- S119: Outposts.
Sources checked on 24 September 2026. No resources need to be launched for these comparisons; pricing choices receive their own later lesson.