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…
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)- A6% (2)
- B92% (33)
- D3% (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
Community Discussion
No community discussion yet for this question.