nerdexam
Cisco

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.

Automation and Assurance

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)
  • A
    92% (23)
  • B
    4% (1)
  • C
    4% (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.

Amethods, actions, objects, and formatsCorrect

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.

BGET, PUT, DELETE, and SET

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.

CModularity, Abstraction, Stability, and Resources

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.

Drunning config, startup config, VLAN database, and routing database

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

#API#API Components#Programmability

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice