300-435 Question 10
Single answerA network engineer is designing an automation solution to integrate with a Cisco device using APIs. The solution requires lightweight communication with stateless interactions and must leverage widely adopted standards for web-based APIs. Which API style would be most suitable for this use case?
- A
REST
- B
RPC (Remote Procedure Call)
- C
SOAP (Simple Object Access Protocol)
- D
GraphQL
Show answer and explanation
Correct answer: A
Explanation
REST is the most suitable API style for this scenario because it is lightweight, stateless, and widely adopted for web-based communications. It offers simplicity and flexibility, making it a popular choice for API integrations with Cisco devices and other systems.
- A. Correct.
REST (Representational State Transfer) is a lightweight and widely adopted API style that emphasizes stateless interactions, making it ideal for web-based communication and integration.
- B. Incorrect.
RPC (Remote Procedure Call) is more procedural and focuses on executing functions or methods remotely, which may not be the best fit for lightweight, stateless web-based interactions.
- C. Incorrect.
SOAP is a protocol-based API style that is heavyweight and relies on XML-based messaging, making it less suitable for lightweight and simple implementations.
- D. Incorrect.
GraphQL is a query language for APIs that allows clients to fetch only specific data they need, but it is not as focused on stateless interactions as REST and is less widely supported in Cisco platforms.