nerdexam
CiscoCisco

350-901 · Question #38

350-901 Question #38: Real Exam Question with Answer & Explanation

The correct answer is B: A call to an API does not block the code, but rather it allows application processing to continue. Asynchronous API calls are non-blocking and use callback functions to handle responses, allowing the application to continue executing while waiting.

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

Explanation

Asynchronous API calls are non-blocking and use callback functions to handle responses, allowing the application to continue executing while waiting.

Common mistakes.

  • A. Asynchronous calls do not guarantee return order - responses may arrive in any sequence depending on network latency and server processing time.
  • C. Latency while waiting for a response is a characteristic of synchronous calls, where the thread is blocked until the response is received.
  • D. Blocking or waiting for a call to return is the defining trait of synchronous API calls, the opposite of asynchronous behavior.

Concept tested. Asynchronous vs synchronous API call behavior

Reference. https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing

Topics

#Asynchronous API#Non-blocking#Callbacks#API communication patterns

Community Discussion

No community discussion yet for this question.

Full 350-901 PracticeBrowse All 350-901 Questions