Bird
0
0

You want to scale 100 agents horizontally but notice CPU usage spikes and slows down. What is the best approach to handle this?

hard📝 Application Q8 of 15
Agentic AI - Production Agent Architecture
You want to scale 100 agents horizontally but notice CPU usage spikes and slows down. What is the best approach to handle this?
ALimit the number of concurrent agents to CPU core count using a pool.
BIncrease the number of agents to 200 for better performance.
CRun all agents sequentially to avoid CPU spikes.
DIgnore CPU usage; it will stabilize automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand CPU limits

    Running too many agents at once overloads CPU causing slowdowns.
  2. Step 2: Use a pool to limit concurrency

    Limiting concurrent agents to CPU cores balances load and performance.
  3. Final Answer:

    Limit the number of concurrent agents to CPU core count using a pool. -> Option A
  4. Quick Check:

    Match concurrency to CPU cores for efficiency [OK]
Quick Trick: Use a pool to limit agents to CPU cores [OK]
Common Mistakes:
  • Adding more agents worsens CPU overload
  • Running sequentially loses parallel benefits
  • Ignoring CPU usage leads to crashes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Agentic AI Quizzes