350-501 · Question #604
What are the four primary components of an API?
The correct answer is A. methods, actions, objects, and formats. The four primary components of an API typically include methods (or verbs) to define actions, objects (or resources) to interact with, and formats for data exchange.
Question
What are the four primary components of an API?
Options
- Amethods, actions, objects, and formats
- BGET, PUT, DELETE, and SET
- CModularity, Abstraction, Stability, and Resources
- Drunning config, startup config, VLAN database, and routing database
How the community answered
(25 responses)- A92% (23)
- B4% (1)
- C4% (1)
Why each option
The four primary components of an API typically include methods (or verbs) to define actions, objects (or resources) to interact with, and formats for data exchange.
APIs are primarily composed of methods (like HTTP verbs GET, POST, PUT, DELETE) which define the actions to be performed, objects (or resources) that are manipulated, and the data formats (such as JSON or XML) used for requests and responses.
GET, PUT, and DELETE are examples of HTTP methods (verbs), and SET is not a standard HTTP method; these are specific actions, not the overarching components of an API.
Modularity, Abstraction, and Stability are principles of good API design, while Resources are a component, but this option does not fully represent the primary components of an API.
Running config, startup config, VLAN database, and routing database are internal components of network devices, unrelated to the structure of an API.
Concept tested: API fundamental components
Source: https://restfulapi.net/
Topics
Community Discussion
No community discussion yet for this question.