14.4.7 Check Your Understanding – REST Answers

1. An API in considered RESTful if it has which of the following features? (Choose three.)

  • Stateful
  • Stateless
  • Cacheable
  • Cacheless
  • Client-Server
  • Server-Server

Explanation: An API is RESTful if it is client-server, stateless, and cacheable.

2. Which of the following is a URL?

  • https://www.cisco.com/c/en/us/solutions/design-zone.html#~all-guides
  • https://www.cisco.com/c/en/us/solutions/design-zone.html
  • www.cisco.com/c/en/us/solutions/design-zone.html
  • #~all-guides

Explanation: A URL defines the location of a specific resource on the network without the inclusion of any fragments.

3. Which of the following is a URN?

  • https://www.cisco.com/c/en/us/solutions/design-zone.html#~all-guides
  • https://www.cisco.com/c/en/us/solutions/design-zone.html
  • www.cisco.com/c/en/us/solutions/design-zone.html
  • #~all-guides

Explanation: A URN identifies only the namespace of the resource without reference to the protocol.

4. Which of the following is a URI?

  • https://www.cisco.com/c/en/us/solutions/design-zone.html#~all-guides
  • https://www.cisco.com/c/en/us/solutions/design-zone.html
  • www.cisco.com/c/en/us/solutions/design-zone.html
  • #~all-guides

Explanation: A URI is inclusive of the URN, the URL, any path information, and any fragments. For example, an URI might jump to a specific location on a web page while a URL would load the top of the web page.

5. Which of the following make up the query portion of a RESTful request? (Choose three.)

  • Key
  • Format
  • Parameters
  • Resources
  • API server

Explanation: The query portion of an API request includes the data format, authentication key, and query parameters.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x