300-635 practice question 14 of 15

What is a characteristic of synchronous and asynchronous API calls?

Full set: 75 questions
Answer options
A: Synchronous API calls must always use a proxy server.
B: ASynchronous communication uses more overhead for client authentication
C: Synchronous communication is harder to follow and troubleshoot
D: Synchronous API calls wait to return until a response has been received Correct answer
Correct Answer:
D. Synchronous API calls wait to return until a response has been received
Explanation

The fundamental characteristic of a synchronous API call is its blocking nature. When a client makes a synchronous request, the client's process pauses and waits, holding the connection open until the server has fully processed the request and sent back a complete response. The function or method that initiated the call does not return control to the calling program until this response is received. This contrasts with asynchronous calls, where the client does not wait and can perform other tasks while the server processes the request in the background.

Why Incorrect

A. The use of a proxy server is an architectural decision related to network topology and security, not a requirement for synchronous communication.
B. Client authentication overhead is determined by the chosen security protocol (e.g., tokens, certificates) and is independent of the synchronous or asynchronous nature of the call.
C. Synchronous communication is generally considered easier to follow and troubleshoot because of its linear, sequential request-response flow.

References

1. Cisco, Cisco APIC REST API Configuration Guide, Release 4.2(x), "About Synchronous and Asynchronous Responses". The guide explicitly states for synchronous requests: "The request is processed and the response is returned with the HTTP response." This confirms the client waits for the processing to complete.

2. MIT OpenCourseWare, 6.033 Computer System Engineering, Spring 2018, Lecture 10: "Remote Procedure Calls". The lecture notes define a synchronous RPC (a common API implementation) as one where "the client blocks until the server has finished the procedure and sends a response."

3. Cisco DevNet, "REST API Fundamentals," Module: "API Basics". The module explains that with synchronous APIs, "the application that calls the API must wait for the API to complete its work and return a response."

Scroll to Top