Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 388
A developer designs and builds an API to interact with a large database that is hosted in the public cloud. The developer is concerned about database performance because the database is shared between production and non-production systems. Which approach provides protection to the database from excessive load?
Answer options
- A. Ensure that only valid users can access the API.
- B. Host the API on a public cloud platform to take advantage of auto-scaling.
- C. Rate limit requests to the API.
- D. Take the API offline if database utilization exceeds a predefined threshold.
Correct answer: C
Explanation
Option C is correct because rate limiting controls the number of requests a user can make in a specific time frame, preventing excessive load on the database. Option A helps with security but does not address performance. Option B may help with scaling but does not directly protect against overload. Option D is too drastic, as taking the API offline could disrupt service rather than manage load effectively.