Domain 3 of 4 · Chapter 2 of 5

High-Performing and Elastic Compute

Unlock the complete study guide + 1,040 practice questions across 16 full exams.

Bundled into the existing AWS Certified Solutions Architect – Associate premium course — no separate purchase.

Included in this chapter:

  • Instance family deep dive: when each family beats the alternatives
  • Graviton compatibility checklist + migration playbook
  • Lambda performance tuning: memory, provisioned concurrency, SnapStart
  • Placement groups + EFA: HPC patterns that need both

EC2 instance families at a glance

FamilyProfileWorkload fitGraviton variant
M (m6i, m7g)Balanced CPU/RAMGeneral-purpose web / app serversm6g / m7g
C (c6i, c7g)Compute-optimized (high CPU/RAM ratio)Batch processing, gaming, scientificc6g / c7g
R (r6i, r7g)Memory-optimizedIn-memory DBs, large JVMs, real-time analyticsr6g / r7g
X (x2idn, x2iedn)Extra-large memorySAP HANA, large Apache Spark
I (i4i)High local NVMe IOPSNoSQL DBs (Cassandra, MongoDB, etc.)
D (d3)Dense HDD storageData warehousing, MapReduce
P (p5)GPU (NVIDIA H100)ML training, HPC
G (g5)GPU (cheaper than P)ML inference, graphics rendering
Inf2 / Trn1nML accelerator (AWS chips)ML inference (Inf2) / training (Trn1n)ARM-based
T (t3, t4g)Burstable CPU creditsCheap, bursty workloadst4g
Hpc (Hpc6id, Hpc7a)HPC + EFA networkingTightly-coupled HPC clusters

Cheat sheet

  • Match the instance family to the workload bottleneck
  • Compute spectrum: EC2 → ECS/EKS → Fargate → Lambda
  • Lambda max: 15 min, 10 GB memory, 10 GB ephemeral storage
  • Lambda provisioned concurrency eliminates cold starts (at a cost)
  • Placement groups: Cluster, Spread, Partition — each for a different goal
  • EFA (Elastic Fabric Adapter) bypasses the kernel — only on HPC + ML
  • Burstable T-family CPU credits — accumulated + spent per second
  • Lambda SnapStart cuts cold starts ~10× for supported runtimes
  • Spot interruption notice = 2 minutes; Rebalance recommendation earlier
  • ECS Fargate capacity provider: base guarantees minimum; weights split the rest
  • ECS Service Auto Scaling target tracking: asymmetric cooldowns for fast scale-out, slow scale-in
  • EKS Cluster Autoscaler priority expander controls which node group scales first
  • ASG lifecycle hooks pause instance launch / terminate for setup / cleanup

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. Amazon EC2 instance types
  2. Burstable performance instances (T family)
  3. Elastic Fabric Adapter (EFA)
  4. Amazon EC2 documentation (root)
  5. Amazon ECS overview
  6. Amazon EKS overview
  7. AWS Fargate
  8. AWS Lambda Developer Guide
  9. AWS Graviton processor
  10. Lambda quotas (15-min, memory, /tmp limits)
  11. Lambda provisioned concurrency
  12. Placement groups
  13. Lambda SnapStart
  14. Spot Instance interruptions
  15. https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html