Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 264
A developer deploys a web application in a local data center that is now experiencing high traffic load from users accessing data through REST API calls. Which approach enhances the responsiveness and performance of the API?
Answer options
- A. Ensure that all read requests are clearly identified by the PUT method.
- B. Configure API payload to return errors in HTTP 200 responses.
- C. Use HTTP POST or other non-read methods for read requests when possible.
- D. Use HTTP standard authorization header to submit authentication credentials.
Correct answer: D
Explanation
The correct answer is D because using the standard HTTP authorization header helps streamline the authentication process, which is crucial for performance under high load. Options A and C misuse HTTP methods, which can lead to confusion and inefficiency, while option B incorrectly indicates that errors should be sent with a successful status code, which is not a best practice.