nerdexam
Cisco

200-901 · Question #16

Which two statements describe the traits of an asynchronous API call? (Choose two.)

The correct answer is B. A call to an API does not block the code, but rather it allows application processing to continue E. A callback function typically is used to process the response from an API call. Asynchronous API calls are non-blocking: the application continues executing while waiting for the response (B). When the response eventually arrives, a callback function is invoked to handle it (E). Option A is wrong because async calls do NOT guarantee order of return. Option…

Understanding and Using APIs

Question

Which two statements describe the traits of an asynchronous API call? (Choose two.)

Options

  • AThe order in which API calls return can be guaranteed
  • BA call to an API does not block the code, but rather it allows application processing to continue
  • CThe end user can experience latency or performance lag while waiting for the API call to return
  • DCode execution blocks or waits for the call to an API to return.
  • EA callback function typically is used to process the response from an API call

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    92% (33)
  • D
    3% (1)

Explanation

Asynchronous API calls are non-blocking: the application continues executing while waiting for the response (B). When the response eventually arrives, a callback function is invoked to handle it (E). Option A is wrong because async calls do NOT guarantee order of return. Option C describes synchronous behavior (blocking/latency experienced by the user waiting). Option D describes synchronous calls where code execution blocks until the call returns.

Topics

#Asynchronous API calls#Non-blocking operations#Callback functions#API characteristics

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice