Disk-heavy services slowed down gradually over a day; CloudWatch shows `BurstBalance` at 0 on a gp2 volume.

IntermediateTroubleshootingLatency
Answer

Likely causes → gp2 volumes earn IOPS from size (3 IOPS/GiB) and burst to 3,000 using credits. Sustained load drained the credits and the volume fell to its baseline.

Diagnose →

aws cloudwatch get-metric-statistics --namespace AWS/EBS --metric-name BurstBalance \
  --dimensions Name=VolumeId,Value=$VOL --statistics Minimum --period 300 \
  --start-time $(date -u -d '-1 day' +%FT%TZ) --end-time $(date -u +%FT%TZ)
iostat -x 1 5     # high await, %util near 100

Fix → Migrate the volume to gp3 online (aws ec2 modify-volume --volume-type gp3 --iops 6000), which gives baseline 3,000 IOPS without credits.

Prevent → Standardize on gp3, and alarm on BurstBalance < 20 for any remaining gp2 volumes.

All Real-World Interview questions Roadmap: Interview readiness

More on Latency