0%
AWS Solutions Architect Associate (SAA-C03) Exam Prep: Secure, Resilient, High-Performing and Cost-Optimized Architectures
Domain 1: Design Secure Architectures
Domain 2: Design Resilient Architectures
Domain 4: Design Cost-Optimized Architectures
Final Review and Mock Exams
High-Performing Compute
The design high-performing architectures domain expects you to choose compute that meets performance needs without overpaying. For EC2, that starts with the instance family and size. EC2 Instance Families and Purchase Options in the AWS in Practice course covers the families hands on.
Reading an instance type name
An instance type such as m7g.2xlarge has four parts. The letter m is the family, general purpose. The number 7 is the generation; newer generations give better price performance. The letters after the number are attributes: g means AWS Graviton processors, i Intel, a AMD, d local NVMe instance store, n enhanced networking, e extra memory or storage and z high frequency. The size after the dot, from nano to metal, sets vCPUs, memory and network bandwidth, with each size up roughly doubling resources and price.
Instance families
General purpose families, M and T, balance CPU, memory and networking and suit web servers, application servers and small databases. Burstable T instances accumulate CPU credits when idle and spend them during bursts, which suits workloads with low average CPU and occasional spikes; in unlimited mode they can burst beyond their credits for an extra charge. Compute optimised C instances have a high ratio of CPU to memory for batch processing, media transcoding, high performance web servers, scientific modelling and gaming servers. Memory optimised R, X and high memory U instances suit in-memory databases, caches, real time big data analytics and SAP HANA. Storage optimised I and D instances provide high IOPS NVMe or dense HDD instance storage for NoSQL databases, data warehouses and distributed file systems. Accelerated computing P, G, Trn, Inf and F instances provide GPUs, AWS Trainium and Inferentia chips or FPGAs for machine learning, graphics and specialised processing.
Matching the family to the bottleneck
The right family depends on which resource limits the workload. A CPU bound batch job runs faster on C instances. An application that keeps a large working set in memory needs R or X. A database with heavy random I/O on local disks needs I instances. A machine learning training job needs P or Trn instances, and inference at scale fits Inf or G instances. Questions often describe the bottleneck, such as memory pressure causing swapping or CPU at 100 percent, and the answer is the family designed for that resource.
AWS Graviton
Graviton processors are AWS designed arm64 CPUs offering up to 40 percent better price performance than comparable x86 instances for many workloads, with lower energy use. Graviton instances are available in most families, such as m7g, c7g and r7g, and for managed services including RDS, Aurora, ElastiCache, OpenSearch, Lambda and Fargate. Interpreted and managed languages such as Python, Java, Node.js and .NET usually run without change, while compiled code and some third party libraries must be built for arm64. When a question asks to improve price performance for a modern application with the least effort, moving to Graviton is often the answer.
Sizing and scaling
Choosing a size balances vertical scaling, a larger instance, against horizontal scaling, more instances. Horizontal scaling behind a load balancer with Auto Scaling improves availability and elasticity, while vertical scaling suits workloads that cannot be distributed, such as a single database server. Newer generation instances usually give more performance for the same price, so moving from m5 to m7 sizes is often a free improvement.
Bare metal and dedicated options
Metal instances give direct access to the processor and memory without a hypervisor, for workloads that need hardware features, specific licensing or their own virtualisation. Dedicated Instances run on hardware dedicated to one account, and Dedicated Hosts give a whole physical server with visibility of sockets and cores for bring your own license software such as some Windows Server, SQL Server and Oracle licenses. These are chosen for licensing or compliance reasons rather than performance.
Elastic Beanstalk and Lightsail
Elastic Beanstalk deploys web applications onto EC2, Auto Scaling and load balancers from uploaded code, handling provisioning, monitoring and updates while leaving the underlying resources visible and adjustable. Lightsail offers simple virtual servers with predictable monthly pricing for small websites and development. These appear as answers when a question stresses simplicity for developers rather than detailed control.
Processor choices within a family
Many families come in Intel, AMD and Graviton variants, such as m7i, m7a and m7g. AMD variants are usually somewhat cheaper than Intel for similar performance, and Graviton variants usually cheaper still. Workloads that depend on specific instruction sets, such as some media codecs or licensed software certified only on x86, stay on Intel or AMD. High frequency variants such as z1d and m7i with high clock speeds suit software licensed per core, where fewer, faster cores reduce license cost. Knowing that the processor is a separate choice from the family helps answer questions about lowering cost without changing the workload's resource profile.
Choosing sizes with headroom
A production instance should not run constantly near its limit. Leaving headroom for peaks, for example targeting 50 to 70 percent average CPU, prevents latency spikes and gives Auto Scaling time to add capacity before users notice. Too much headroom wastes money, which is why measurement matters. For memory bound workloads, running out of memory is worse than running out of CPU, because the operating system starts swapping or killing processes, so memory headroom deserves more caution.
Instance features that affect performance
Some types include local NVMe instance store, marked with d, which gives fast scratch space without paying for EBS. Network optimised types, marked with n, give much higher bandwidth for data intensive workloads. Nitro based instances deliver nearly all host resources to the instance because virtualisation work is offloaded to dedicated hardware. Instances with more vCPUs also receive more EBS and network bandwidth, so an I/O bound workload sometimes needs a larger size even when CPU is low.
Mixed instance types in Auto Scaling
Auto Scaling groups can use several instance types with the same vCPU and memory ratio, or attribute based selection, which picks any type meeting stated vCPU and memory ranges. This improves the chance of getting capacity, especially for Spot, and lets the group use newer generations as they appear. Weighting tells the group that a larger type counts for more capacity units than a smaller one.
Worked example
A web application runs on m5.xlarge instances at 25 percent CPU and 80 percent memory. CPU is not the bottleneck, memory is. Moving to r7g.large, a memory optimised Graviton type with the same memory and fewer vCPUs, keeps memory headroom, lowers the hourly price and improves performance per core. After the change, Compute Optimizer confirms the new type is optimised, and the Savings Plan commitment is adjusted to the lower spend.
Quick check
Before naming an instance type, state the bottleneck, whether the code can run on arm64, whether licensing depends on cores, and whether the workload is steady or bursty. Those four facts pick the family, processor, size and purchase option.
Quick reference
Balanced: M. Bursty and light: T. CPU: C. Memory: R, X or U. Local I/O: I or D. Training: P or Trn. Inference: Inf or G. Cheaper per performance: Graviton. Per core licensing: high frequency z variants.
Previous generations
Older generations such as m4 or c4 remain available but usually cost more for less performance than current ones. A question that describes an old instance type and asks for better performance at the same or lower cost is often answered by moving to the current generation, ideally on Graviton, with no architectural change.
Measured data, not habit, should decide each of these choices for a production workload.
Final tip
Newer generation, right family, right size: in that order.
CPU bound: C family. Large in-memory data: R or X. Heavy local I/O: I family. ML training: P or Trn. Inference: Inf or G. Balanced: M. Low average with spikes: T.