Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 23
How should a web application be designed to work on a platform where up to 1000 requests per second can be served?
Answer options
- A. Use algorithms like random early detection to deny excessive requests.
- B. Set a per-user limit (for example, 5 requests/minute/user) and deny the requests from the users who have reached the limit.
- C. Only 1000 user connections are allowed; further connections are denied so that all connected users can be served.
- D. All requests are saved and processed one by one so that all users can be served eventually.
Correct answer: B
Explanation
The correct answer is B because setting a per-user limit helps manage server load and ensures fair access among users. Option A may help with excessive requests but does not ensure equitable service. Option C limits the number of users that can connect, which could exclude legitimate users. Option D, while ensuring eventual service, would lead to significant delays and is not efficient for high traffic.