Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 229
How are operations on REST APIs performed as compared to RPC APIs?
Answer options
- A. In a REST API, operations are performed on an object (node) that is identified by a URL, but RPC APIs are operation-oriented.
- B. In a REST API, operations are performed on an external resource that is defined on the API, but the RCP APIs are resource-oriented.
- C. In a REST API, operations are performed on a platform that is identified by the URL, but RPC APIs are platform-oriented.
- D. In a REST API, operations are performed on an internal resource that is defined on the API, but RPC APIs are resource-oriented.
Correct answer: A
Explanation
The correct answer is A because REST APIs focus on resources identified by URLs and operate on these resources, whereas RPC APIs are designed around invoking specific operations. The other options incorrectly describe the nature of REST and RPC APIs, either misidentifying their focus on resources or operations.