200-901 Infrastructure and Automation Practice Question
A developer is using the Cisco DNA Center Intent API to manage network devices. The developer needs to programmatically retrieve a list of all devices that match a specific hostname pattern. Which two actions must be performed to accomplish this? (Choose two.)
⚠ Common exam trap
The trap here is thinking that SNMP configuration or POST requests are needed, when the API simply requires a token and a GET call to the device inventory endpoint.
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
✓
Send a GET request to the /dna/intent/api/v1/network-device endpoint and filter the response by hostname using query parameters or client-side processing.
To retrieve devices by hostname pattern via the DNA Center Intent API, the developer must first authenticate to obtain a token, then issue a GET request to the network-device endpoint and filter the results. Authentication is always required, and the GET method is used for read operations. The other options involve incorrect HTTP methods, unnecessary device configuration, or actions that do not contribute to the retrieval task.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Send a GET request to the /dna/intent/api/v1/network-device endpoint and filter the response by hostname using query parameters or client-side processing.
Why this is correct
The /dna/intent/api/v1/network-device endpoint returns a list of all network devices. To filter by hostname pattern, the developer can either use supported query parameters if available or retrieve all devices and filter client-side. This is the correct endpoint for retrieving device inventory, and it must be called with the authentication token.
- ✗
Send a POST request to the /dna/intent/api/v1/network-device endpoint with a JSON body containing the hostname pattern.
Why it's wrong here
The /dna/intent/api/v1/network-device endpoint supports GET for retrieving devices, not POST. POST to this endpoint is not a standard operation for querying devices; it might be used for other purposes like creating resources, but not for listing. Using POST here would not return the desired device list and is incorrect.
- ✓
Obtain an authentication token by sending a POST request to the DNA Center token endpoint with valid credentials.
Why this is correct
All DNA Center Intent API calls require authentication. The token endpoint at /dna/system/api/v1/auth/token returns a token that must be included in the X-Auth-Token header of subsequent requests. Without this token, the API will return 401 Unauthorized. Therefore, obtaining a token is a mandatory first step for any API interaction.
- ✗
Configure SNMPv3 on all devices to allow DNA Center to poll them for hostname information.
Why it's wrong here
While DNA Center uses SNMP for device discovery and monitoring, the API itself does not require the developer to configure SNMPv3 on devices to retrieve the device list. The API accesses DNA Center's database, which already contains device information. This action is unrelated to the API call and is not a prerequisite for using the Intent API.
- ✗
Use the PUT method to update the device hostname before retrieving the list.
Why it's wrong here
The task is to retrieve a list of devices matching a hostname pattern, not to modify hostnames. Using PUT to change hostnames would be an incorrect action and could disrupt the network. The API call for retrieval is a GET, and no update is needed to obtain the list.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 975-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 200-901 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 200-901 exam.