EC2 performance and right-sizing: SOA-C03 study notes and practice questions
What to know about EC2 performance and right-sizing for the SOA-C03 exam, from the Monitoring, Logging, Analysis, Remediation, and Performance Optimization domain (22% of the exam guide), then 1 free question to test it. Part of the SOA-C03 study guide.
Compute performance questions ask why an instance is slow, or how to make it faster or cheaper.
Right-sizing
AWS Compute Optimizer recommends instance types for EC2, Auto Scaling groups, EBS, Lambda, ECS on Fargate and RDS, from CloudWatch history (14 days by default, up to 93 days with enhanced infrastructure metrics).
It can only consider memory if the CloudWatch agent publishes memory metrics.
Change an EBS-backed instance’s type by stopping it, changing the type and starting it.
Burstable instances (T family)
Earn CPU credits below a baseline and spend them above it.
When credits run out in standard mode, CPU drops to the baseline; unlimited mode (default for T3 and later) keeps bursting and charges for surplus credits.
A steady high CPU load belongs on a fixed-performance family (M, C), not T.
Watch CPUCreditBalance and CPUSurplusCreditBalance.
Choosing instances
Need
Family
Balanced
M, T
CPU-bound
C
Memory-bound
R, X
Fast local storage
I, D
GPUs / accelerators
P, G, Inf, Trn
Graviton (Arm) instances usually give better price performance for supported software.
A logistics broker uses AWS Compute Optimizer to right-size its EC2 fleet. For its route-planning servers, Compute Optimizer recommends a smaller instance type with half the memory, but the application owners report that memory usage on these servers is regularly above 70 percent.
The operations team wants recommendations that reflect the servers' real memory use.
What should a CloudOps engineer do?
Choose one answer.
AA. Install the CloudWatch agent on the servers to publish memory utilization for Compute Optimizer to analyze.
BB. Turn on enhanced infrastructure metrics so that Compute Optimizer analyzes up to three months of utilization history.
CC. Turn on detailed monitoring on each instance so that Compute Optimizer receives one-minute utilization data.
DD. Use the Trusted Advisor Low Utilization Amazon EC2 Instances check instead, because it includes memory in its analysis.
Compute Optimizer only knows what CloudWatch knows. EC2 reports CPU, network and disk I/O from the hypervisor, but memory needs the CloudWatch agent inside the instance. Once memory metrics are published, Compute Optimizer uses them and its recommendations account for memory-heavy workloads.
Want more on EC2 performance and right-sizing? The 5 full-length practice sets have 5 more EC2 performance and right-sizing questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →