nerdexam
Cisco

300-435 · Question #113

Refer to the exhibit. A network engineer must create a script that provides an alert every time a switch power supply fails in the network. To perform this task, the network engineer is using Cisco Ca

Sign in or unlock 300-435 to reveal the answer and full explanation for question #113. The question stem and answer options stay visible for context.

Controller-Based Network Automation

Question

Refer to the exhibit. A network engineer must create a script that provides an alert every time a switch power supply fails in the network. To perform this task, the network engineer is using Cisco Catalyst Center (formerly DNA Center) event webhooks in a Python script. Which code snippet must be added to the box in the code to subscribe to the event?
payload = {
 "name": "Webhook for power supply failure",
 "description": "Power supply failure on switch",
 "subscriptionEndpoints": [
 {
 "instanceId": INSTANCEID,
 "subscriptionDetails": {
 "connectorType": "REST",
 // MISSING LINE HERE
 }
 }
 ],
 "filter": {
 "eventIds": [
 "NETWORK-DEVICES-2-201"
 ]
 }
}

Options

  • A"connectorMethod": "POST"
  • B"method": "POST"
  • C"subscribeTo":"POST"
  • D"connector": "POST"

Unlock 300-435 to see the answer

You've previewed enough free 300-435 questions. Unlock 300-435 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Cisco Catalyst Center#Webhooks#API Integration#Event Subscription
Full 300-435 Practice