nerdexam
Cisco

350-901 · Question #1

Refer to the exhibit. Which configuration of method and parameter retrieves the health of a laptop connected to the network from Cisco DNA Center? import http.client conn =…

The correct answer is B. GET; client-health. To retrieve the health of a laptop from Cisco DNA Center, the HTTP GET method should be used with the client-health parameter to target endpoint-specific health information.

Cisco Platforms and Development

Question

Refer to the exhibit. Which configuration of method and parameter retrieves the health of a laptop connected to the network from Cisco DNA Center? import http.client conn = http.client.HTTPSConnection("dnac.cisco.com") headers = { '_runsync': "true", '_timeout': "30", '_persistbapioutput': "true", } conn.request(" ", "/dna/intent/api/v1/ ?timestamp=10000", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))

Options

  • APUT; network-health;
  • BGET; client-health;
  • CGET; network-device;
  • DPOST; network-device;

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    82% (40)
  • C
    10% (5)
  • D
    2% (1)

Why each option

To retrieve the health of a laptop from Cisco DNA Center, the HTTP GET method should be used with the `client-health` parameter to target endpoint-specific health information.

APUT; network-health;

The PUT method is generally used to update or replace an existing resource, not to retrieve its status.

BGET; client-health;Correct

Retrieving information about a client's health, such as a laptop, typically utilizes the HTTP GET method. The `client-health` endpoint in Cisco DNA Center APIs is designed to provide health metrics and status for connected client devices.

CGET; network-device;

While GET is the correct method for retrieval, `network-device` refers to the health of network infrastructure components, not individual client devices like laptops.

DPOST; network-device;

The POST method is used to submit data to a specified resource, often resulting in a change in state or the creation of a new resource, not for retrieving health status.

Concept tested: Cisco DNA Center API client health retrieval

Source: https://developer.cisco.com/docs/dna-center/#!client-health-apis

Topics

#Cisco DNA Center API#REST API Methods#Network Health Monitoring#Python http.client

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice