Recall & Review
beginner
What is a per-user limit in API rate limiting?
A per-user limit restricts the number of API requests a single user can make within a certain time frame, regardless of their IP address.
Click to reveal answer
beginner
What does a per-IP limit control in API usage?
A per-IP limit restricts the number of API requests coming from a single IP address within a set time, regardless of how many users share that IP.
Click to reveal answer
intermediate
Why might per-user limits be better for APIs with logged-in users?
Because they track individual users, per-user limits prevent one user from overusing the API even if they switch IPs, ensuring fair use among users.
Click to reveal answer
intermediate
What is a downside of using only per-IP limits?
If many users share the same IP (like in offices or public Wi-Fi), they might hit the limit quickly, blocking legitimate users unfairly.
Click to reveal answer
advanced
How can combining per-user and per-IP limits improve API security?
Combining both limits helps stop abuse from single users and from many requests coming from one IP, balancing fairness and protection.
Click to reveal answer
What does a per-user limit track in API rate limiting?
✗ Incorrect
Per-user limits count requests made by each user, no matter which IP they use.
Which scenario is a disadvantage of per-IP limits?
✗ Incorrect
When many users share one IP, per-IP limits can block them unfairly.
Why might an API use per-user limits instead of per-IP limits?
✗ Incorrect
Per-user limits focus on individual users, not IP addresses.
What is a benefit of combining per-user and per-IP limits?
✗ Incorrect
Combining limits helps stop abuse both from single users and from many requests from one IP.
If a user changes their IP address, which limit still controls their API usage?
✗ Incorrect
Per-user limits track the user regardless of IP changes.
Explain the difference between per-user and per-IP limits in API rate limiting.
Think about who or what is being tracked for limiting requests.
You got /4 concepts.
Describe why combining per-user and per-IP limits can be more effective than using just one.
Consider different ways users and IPs can be abused.
You got /3 concepts.