Bird
0
0

What is the main difference between per-user and per-IP rate limits in REST APIs?

easy📝 Conceptual Q11 of 15
Rest API - Rate Limiting and Throttling
What is the main difference between per-user and per-IP rate limits in REST APIs?
APer-user limits block IP addresses; per-IP limits block user accounts.
BPer-user limits count requests from each IP; per-IP limits count requests from each user.
CPer-user limits track requests by user identity; per-IP limits track requests by the requester's IP address.
DPer-user limits apply only to logged-out users; per-IP limits apply only to logged-in users.
Step-by-Step Solution
Solution:
  1. Step 1: Understand per-user limits

    Per-user limits count how many requests each user (identified by login or token) makes.
  2. Step 2: Understand per-IP limits

    Per-IP limits count requests based on the IP address making the request, regardless of user identity.
  3. Final Answer:

    Per-user limits track requests by user identity; per-IP limits track requests by the requester's IP address. -> Option C
  4. Quick Check:

    Per-user = user identity, Per-IP = IP address [OK]
Quick Trick: User limits track users; IP limits track locations [OK]
Common Mistakes:
  • Confusing user identity with IP address
  • Thinking per-IP limits block users
  • Assuming per-user limits apply only to logged-out users

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes