API Synchronous Calls: Characteristics and Benefits | Cisco Exam 300-435-ENAUTO

Characteristics of Synchronous Calls to APIs

Question

What are two characteristics of synchronous calls to APIs? (Choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CE.

https://docs.cloudmgmt.cisco.com/display/40API/Synchronous+and+Asynchronous+APIs

Synchronous calls to APIs are those in which the client application waits for a response from the server before continuing to execute. Here are the characteristics of synchronous calls to APIs:

  1. They block until a response is returned from the server: Synchronous calls wait for a response from the server before proceeding with the execution of the application. This means that the client application is blocked or paused until the server returns the response. The client will not proceed with further processing until it receives a response.

  2. They can add perceived latency to your application if data is not received: If the server takes a long time to respond, the client application can become unresponsive, leading to a delay in processing. This perceived latency can negatively affect the user experience, and hence, it is important to optimize synchronous calls to reduce the time taken to receive a response.

Therefore, options D and C are the correct answers, while A, B, and E are incorrect. Option A is incorrect because synchronous calls can be used with most programming languages. Option B is incorrect because asynchronous calls are not always preferred over synchronous calls, and it depends on the use case. Option E is incorrect because synchronous calls block while waiting for the API to be processed.