Courseiva
easyMultiple Choice

350-401 Practice Question: A REST API call is made to Cisco DNA Center to…

A REST API call is made to Cisco DNA Center to get the list of network devices:

GET /dna/intent/api/v1/network-device Headers: X-Auth-Token: <token>

The response is:

{
  "response": [
    {
      "id": "123456",
      "managementIpAddress": "10.10.10.1",
      "platformId": "C9300-24P",
      "role": "ACCESS"
    }
  ],
  "version": "1.0"
}

What does this response indicate?

⚠ Common exam trap

Cisco often tests the misconception that a missing or incomplete 'version' field indicates an error, but in reality, the 'version' field is always present and valid in successful DNA Center API responses.

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

✓

The response contains a single device with management IP 10.10.10.1 and role ACCESS.

The response is a valid JSON object from Cisco DNA Center's REST API. The 'response' array contains one device object with fields 'id', 'managementIpAddress', 'platformId', and 'role'. The 'version' field is informational and correctly present. Therefore, option A correctly interprets the response as containing a single device with management IP 10.10.10.1 and role ACCESS.

Answer analysis

Option-by-option breakdown

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

  • ✓

    The response contains a single device with management IP 10.10.10.1 and role ACCESS.

    Why this is correct

    The JSON response is an array with exactly one object, and that object contains a management IP address of 10.10.10.1 and a role set to ACCESS. This indicates the Ansible task queried the device inventory and successfully retrieved a single device record. Because the array length is one, there is no ambiguity about multiple devices.

  • ✗

    The response indicates an error because the 'version' field is missing a value.

    Why it's wrong here

    The 'version' key is present in the response and holds a valid value, so it is not missing. A missing value would appear as null, an empty string, or the key would be absent entirely—none of which is the case here. Additionally, even if a version field were malformed, that would be a data-format issue, not a signal that the response itself is an error; the HTTP status code and response body indicate success.

  • ✗

    The response contains multiple devices, but only one is shown due to pagination.

    Why it's wrong here

    This response does not include any pagination metadata such as 'total', 'offset', 'limit', or a 'next' link, and the array is not truncated. In paginated APIs, you would expect either a nested object with count and items or additional header fields, but here the entire response is just a flat array with one element. Therefore, the single device is complete, not a partial view.

  • ✗

    The response requires authentication because the token is missing.

    Why it's wrong here

    The response already includes an Authorization header with a valid Bearer token, so authentication is not missing or required. If authentication were needed, the server would return a 401 Unauthorized status, not a payload of device data. The presence of a successful HTTP status (like 200 OK) and valid JSON confirms the request was authenticated and authorized.

Go deeper

Related to this question

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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.