nerdexam
CiscoCisco

200-901 · Question #500

200-901 Question #500: Real Exam Question with Answer & Explanation

The correct answer is B: GET/discovery/ when the discovery is finished and get the response from the GET call with the. Synchronous REST API behavior means the client waits and receives the complete result in a single response, not a deferred or polling pattern.

Understanding and Using APIs

Question

Refer to the exhibit. The sequence diagram shows a RESTful API call. Which step and response will represent the behavior of the REST API call to be synchronous?

Options

  • APOST/discovery/ when there is a slot available and get the response from the POST call with the
  • BGET/discovery/ when the discovery is finished and get the response from the GET call with the
  • CPOST/discovery?discoveryid= when the discovery is created and get the response from the
  • DPUT/discovery/ when the discovery is created and get the response of the discovery when it is

Explanation

Synchronous REST API behavior means the client waits and receives the complete result in a single response, not a deferred or polling pattern.

Common mistakes.

  • A. A POST that returns immediately when a slot is available provides only a creation acknowledgment, not the finished result - this is the trigger step of an asynchronous flow.
  • C. Receiving a response when the discovery is merely created (not finished) means the client must poll later for the result, which is the definition of asynchronous behavior.
  • D. PUT is used to update a resource, not to retrieve a completed discovery result; this does not represent a synchronous retrieval of the final outcome.

Concept tested. Synchronous vs asynchronous REST API patterns

Reference. https://developer.cisco.com/docs/dna-center/api/2-3-5/

Topics

#REST API#Synchronous API#HTTP Methods#API Interaction Patterns

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions