EC2, EBS, S3 and RDS Performance Optimization for SOA-C03
Performance optimization on the SOA-C03 exam means reading utilization metrics, recognizing which resource they say is the bottleneck, and choosing the AWS-native fix — right-sizing an instance from Compute Optimizer recommendations, migrating a burst-exhausted gp2 volume to gp3, or putting RDS Proxy in front of a connection-storming database. Task 1.3 absorbed what was an entire domain on the previous exam, so expect several scenario questions from it. They follow one pattern: you are given symptoms — a nightly batch job that slows after twenty minutes, an API whose database latency spikes at peak — and asked to name the metric that proves the diagnosis and the cheapest change that fixes it. This lesson works through compute right-sizing and burstable-instance credits, EBS volume types and the volume-versus-instance ceilings, S3 transfer and request-rate strategies, shared storage selection across EFS, the FSx family and Amazon S3 Files, RDS tuning with CloudWatch Database Insights (formerly Performance Insights) and RDS Proxy, and EC2 placement groups and networking — each from the operator's seat.
What you’ll learn
- Right-size EC2 instances from CloudWatch utilization data and AWS Compute Optimizer, choosing the right lookback period and adding memory metrics
- Diagnose T-family CPU credit exhaustion and decide between unlimited mode and a fixed-performance family
- Pick an EBS volume type from its performance model, and locate an EBS bottleneck at the volume or the instance with CloudWatch metrics
- Select the right S3 strategy: multipart upload, Transfer Acceleration, DataSync, prefix distribution, or Lifecycle rules
- Choose between EFS, the FSx family and Amazon S3 Files for shared storage, and tune EFS lifecycle policies
- Resolve RDS performance problems with CloudWatch Database Insights, Enhanced Monitoring, RDS Proxy and read scaling
- Apply cluster, spread and partition placement groups, ENA and Elastic Fabric Adapter to EC2 networking requirements
The 9 parts · about 16 min of reading
- Right-size compute from utilization evidenceStart hereCompute Optimizer turns utilization history into right-sizing advice, if its lookback and memory data are right, and tags name owners.2 min
- Instance families and the T-family credit trapFamilies encode a resource ratio, and T instances throttle or bill surplus credits at zero balance depending on standard or unlimited mode.2 min
- EBS volume types and their performance ceilingsThe performance model and ceiling of gp3, gp2, io2, io1, st1 and sc1, when to move to Provisioned IOPS, and io2 Multi-Attach.2 min
- Walkthrough: diagnosing gp2 burst exhaustion and fixing it liveA 500 GiB gp2 job slows mid-run as BurstBalance hits zero; Elastic Volumes moves it to gp3 in place with no downtime.1 min
- Locating the EBS bottleneckVolume-level and instance-level EBS metrics show whether a slowdown is the volume's own limit or the instance's aggregate cap.1 min
- S3 performanceMultipart upload, Transfer Acceleration and DataSync each fix a different transfer problem; per-prefix limits and Lifecycle cover the rest.2 min
- Shared storage selectionMatch protocol and clients to EFS, the four FSx types or S3 Files, and tune EFS cost with lifecycle policies that keep paths.2 min
- RDS performanceDatabase Insights finds the SQL behind load; Enhanced Monitoring shows OS processes; Proxy and replicas absorb connections and reads.2 min
- EC2 placement groups and enhanced networkingCluster, spread and partition placement for latency or isolation, plus ENA enhanced networking and EFA's strict deployment rules.2 min
Mind map
How the exam tests this
This task is tested as symptom-to-fix scenarios: you map a described behavior to the metric that proves it, then pick the cheapest effective remediation, and the wrong options are usually near-twins at the wrong layer. Watch the trigger phrases — a workload that slows after sustained load on a T instance in standard mode points at CPUCreditBalance, a gp2 volume that slows mid-job at BurstBalance; volumes with headroom but slow storage points at the instance's EBS limit (InstanceEBS*ExceededCheck, EBSIOBalance%); a request for specific replacement instance types points at Compute Optimizer rather than Trusted Advisor, past spend by a new tag key at cost allocation tag activation plus backfill, a monthly peak missing from Compute Optimizer points at the lookback period, a memory-blind recommendation at the CloudWatch agent; 503 Slow Down points at prefixes and backoff; which SQL is causing load points at Database Insights, which OS process at Enhanced Monitoring; Lambda connection storms at RDS Proxy, and a proxy that still runs out of connections at session pinning. Expect current figures: gp3 reaches 80,000 IOPS and 2,000 MiB/s, so io2 Block Express wins on higher IOPS, sub-millisecond latency or 99.999% durability. Shared-storage items hinge on protocol (NFS, SMB, multiprotocol) and on whether data must stay in S3 (S3 Files versus FSx for Lustre versus Mountpoint).
Key takeaways
- Trusted Advisor only flags idle or low-utilization instances; Compute Optimizer turns CloudWatch history into specific EC2, EBS and Lambda recommendations; use a 32-day lookback (free) for monthly peaks, and publish memory with the CloudWatch agent or it is ignored.
- Tags make findings and spend attributable, but a tag reaches Cost Explorer only after it is activated as a cost allocation tag; grouping starts at activation unless you request a backfill (up to 12 months).
- T2 defaults to standard mode and throttles at zero CPUCreditBalance; T3/T3a/T4g default to unlimited and charge surplus credits instead — constant load belongs on M or C.
- gp3 includes 3,000 IOPS and 125 MiB/s at any size and scales to 80,000 IOPS and 2,000 MiB/s independently of capacity; Elastic Volumes migrates gp2 to gp3 live.
- io2 Block Express is the choice beyond gp3's ceiling or when sub-millisecond latency or 99.999% durability is required; size st1/sc1 on baseline throughput for continuous scans.
- Volume checks at 0 with InstanceEBSIOPSExceededCheck at 1 (or EBSIOBalance% draining) means the instance, not the volume, is the EBS bottleneck.
- Multipart for large objects, Transfer Acceleration for distance, DataSync for scheduled verified copies, more prefixes plus backoff for 503 Slow Down, Lifecycle for cost.
- EFS = Linux NFS, FSx for Windows = SMB with AD, FSx for Lustre = parallel HPC/ML, ONTAP = multiprotocol, OpenZFS = NFS only, S3 Files = NFS access to a bucket with two-way sync.
- Database Insights (formerly Performance Insights) names the SQL and waits behind DB load; RDS Proxy absorbs connection storms unless sessions pin; read replicas offload reads.
Part 1: Right-size compute from utilization evidence
Compute Optimizer turns utilization history into right-sizing advice, if its lookback and memory data are right, and tags name owners.
Frequently asked questions
What is the difference between gp2 and gp3 EBS volumes?
gp2 ties performance to size — 3 IOPS per GiB of capacity, with volumes under 1 TiB bursting to 3,000 IOPS on I/O credits that can run dry under sustained load. gp3 decouples performance from capacity: every gp3 volume gets 3,000 IOPS and 125 MiB/s regardless of size, with no burst credits, and you can provision up to 80,000 IOPS and 2,000 MiB/s independently of size. gp3 is also cheaper per GiB, which is why migrating gp2 volumes to gp3 with Elastic Volumes is the standard recommendation.
How do I know if an EBS volume is running out of burst credits?
Watch the BurstBalance CloudWatch metric on gp2, st1, and sc1 volumes. It reports remaining burst credits as a percentage; when it reaches zero the volume is throttled to its baseline performance. A volume whose BurstBalance falls to 0% at the same time an application slows down — with VolumeQueueLength rising as I/O requests queue up — has exhausted its burst credits. For gp2 the durable fix is migrating to gp3, which has no burst mechanism.
How can I tell whether the EBS volume or the EC2 instance is the storage bottleneck?
On Nitro-based instances, compare two sets of CloudWatch metrics. VolumeIOPSExceededCheck and VolumeThroughputExceededCheck (AWS/EBS) report 1 when a workload asks a volume for more than it is provisioned for. InstanceEBSIOPSExceededCheck and InstanceEBSThroughputExceededCheck (AWS/EC2) report 1 when the instance's aggregate EBS limit is exceeded, and EBSIOBalance% and EBSByteBalance% show smaller instances using up their EBS burst. If the volume checks are 0 but the instance signals fire, faster volumes will not help; move to an instance type with a higher EBS limit.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.