nerdexam
Cisco

400-007 · Question #422

The API of an SDN controller named CTL-A uses the HTTP POST method and the same URL for all resources. The JSON body of each messages used to get information for specific resources and operations…

The correct answer is A. CTL-B uses a RESTful API and CTL-A has an HTTP-base API. CTL-B uses HTTP CRUD methods (GET, POST, PUT, DELETE) and different URLs for each resource, which aligns with the core principles of RESTful APIs. RESTful APIs use a uniform interface with unique resource identifiers (URLs) and standard HTTP methods to manipulate CTL-A uses…

Designing Network Services

Question

The API of an SDN controller named CTL-A uses the HTTP POST method and the same URL for all resources. The JSON body of each messages used to get information for specific resources and operations. The API of a SDN controller named CTL-B uses HTTP CRUD methods and a uniform interface with different URLs for each resource. Which API type is used by each SDN controller?

Options

  • ACTL-B uses a RESTful API and CTL-A has an HTTP-base API
  • BCTL-A uses a RESTful API and CTL-B has an HTTP-bsed API
  • CCTL-A and CTL-B have a RESTful API
  • DCTL-A and CTL-B have a non-RESTful API

How the community answered

(56 responses)
  • A
    93% (52)
  • B
    2% (1)
  • C
    5% (3)

Explanation

CTL-B uses HTTP CRUD methods (GET, POST, PUT, DELETE) and different URLs for each resource, which aligns with the core principles of RESTful APIs. RESTful APIs use a uniform interface with unique resource identifiers (URLs) and standard HTTP methods to manipulate CTL-A uses only the HTTP POST method and the same URL for all operations, with the JSON body specifying the resource and operation. This is not RESTful because it does not use the uniform interface or HTTP methods to represent different actions on resources. Instead, it uses HTTP as a transport protocol for RPC-style calls or an HTTP-based API that is not RESTful.

Topics

#RESTful API#SDN controller#HTTP CRUD#northbound interface

Community Discussion

No community discussion yet for this question.

Full 400-007 Practice