Interview Prep/Python for DevOps/boto3, HTTP & API errors

`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`

IntermediateTroubleshootingboto3, HTTP & API errors
Answer

Likely causes → Too many EC2 API calls per second from your tool (parallel workers, per-resource describes) or other tools sharing the account's quota.

Diagnose → Count calls per phase with debug logs; CloudTrail shows the call volume by user agent.

Fix → Config(retries={"mode": "adaptive", "max_attempts": 10}), reduce concurrency, batch IDs into fewer calls, filter server-side.

Prevent → Design scanners around batch APIs and bounded concurrency from the start.

All Python for DevOps questions Roadmap: Python for automation

More on boto3, HTTP & API errors