1 / 12 1-4 to answer · Arrow keys to navigate
Your API allows short bursts of traffic (e.g., a client uploading a batch of images) but needs to enforce a long-term average rate. Which rate limiting algorithm best fits this requirement?
A Fixed window counting, because it resets the counter at regular intervals allowing the client to use the full quota in a burst at the start of each window B Token bucket, because tokens accumulate during idle periods up to a maximum capacity, naturally allowing controlled bursts while enforcing an average rate C Leaky bucket, because it queues incoming requests and processes them at a strict constant rate, preventing any burst from reaching the backend D Sliding window log, because it records every request timestamp and rejects any burst that would push the count above the limit within the window