Courseiva
Automation →mediumMultiple Choice

CCNP Automation Practice Question

A network engineer is using the Python 'requests' library to interact with a Cisco DNA Center controller. The engineer wants to retrieve a list of all network devices. Which HTTP method and URL should be used?

⚠ Common exam trap

The trap here is using an incorrect base path or HTTP method, such as omitting '/dna/intent' or using POST to retrieve data.

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

✓

GET https://<dnac-ip>/dna/intent/api/v1/network-device

Cisco DNA Center's Intent API provides RESTful endpoints for managing network devices. To retrieve a list of devices, a GET request to '/dna/intent/api/v1/network-device' is used. This returns JSON data with device details. Other HTTP methods like POST, PUT, or DELETE are for creating, updating, or deleting resources. The correct base path is essential; omitting '/dna/intent' leads to failure.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    POST https://<dnac-ip>/dna/intent/api/v1/network-device

    Why it's wrong here

    POST is used to create resources, not retrieve them. Using POST on the network-device endpoint might attempt to add a device, which is not the goal. The engineer wants to list devices, so GET is appropriate. This option confuses the HTTP method, leading to incorrect behavior.

  • ✗

    GET https://<dnac-ip>/api/v1/network-device

    Why it's wrong here

    The correct base path for Cisco DNA Center Intent API includes '/dna/intent/api/v1/'. Omitting '/dna/intent' results in an invalid URL and a 404 error. This option uses an incorrect path, even though the method is correct. The engineer must use the full path as documented.

  • ✗

    PUT https://<dnac-ip>/dna/intent/api/v1/network-device

    Why it's wrong here

    PUT is used to update or replace a resource. It is not used to retrieve a list of devices. Using PUT on this endpoint would likely result in an error or unintended modification. The engineer needs to read data, so GET is the correct method. This option misuses the HTTP verb.

  • ✓

    GET https://<dnac-ip>/dna/intent/api/v1/network-device

    Why this is correct

    Cisco DNA Center's Intent API uses the base path '/dna/intent/api/v1/'. The endpoint '/network-device' returns a list of all network devices. A GET request is used to retrieve data. This is the correct method and URL for fetching device inventory. Authentication is required via a token, but the method and path are correct.

About these practice questions

This 350-401 question is part of Courseiva's 1,923-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 →

How Courseiva writes practice questions · Editorial policy

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.