JN0-224 · Question #117
A REST API client uses which two HTTP methods to execute RPC requests on the server? (Choose two.)
The correct answer is A. POST C. GET. REST APIs use HTTP methods to perform different operations on resources. In the context of RPC (Remote Procedure Call) requests: GET: This method is used to retrieve data from the server. In a REST API, it is commonly used to fetch information about resources, such as the…
Question
A REST API client uses which two HTTP methods to execute RPC requests on the server? (Choose two.)
Options
- APOST
- BHEAD
- CGET
- DCONNECT
How the community answered
(35 responses)- A91% (32)
- B3% (1)
- D6% (2)
Explanation
REST APIs use HTTP methods to perform different operations on resources. In the context of RPC (Remote Procedure Call) requests: GET: This method is used to retrieve data from the server. In a REST API, it is commonly used to fetch information about resources, such as the current configuration or operational state. POST: This method is used to send data to the server to create or update a resource. In the context of RPC, POST is often used to execute a procedure on the server that may result in the modification of a resource or triggering of an action.
Topics
Community Discussion
No community discussion yet for this question.