Implementing Automation for Cisco Service Provider Solutions (SPAUTO) — Question 31
What are two fundamental design constraints of a RESTful API? (Choose two.)
Answer options
- A. It includes a series of interactions to the API that are dependent on one another.
- B. It is dependent on the communication protocol being HTTP.
- C. It exposes procedures or functions for a client call.
- D. Each interaction is independent from all others on the server side.
- E. It is a client-server communication model where the client and the server are independent of one another.
Correct answer: D, E
Explanation
The correct answers, D and E, highlight the independence of interactions and the client-server model in RESTful APIs, which are essential for scalability and flexibility. Options A and C contradict these principles by suggesting dependencies that would violate the statelessness of REST, while option B is too narrow as REST can be implemented over protocols beyond just HTTP.