Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 500
What is a difference between REST and RPC API styles?
Answer options
- A. RPC uses HTML format and REST uses JSON format.
- B. RPC has a single style and REST has multiple styles
- C. RPC uses the POST operation to update and REST uses the PUT operation to update.
- D. RPC is stateful in nature and REST is stateless in nature.
Correct answer: D
Explanation
The correct answer is D because RPC is designed to maintain state across calls, while REST is inherently stateless, meaning each request from a client contains all the information needed for the server to fulfill that request. The other options incorrectly describe the characteristics of RPC and REST, such as their formats, update methods, and style variations.