300-435 Question 228
Single answerYou are automating network deployment using Cisco DNA Center and encounter an issue where a network device fails to provision as expected. Upon investigating, you find that the API call to retrieve device details using the Intent API returns a '404 Not Found' error. What is the most likely cause of this issue?
- A
The device is not added to the inventory in Cisco DNA Center.
- B
The API key used for authentication has expired or is invalid.
- C
The Intent API endpoint being called is incorrect.
- D
The device is in maintenance mode and cannot be accessed.
Show answer and explanation
Correct answer: A
Explanation
The '404 Not Found' error indicates that the requested resource (in this case, the device details) does not exist. In Cisco DNA Center, this usually happens when the device is not added to the inventory. It is essential to ensure that all devices intended for automation are correctly added to the inventory in Cisco DNA Center before making Intent API calls.
- A. Correct.
If the device is not added to the inventory, Cisco DNA Center will not recognize it, and any Intent API calls related to this device will fail, potentially returning a '404 Not Found' error.
- B. Incorrect.
An expired or invalid API key would typically result in an 'Authentication Failed' or '401 Unauthorized' error, not a '404 Not Found' error.
- C. Incorrect.
An incorrect API endpoint would usually result in a '400 Bad Request' or '404 Not Found' error at the API level, but this scenario is specific to a missing device in the inventory.
- D. Incorrect.
Devices in maintenance mode are still present in the inventory and can typically be retrieved, so this is not the likely cause of the issue.