300-435 Question 12
Single answerA network engineer is developing a new automation solution for their Cisco enterprise network. The solution involves integrating with multiple API endpoints from different systems. The engineer needs an API style that is stateless, provides standard HTTP methods like GET, POST, PUT, DELETE, and is widely used for web-based services. Which API style is most suitable for this requirement?
- A
REST
- B
RPC with JSON
- C
SOAP
- D
gRPC
Show answer and explanation
Correct answer: A
Explanation
REST is the most suitable API style for this scenario because it is stateless, uses HTTP methods like GET, POST, PUT, DELETE, and is widely adopted for web-based services. This makes it ideal for integrating with multiple systems in an enterprise network, as described in the question.
- A. Correct.
REST (Representational State Transfer) is stateless, uses standard HTTP methods, and is widely adopted for web-based services, making it suitable for the described requirement.
- B. Incorrect.
RPC (Remote Procedure Call) with JSON is not inherently stateless and focuses on calling specific functions or methods, which is less suited for web-based services requiring standard HTTP methods.
- C. Incorrect.
SOAP (Simple Object Access Protocol) is a protocol rather than an architectural style, and it is more complex and less widely used compared to REST for modern web-based integrations.
- D. Incorrect.
gRPC is a high-performance RPC framework but uses HTTP/2 and protocol buffers, which are less common compared to REST for typical web-based API integrations.