Courseiva
easyMultiple ChoiceObjective-mapped

CCNP Practice Question: An engineer is using the Cisco DNA Center GUI to…

An engineer is using the Cisco DNA Center GUI to create a new site hierarchy. They add a building under an existing area. After saving, they run a Python script to verify the site via API:

import requests

url = "https://dna-center.local/dna/intent/api/v1/site" headers = {"X-Auth-Token": "token"} response = requests.get(url, headers=headers, verify=False) sites = response.json()['response']

for site in sites:
    if site['name'] == 'Building-A':
        print(site['id'])

What is the output if the building was created successfully?

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

A UUID string such as '123e4567-e89b-12d3-a456-426614174000'

The script prints the site ID of the building if it exists. The output will be a string representing the UUID of the building.

Answer analysis

Option-by-option breakdown

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

  • A UUID string such as '123e4567-e89b-12d3-a456-426614174000'

    Why this is correct

    Correct. The API returns a UUID for each site, and the script prints it.

  • The script will print 'Building-A'

    Why it's wrong here

    The script prints site['id'], not site['name'].

  • The script will print the entire site dictionary

    Why it's wrong here

    It only prints the id field.

  • The script will raise an error because the API returns paginated results

    Why it's wrong here

    The script assumes all sites are returned in one response, which may be true for small hierarchies, but the output would still be the ID if found.

About these practice questions

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