Implementing Automation for Cisco Data Center Solutions (DCAUTO) — Question 2
Which statement about synchronous and asynchronous API calls is true?
Answer options
- A. Synchronous API calls wait to return until a response has been received.
- B. Synchronous communication is harder to follow and troubleshoot.
- C. Synchronous API calls must always use a proxy server.
- D. Asynchronous communication uses more overhead for client authentication.
Correct answer: A
Explanation
The correct answer is A because synchronous API calls indeed halt execution until a response is received, ensuring that the client waits for the server's reply. Option B is incorrect as synchronous communication can be easier to follow due to its linear nature. Option C is false since synchronous API calls do not inherently require a proxy server. Option D is also incorrect; while asynchronous communication can have overhead, it is not specifically tied to client authentication.