Implementing Automation for Cisco Security Solutions (SAUTO) — Question 8
Which description of synchronous calls to an API is true?
Answer options
- A. They can be used only within single-threaded processes.
- B. They pause execution and wait for the response.
- C. They always successfully return within a fixed time.
- D. They can be used only for small requests.
Correct answer: B
Explanation
The correct answer is B because synchronous calls indeed require the execution to pause until a response is received from the API. Option A is incorrect as synchronous calls can be used in multi-threaded processes as well. Option C is misleading because there is no guarantee that synchronous calls will always return within a fixed time. Option D is incorrect since synchronous calls can handle various sizes of requests, not just small ones.