Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 307
A developer is designing a modern, distributed microservice enterprise application. The application will be integrating with other systems and focus on a large deployment, so control of API calls is necessary. What is the best practice to reduce application response latency and protect the application from excessive use?
Answer options
- A. Implement rate limiting on the client side.
- B. Do not enforce any rate limiting.
- C. Implement rate limiting on the client and server sides.
- D. Implement rate limiting on the server side.
Correct answer: D
Explanation
The correct answer is D because implementing rate limiting on the server side effectively manages and controls the number of API requests, reducing response latency and protecting the application from excessive usage. Option A is incorrect as client-side rate limiting can be bypassed by users. Option B is not advisable as it leaves the application vulnerable to overload. Option C, while effective, is more complex and may not be necessary when server-side limiting suffices.