Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 65
Which two statements describe the traits of an asynchronous API call? (Choose two.)
Answer options
- A. Code execution blocks or waits for the call to an API to return.
- B. A callback function typically is used to process the response from an API call.
- C. A call to an API does not block the code, but rather it allows application processing to continue.
- D. The end user can experience latency or performance lag while waiting for the API call to return.
- E. The order in which API calls return can be guaranteed.
Correct answer: B, C
Explanation
The correct answers, B and C, highlight that asynchronous API calls use callback functions to handle responses and do not block code execution, allowing other processes to continue. Options A and D are incorrect because they describe blocking behavior, and E is wrong as the order of responses in asynchronous calls is not guaranteed.