350-401 · Question #1101
Refer to the exhibit. An administrator writes a script to fetch the list of devices that are registered with Cisco DNA Center. Why does the execution abort?
The correct answer is B. The username or the password is incorrect. The script failed to fetch devices from Cisco DNA Center likely due to incorrect authentication credentials supplied in the request.
Question
Refer to the exhibit. An administrator writes a script to fetch the list of devices that are registered with Cisco DNA Center. Why does the execution abort?
Exhibits
Options
- AThe TLS certificate of DNA Center is invalid
- BThe username or the password is incorrect
- CThe "dna-center" hostname cannot be resolved to an IP address
- DThe authentication URL is incorrect
How the community answered
(31 responses)- A16% (5)
- B55% (17)
- C23% (7)
- D6% (2)
Why each option
The script failed to fetch devices from Cisco DNA Center likely due to incorrect authentication credentials supplied in the request.
While an invalid TLS certificate can cause connection issues, the error would typically be a certificate validation error or handshake failure, distinct from a general authentication abort indicating credential failure.
API requests to Cisco DNA Center require valid user credentials (username and password) for authentication. If the provided username or password in the script is incorrect, the DNA Center API will reject the authentication attempt, causing the script to abort with an authentication failure due to unauthorized access.
If the hostname 'dna-center' could not be resolved, the script would fail with a DNS resolution error or host unreachable error before attempting any authentication.
An incorrect authentication URL would lead to a 404 Not Found error or a different API endpoint error, rather than a direct abort primarily related to authentication credentials.
Concept tested: Cisco DNA Center API authentication errors
Source: https://developer.cisco.com/docs/dna-center/#!get-started-with-cisco-dna-center-platform-apis
Topics
Community Discussion
No community discussion yet for this question.

