Interview Prep/Real-World Interview/Cloud provider issues

A deploy script and several services start failing with "An error occurred (ThrottlingException) when calling the DescribeInstances operation: Rate exceeded".

BeginnerTroubleshootingCloud provider issues
Answer

Likely causes → AWS API rate limits are per account and region, shared by everything in it. A tight polling loop, a big parallel rollout, or a controller in a retry storm (autoscaler, CNI, external-dns) uses up the budget and every other caller gets throttled too.

Diagnose → In CloudTrail, find who is calling the most:

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DescribeInstances \
  --start-time $(date -u -d '-30 min' +%FT%TZ) --max-results 50 \
  --query 'Events[].Username' | sort | uniq -c | sort -nr

CloudTrail Lake or Athena over CloudTrail logs give better counts per principal.

Fix → Stop or slow the noisy caller. Make clients retry with exponential backoff and jitter (AWS_RETRY_MODE=adaptive, AWS_MAX_ATTEMPTS=10).

Prevent → Cache describe calls, use events (EventBridge) instead of polling, and separate heavy automation into its own account.

All Real-World Interview questions Roadmap: Interview readiness

More on Cloud provider issues