nerdexam
Cisco

200-901 · Question #139

How does requesting a synchronous API operation differ from requesting an asynchronous API operation?

The correct answer is C. clients can access the results immediately. In a synchronous API operation, the client sends a request and blocks (waits) until the server completes the operation and returns the result in the same HTTP response. The client can access results immediately upon receiving the response. In contrast, asynchronous operations…

Understanding and Using APIs

Question

How does requesting a synchronous API operation differ from requesting an asynchronous API operation?

Options

  • Aclients poll for the status of the execution of operations
  • Bclients subscribe to a webhook for operation results
  • Cclients can access the results immediately
  • Dclients receive responses with a task id for further processing

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    93% (27)

Explanation

In a synchronous API operation, the client sends a request and blocks (waits) until the server completes the operation and returns the result in the same HTTP response. The client can access results immediately upon receiving the response. In contrast, asynchronous operations return a task ID or job reference (D) so the client can poll for status (A) or receive a webhook callback (B) when processing is complete. The key differentiator is that synchronous = immediate result in the response, asynchronous = deferred result retrieved separately.

Topics

#API concepts#Synchronous API#Asynchronous API#API interaction patterns

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice