200-301 · Question #1408
Which protocol does a REST API use to communicate?
The correct answer is D. HTTP. REST APIs primarily rely on the Hypertext Transfer Protocol (HTTP) for communication between client and server.
Question
Options
- ASSH
- BSTP
- CSNMP
- DHTTP
How the community answered
(33 responses)- A3% (1)
- B3% (1)
- D94% (31)
Why each option
REST APIs primarily rely on the Hypertext Transfer Protocol (HTTP) for communication between client and server.
SSH (Secure Shell) is used for secure remote access and command execution, not typically for RESTful API communication.
STP (Spanning Tree Protocol) is a Layer 2 protocol used to prevent loops in Ethernet networks, unrelated to API communication.
SNMP (Simple Network Management Protocol) is used for monitoring and managing network devices, not for general-purpose API interaction.
REST (Representational State Transfer) is an architectural style for networked applications that almost exclusively uses HTTP methods (like GET, POST, PUT, DELETE) to perform operations on resources, making HTTP the underlying communication protocol.
Concept tested: REST API communication protocol
Source: https://developer.mozilla.org/en-US/docs/Glossary/REST
Topics
Community Discussion
No community discussion yet for this question.