nerdexam
Cisco

350-701 · Question #148

Refer to the exhibit. What is the result of this Python script of the Cisco DNA Center API?

The correct answer is C. adds a switch to Cisco DNA Center. Assuming the Python script makes a POST request to the Cisco DNA Center API for network device management, its result would be adding a switch to the Cisco DNA Center inventory.

Submitted by klara.se· Mar 30, 2026

Question

Refer to the exhibit. What is the result of this Python script of the Cisco DNA Center API?

Exhibit

350-701 question #148 exhibit

Options

  • Aadds authentication to a switch
  • Breceives information about a switch
  • Cadds a switch to Cisco DNA Center
  • Ddeletes a switch from Cisco DNA Center

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    13% (4)
  • C
    78% (25)
  • D
    3% (1)

Why each option

Assuming the Python script makes a POST request to the Cisco DNA Center API for network device management, its result would be adding a switch to the Cisco DNA Center inventory.

Aadds authentication to a switch

Adding authentication to a switch would likely involve a different API endpoint or a PUT/PATCH request to an existing device, not an initial 'add switch' operation.

Breceives information about a switch

Receiving information about a switch would be accomplished via an HTTP GET request to a specific device's API endpoint, not a POST request implied by 'adding'.

Cadds a switch to Cisco DNA CenterCorrect

Cisco DNA Center APIs are typically RESTful, and an operation to 'add' a resource like a network device (switch) is commonly performed via an HTTP POST request to the relevant API endpoint, with the device details provided in the request body. If the script is structured to send a POST request with switch details to the device onboarding API, it will add the switch to DNA Center.

Ddeletes a switch from Cisco DNA Center

Deleting a switch from Cisco DNA Center would be performed using an HTTP DELETE request to the switch's API endpoint.

Concept tested: Cisco DNA Center API fundamentals (RESTful operations)

Source: https://developer.cisco.com/docs/dna-center/#!device-onboarding-api-developer-guide/device-onboarding

Topics

#Python scripting#Cisco DNA Center API#Network automation#Device provisioning

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice