Volume 11 · Chapter 7 — Banking Production Support and Troubleshooting

Performance Troubleshooting and Optimization

Goutham Mayaluri 4 min read AWSCloudBankingTroubleshootingProduction

7.1 Introduction

Performance Efficiency is a Well-Architected pillar and an exam domain, and diagnosing and fixing performance problems is a core support skill. This chapter covers performance troubleshooting across the layers - compute, storage, network, and database - plus the AWS tools that identify inefficiency and the throttling issues unique to AWS services.

7.2 Compute Performance

Compute performance problems usually come from the wrong instance type or size, or exhausted burst credits. Symptoms: high CPU/memory, throttled bursting. Diagnosis: check utilization metrics (memory needs the CloudWatch agent), and useCompute Optimizerfor ML-based right-sizing recommendations. Fixes: right-size to a family matching the bottleneck (compute-optimized for CPU, memory-optimized for RAM), avoid burstable T instances for steady CPU-heavy workloads (they throttle when credits deplete), enable enhanced networking (ENA) for network-bound workloads, and scale horizontally. For Lambda, more memory means more CPU, so raising memory can reduce duration and even cost. The exam pattern: use Compute Optimizer and utilization metrics to right-size, and match the instance family to the bottleneck rather than guessing.

7.3 Storage and Network Performance

Storageperformance issues: an EBS volume hitting its IOPS/throughput limit (gp2 tied to size, or an under-provisioned gp3/io2) throttles the database or app - fix by moving to gp3 with provisioned IOPS/throughput or io2 for high-performance needs, and ensure the instance is EBS-optimized and large enough for the EBS bandwidth. For shared storage, EFS throughput mode may need adjustment.Networkperformance: cross-AZ or cross-Region traffic adds latency and cost - keep chatty traffic in-AZ, use placement groups for low-latency HPC, enhanced networking for throughput, and CloudFront/Global Accelerator to bring traffic closer. The exam pattern: match EBS volume type/IOPS to the workload, keep traffic local, and use edge services to cut latency.

flowchart TD
  Perf{Slow where?} -->|CPU/memory| Compute[Right-size via Compute Optimizer; correct family; avoid T for steady CPU]
  Perf -->|Disk I/O| Storage[gp3/io2 provisioned IOPS; EBS-optimized]
  Perf -->|Latency across AZ/Region| Net[Keep local; placement groups; CloudFront/Global Accelerator]
  Perf -->|DB slow| DB[Read replicas; ElastiCache/DAX; Performance Insights; index/query tuning]
  Perf -->|Throttling| TH[Raise limits/capacity; backoff; caching]

7.4 Database and Caching Performance

Database performance is the most common bottleneck. Symptoms: slow queries, high load, connection exhaustion. Diagnosis:RDS/Aurora Performance Insightsvisualizes database load by wait type and top SQL, pinpointing the expensive queries and contention; slow-query logs identify the culprits. Fixes: add missing indexes and tune queries, offload reads toread replicas, cache hot reads withElastiCache(orDAXfor DynamoDB), useRDS Proxyto solve connection exhaustion (especially from Lambda), and scale up or to Aurora for more capacity. For DynamoDB, address hot partitions with a better partition key and use on-demand or auto scaling. The exam pattern: use Performance Insights to find the slow query, then index/tune/cache/replica/proxy - the data tier is usually where the real fix lies.

7.5 Throttling and Service Limits

Many AWS performance issues arethrottlingfrom service limits or provisioned capacity. API-level throttling (a service returning rate-exceeded errors) is handled withexponential backoff and jitterand by requesting quota increases. DynamoDB throttling means provisioned capacity is too low or a hot partition - switch to on-demand, raise capacity/auto scaling, or fix the key; DAX absorbs read hot spots. Lambda throttling means the concurrency limit is reached - raise reserved/account concurrency or add a queue to buffer. Kinesis throttling means too few shards. API Gateway throttling is your configured rate/burst. The exam pattern: recognize throttling as a limit/capacity issue, and fix with backoff, higher limits/capacity, caching, or buffering - not by hammering harder.

7.6 Banking Production Scenario

A bank diagnoses a latency incident methodically. Compute Optimizer flags an under-sized memory-optimized instance; right-sizing resolves the app-tier pressure. Performance Insights reveals a query doing a full scan; adding an index and offloading reads to a replica fixes the database. A gp2 volume hitting its IOPS ceiling is moved to gp3 with provisioned IOPS. DynamoDB throttling from a hot partition is resolved by a better partition key and on-demand capacity, with DAX absorbing read spikes. Lambda throttling under a burst is fixed by raising reserved concurrency and buffering with SQS. Cross-AZ chatter is reduced by co-locating services. This layer-by-layer performance troubleshooting is exactly the professional-level operational skill the certification targets.

7.7 Chapter Revision Notes

  • Compute: right-size with Compute Optimizer + utilization; match family to bottleneck; avoid T for steady CPU; more Lambda memory = more CPU.
  • Storage: match EBS type/IOPS (gp3/io2 provisioned), ensure EBS-optimized; Network: keep traffic local, placement groups, enhanced networking, CloudFront/Global Accelerator.
  • Database: Performance Insights + slow-query logs to find culprits; fix with indexes/tuning, read replicas, ElastiCache/DAX, RDS Proxy (connections), scale/Aurora.
  • Throttling = limit/capacity issue: exponential backoff + jitter, request quota increases, raise capacity (DynamoDB/Lambda/Kinesis), cache/buffer - don’t hammer harder.
  • The data tier is usually the real bottleneck; diagnose it before adding more compute.