300-435 Question 16
Select 3A network engineer is developing an application that interfaces with a Cisco DNA Center API. The engineer must decide between using synchronous and asynchronous API calls. Which of the following are challenges or patterns specific to asynchronous API consumption?
- A
Managing callback mechanisms for processing responses
- B
Increased client complexity due to handling concurrency
- C
Higher risk of API call timeouts due to blocking operations
- D
Difficulty in maintaining sequential logic across multiple requests
- E
Limited scalability when handling a high volume of API requests
Show answer and explanation
Correct answers: A, B, D
Explanation
Asynchronous API consumption introduces challenges like managing callbacks, handling concurrency, and maintaining the order of operations due to the non-blocking nature of the calls. While these APIs are more scalable, they require more complex client-side logic to ensure proper implementation. Understanding these challenges is crucial when designing applications that interact with network automation platforms like Cisco DNA Center.
- A. Correct.
Managing callback mechanisms for processing responses is a common challenge with asynchronous APIs, as the client must handle responses outside of the usual request-response cycle.
- B. Correct.
Asynchronous APIs introduce concurrency, which increases the complexity of the client-side application because it must handle multiple operations simultaneously.
- C. Incorrect.
API call timeouts are more commonly a challenge with synchronous APIs due to blocking behavior, rather than asynchronous APIs, which are designed to avoid such blocking.
- D. Correct.
Maintaining sequential logic is challenging with asynchronous APIs because responses may arrive out of order, requiring additional logic to preserve the flow.
- E. Incorrect.
Asynchronous APIs are generally designed to handle high volumes of requests efficiently, making them more scalable than synchronous APIs.