300-435 Question 17
Select 2A network automation engineer is designing a solution for integrating an external application with a Cisco DNA Center instance. The external application requires near real-time feedback for user-triggered actions, while also processing large amounts of non-urgent data asynchronously. Which combination of patterns should the engineer implement to handle these requirements effectively?
- A
Use synchronous API calls for user-triggered actions and asynchronous API calls for batch data processing.
- B
Use asynchronous API calls exclusively for both user-triggered actions and batch data processing.
- C
Implement polling to handle real-time responses for user-triggered actions.
- D
Use synchronous API calls exclusively for both user-triggered actions and batch data processing.
- E
Use asynchronous API calls with webhooks to handle real-time feedback for user-triggered actions.
Show answer and explanation
Correct answers: A, E
Explanation
To meet the requirements of near real-time feedback for user-triggered actions and efficient processing of large non-urgent data, a combination of synchronous API calls for real-time feedback and asynchronous API calls with webhooks for batch processing is the most effective solution. Synchronous calls provide immediate responses, while asynchronous calls with webhooks ensure scalability and efficient resource utilization.
- A. Correct.
This is correct because synchronous API calls are well-suited for real-time feedback in user-triggered actions, and asynchronous calls are better for handling large non-urgent data efficiently.
- B. Incorrect.
This is incorrect because using asynchronous API calls exclusively for all operations may cause delays in providing immediate feedback for user-triggered actions.
- C. Incorrect.
This is incorrect because polling is not efficient for real-time feedback; it introduces latency and increases resource consumption.
- D. Incorrect.
This is incorrect because synchronous API calls for both real-time and batch operations are inefficient, especially for non-urgent tasks, as they block resources.
- E. Correct.
This is correct because asynchronous API calls with webhooks can handle real-time feedback by pushing updates to the external system, ensuring efficient communication for user-triggered actions.