easyMultiple Choice
CCNP Practice Question: Is using the Cisco DNA Center REST API to…
A network engineer is using the Cisco DNA Center REST API to retrieve the list of network devices. The engineer sends a GET request to '/dna/intent/api/v1/network-device' and receives a 400 Bad Request response. The API documentation indicates that the request requires a query parameter 'siteId'. What should the engineer do to resolve the issue?
⚠ Common exam trap
350-401 often tests HTTP status code semantics — candidates frequently misattribute 400 errors to authentication (401) or method issues (405) instead of recognizing a missing or malformed request parameter.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Include the 'siteId' query parameter in the request URL.
A 400 Bad Request indicates the server could not process the request due to a client-side error, and the API documentation explicitly states that the 'siteId' query parameter is required. Adding it to the URL (e.g., /dna/intent/api/v1/network-device?siteId=<id>) supplies the missing input and resolves the error. The HTTP method and endpoint are already correct per the documentation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Include the 'siteId' query parameter in the request URL.
Why this is correct
The 400 error arises because the endpoint mandates the siteId query parameter, so appending it to the URL satisfies that validation requirement. Without it, Cisco DNA Center rejects the request before processing. Adding ?siteId=<value> returns the device list correctly.
- ✗
Change the HTTP method to POST because GET is not supported for this endpoint.
Why it's wrong here
The endpoint is documented as a GET retrieval; a 400 signals a malformed request, not an unsupported method, which would return 405. Switching to POST is tempting because some DNA Center operations do use POST, and it would be correct for creating resources or running commands, not listing devices.
- ✗
Add an 'Authorization' header with a valid token because the API requires authentication.
Why it's wrong here
Authentication failures return 401 Unauthorised, not 400 Bad Request; the token is already accepted. Adding an Authorization header is tempting because DNA Center does require a valid token for API calls, and it would be the fix if the response had been 401 with a missing or expired token.
- ✗
Use a different API endpoint, such as '/dna/intent/api/v1/site', to retrieve device information.
Why it's wrong here
The site endpoint returns site hierarchy data, not device inventory, so it cannot satisfy the requirement. Reaching for a different endpoint is tempting when a call fails, and the site API would be correct if the engineer needed site topology or membership rather than the device list.
Visual reference
About these practice questions
Courseiva writes every 350-401 question from scratch — 1,923 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Cisco exam blueprint
This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.