Node.js · Senior · Question 40 of 75
Which rate-limiting algorithm allows short bursts while keeping an average rate?
- 1A fixed counter that never resets
- ✓Correct answer: Token bucket
- 3Random dropping of 50% of requests
Explanation
Tokens refill at a steady rate, and each request spends one; a full bucket allows a burst. Sliding windows are another common approach.