200-301 · Question #679
Which protocol does a REST API use to communicate?
The correct answer is C. HTTP. RESTful APIs primarily rely on the Hypertext Transfer Protocol (HTTP) for communication, utilizing its methods like GET, POST, PUT, and DELETE to interact with resources.
Question
Which protocol does a REST API use to communicate?
Options
- ASSH
- BSNMP
- CHTTP
- DSTP
How the community answered
(64 responses)- A2% (1)
- B2% (1)
- C92% (59)
- D5% (3)
Why each option
RESTful APIs primarily rely on the Hypertext Transfer Protocol (HTTP) for communication, utilizing its methods like GET, POST, PUT, and DELETE to interact with resources.
SSH (Secure Shell) is a network protocol for secure remote access and command execution, not typically used as the primary communication protocol for REST APIs.
SNMP (Simple Network Management Protocol) is used for monitoring and managing network devices, not for building general-purpose web services like REST APIs.
REST (Representational State Transfer) is an architectural style for networked applications, and RESTful APIs are stateless, client-server applications that commonly use HTTP as their underlying communication protocol. HTTP methods such as GET, POST, PUT, and DELETE are fundamental to how clients interact with resources in a RESTful manner.
STP (Spanning Tree Protocol) is a Layer 2 protocol used to prevent loops in Ethernet networks, entirely unrelated to API communication.
Concept tested: REST API communication protocol
Source: https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-design
Topics
Community Discussion
No community discussion yet for this question.