EC2 & Compute

AWS SAA SAA-C03 · Design High-Performing Architectures

By Abu Anns · Last updated 20 November 2026Exam version: SAA-C03 (current)

EC2: virtual servers in the cloud

Amazon Elastic Compute Cloud (EC2) provides virtual servers — instances — that you can launch in minutes, in sizes ranging from a single virtual CPU to machines with hundreds of vCPUs and terabytes of memory. You choose an Amazon Machine Image (AMI) as the starting point: the operating system plus any preinstalled software. AWS provides AMIs for common operating systems, the AWS Marketplace offers third-party images, and you can create your own custom AMIs from a configured instance. An AMI is Regional, but you can copy it to other Regions, which matters for disaster recovery and multi-Region deployments.

Instances run in a VPC subnet, get their permissions from an IAM role, and store data on EBS volumes or instance store volumes. When you stop an instance, its EBS-backed root volume persists and the instance can be restarted later; when you terminate it, the root volume is deleted by default. This distinction shows up in exam questions about cost: stopping instances you do not need is a legitimate way to stop paying for compute while keeping the data.

Choosing an instance family

EC2 instance types are grouped into families by what they are good at, and the exam expects you to match the family to the workload. General purpose (T and M families) balance CPU, memory, and networking for everyday workloads like web servers. Compute optimized (C family) offers a high ratio of CPU to memory for batch processing, media transcoding, and scientific computing. Memory optimized (R and X families) provides large amounts of RAM for in-memory databases and caches. Storage optimized (I and D families) offers high-throughput local storage for data warehousing and distributed file systems. Accelerated computing (P, G, and Inf families) adds GPUs or specialized chips for machine learning and graphics.

The T family deserves special attention because it uses burstable performance: T instances accumulate CPU credits while idle and spend them when they need to burst above a baseline level of CPU. They are cheap and ideal for workloads that are idle most of the time with occasional spikes — a small website, a development server, a microservice. They are a poor choice for sustained high CPU, because once the credits run out the instance is throttled to its baseline. The exam likes to test this: a workload with consistently high CPU on a T instance is a misconfiguration, and the fix is a different family, not a bigger T.

Purchasing options: the cost lever

How you pay for EC2 is one of the biggest cost decisions in any architecture, and a favorite exam topic. On-Demand instances are pay-as-you-go with no commitment: the most flexible and the most expensive per hour. Reserved Instances (and the more flexible Savings Plans) trade a 1- or 3-year commitment for a discount of up to about 72% compared with On-Demand. Spot Instances let you bid for spare capacity at discounts of up to 90%, but AWS can reclaim the capacity with a two-minute warning when it is needed elsewhere — so Spot is ideal for fault-tolerant, interruptible work like batch jobs, rendering, and big data processing, and unsuitable for anything that cannot be interrupted. Dedicated Hosts give you a physical server for compliance or licensing reasons, and Dedicated Instances run on hardware dedicated to your account without the host-level visibility.

The exam's decision rule is simple: steady, predictable, long-running workloads belong on Reserved Instances or Savings Plans; variable or short-lived workloads stay On-Demand; interruptible batch work goes on Spot. Many questions combine this with Auto Scaling: a fleet with a stable baseline plus variable peaks should use Reserved capacity for the baseline and On-Demand or Spot for the peaks.

Placement groups and high performance

A placement group controls how instances are physically placed relative to each other. A cluster placement group packs instances into a single Availability Zone, close together, for workloads that need low latency and high network throughput between nodes — high-performance computing and tightly coupled distributed systems. A spread placement group puts each instance on distinct underlying hardware, so a single hardware failure takes out at most one instance; it is limited to seven instances per AZ. A partition placement group divides instances into groups (partitions) on separate racks, so a rack failure affects only one partition — the right choice for large distributed systems like Hadoop or Cassandra clusters where you want isolation without the seven-instance limit. Cluster placement groups cannot span AZs, which is a trade-off: you gain network performance and lose AZ-level resilience.

Beyond EC2: the compute spectrum

The exam also tests when NOT to use EC2. AWS Lambda runs code without servers for short, event-driven tasks. Amazon ECS and Amazon EKS run containers — ECS with AWS's own orchestrator, EKS with Kubernetes — and both can run on EC2 or on AWS Fargate, which removes the servers entirely. AWS Elastic Beanstalk is a platform-as-a-service option that deploys your application code and manages the underlying EC2, load balancing, and scaling for you. The decision usually comes down to how much control you need versus how much undifferentiated work you want to hand to AWS: full control means EC2, containers mean ECS or EKS, and “just run my code” means Lambda or Beanstalk.

Networking, metadata, and instance features

Several EC2 features matter for performance and security. Enhanced networking uses the Elastic Network Adapter (ENA) to deliver higher bandwidth, higher packet rates, and lower latency than the older virtual network interface — it is enabled by default on current-generation instance types. For workloads that need the lowest possible node-to-node latency, such as tightly coupled HPC simulations, the Elastic Fabric Adapter (EFA) is a network device you can attach to supported instance types; it bypasses the operating system's network stack for direct communication between instances and is designed to be used with a cluster placement group. EBS-optimized instances provide dedicated bandwidth between the instance and its EBS volumes so storage traffic does not compete with network traffic.

Every EC2 instance can reach the instance metadata service at a special link-local address (169.254.169.254) to learn facts about itself: its instance ID, its Availability Zone, its IAM role credentials, and its user data. The current version, IMDSv2, requires a session token before metadata is returned, which protects against server-side request forgery attacks that could otherwise steal the instance's role credentials. AWS recommends enforcing IMDSv2, and the exam treats it as a best practice. Instance hibernation lets you pause an instance and resume it later with its RAM contents preserved on the EBS root volume — useful for long-running processes that you want to stop and restart without losing in-memory state. And EC2 Auto Recovery automatically recovers an instance when the underlying host fails, restarting it on healthy hardware with the same instance ID, private IP, and EBS volumes.

Advertisement

Exam traps to watch for

Practice questions

Test yourself on this guide. Answers are checked instantly, with a full explanation for each question.

Q1.A company runs a nightly batch job that processes log files. The job takes about 3 hours, can be interrupted and resumed without data loss, and the company wants to minimize compute cost. Which EC2 purchasing option is MOST cost-effective for this workload?

Report an error

Q2.A web application runs on T3 instances. During a sustained traffic increase, response times degrade badly even though the instances have spare memory and network capacity. CloudWatch shows the CPU credit balance at zero. What is the BEST solution?

Report an error

Q3.A research team runs a high-performance computing simulation on a cluster of EC2 instances. The instances exchange large amounts of data with each other and need the lowest possible network latency between nodes. Which placement group type should the solutions architect use?

Report an error

Q4.A company runs a production web application 24 hours a day, 7 days a week, with a stable baseline of 20 instances and traffic peaks that need up to 10 more instances for a few hours each day. How should the company purchase this capacity to minimize cost while handling the peaks?

Report an error

Q5.A solutions architect needs to deploy the same custom-configured application server image in two AWS Regions for disaster recovery. What is the correct approach?

Report an error

Q6.A company runs an in-memory caching layer that needs instances with a very high ratio of memory to vCPU. Which EC2 instance family is the BEST fit?

Report an error

Q7.A company wants to run a containerized microservices application without managing any EC2 instances or container servers. Which combination of AWS services meets this requirement?

Report an error

Q8.A development team stops its EC2 test instances every evening and restarts them each morning to save cost. The instances use EBS-backed root volumes. What happens to the data on the root volumes while the instances are stopped?

Report an error