AWS Solutions Architect Handbook SAA-C03, from zero Bipin Singh
Compute

EC2 fundamentals

3 min readChapter 17 of 48By Bipin Singh

Amazon Elastic Compute Cloud (EC2) provides virtual servers — instances. Even in a serverless world, EC2 underpins many services and appears throughout the exam, especially in performance and cost questions.

Instances, AMIs and launching

Instance families

Instance type names look like m7g.large: family (m), generation (7), attributes (g = Graviton/ARM), size (large).

Family Optimised for Examples of use
General purpose (M, T) Balanced CPU/memory Web servers, small databases; T = burstable CPU credits for spiky low-average load
Compute optimized (C) High CPU per GB Batch processing, media transcoding, high-performance web servers, gaming, scientific modelling
Memory optimized (R, X, z) Large RAM In-memory databases and caches, real-time big data analytics
Storage optimized (I, D, H) High local disk throughput/IOPS NoSQL databases, data warehousing, search, local caches
Accelerated computing (P, G, Inf, Trn, F) GPUs and ML chips ML training/inference, graphics rendering
HPC optimized (Hpc) Tightly coupled HPC Weather, simulations
Tip

Graviton (ARM-based) instances often give better price-performance for compatible workloads — a common "cost-optimized" answer when the software supports ARM.

Scaling an instance

Instance storage

EBS volume Instance store
Persistence Survives stop/start and instance failure (independent lifecycle) Lost on stop, hibernate, terminate or hardware failure
Location Network-attached, in one AZ Physically attached disks
Performance Up to very high IOPS with io2 Very high IOPS and throughput
Use Boot volumes, databases, durable data Caches, buffers, scratch data, replicated data

Details in block and file storage.

Instance lifecycle

Tenancy and hardware

EC2 networking essentials

Monitoring EC2

Exam patterns

Bipin Singh
Written by Bipin Singh

Senior Full-Stack Engineer · AI & AWS. I design and run production systems on AWS — serverless, data and AI.

Work with me