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?
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.
IMO, all are wrong.
D - doesn't have anything to do with responsiveness and performance.
My guess is that the answers are bad and the idempotent API was the key of the answer, where need to be implemented with a PUT
A, B, and C are obviously sub-optimal practices and should be avoided. D is the only proper answer left, just by the process of elimination alone.
D is helpful for scalability and performance, because if you're using a standard HTTP authorization header, you can deploy authentication and authorization offloading techniques through an API gateway. This will reduce the load on your back-end API services since they don't have to handle that piece anymore.
It is C, look chatgpt The approach that enhances the responsiveness and performance of the API is to use HTTP POST or other non-read methods for read requests when possible. This is because HTTP POST requests are not cached and will retrieve fresh data from the server each time, which can help ensure that the client always receives the most up-to-date data. In contrast, HTTP GET requests are cached by default, which can result in clients receiving stale data and increased load on the server due to repeated requests. Therefore, using HTTP POST or other non-read methods for read requests can help to improve the performance and responsiveness of the API.
This is a classic example of chatgpt responding with a misleading answer, and responding with authority. Having the client avoid using a cache and force the API to fetch a real response each time may help avoid using stale cached data, but it certainly won't improve the performance and responsiveness of the API. It'll make the load on the API service worse.
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Amycert
7 months, 2 weeks agorazvan999
1 year, 4 months agokirrim
1 year, 6 months agoFedesarucho
1 year, 12 months agokirrim
1 year, 6 months ago[Removed]
2 years, 3 months ago