Which description of synchronous calls to an API is true?
Click on the arrows to vote for the correct answer
A. B. C. D.B.
Synchronous calls to an API are blocking calls, which means that the program execution is paused until a response is received from the API.
Option A is not true since synchronous calls can be used in multi-threaded environments, but they can potentially cause performance issues if multiple threads are waiting for a response from the API.
Option B is true. Synchronous calls block the program execution until a response is received from the API. This means that the program cannot continue until the API has responded, which can cause performance issues if the response time is slow.
Option C is not true. The response time of an API call can vary depending on factors such as network latency, server load, and data size. Synchronous calls can potentially block the program for a long time if the response time is slow.
Option D is not true. Synchronous calls can be used for any request size, but they are not recommended for large requests as they can cause performance issues and potentially block the program for a long time.
In summary, synchronous calls to an API are blocking calls that pause program execution until a response is received. They can be used in multi-threaded environments but may cause performance issues if the response time is slow or for large requests.