nerdexam
CiscoCisco

300-435 · Question #113

300-435 Question #113: Real Exam Question with Answer & Explanation

The correct answer is B: "method": "POST". When configuring a webhook endpoint for Cisco Catalyst Center (DNA Center) event subscriptions, the HTTP method for the webhook callback is specified using the "method" key within the subscriptionDetails object.

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? ```json 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"

Explanation

When configuring a webhook endpoint for Cisco Catalyst Center (DNA Center) event subscriptions, the HTTP method for the webhook callback is specified using the "method" key within the subscriptionDetails object.

Common mistakes.

  • A. "connectorMethod" is not the correct or standard key for specifying the HTTP method within the subscriptionDetails of a DNA Center webhook event subscription.
  • C. "subscribeTo" is not the correct key for defining the HTTP method for a webhook event notification in Cisco Catalyst Center's API.
  • D. "connector" is not the correct key to specify the HTTP method; "connectorType" is used for the type, but "method" specifies the HTTP action.

Concept tested. Cisco Catalyst Center event subscription webhook configuration

Reference. https://developer.cisco.com/docs/dna-center/#!create-an-event-subscription

Topics

#Cisco Catalyst Center#Webhooks#API Integration#Event Subscription

Community Discussion

No community discussion yet for this question.

Full 300-435 PracticeBrowse All 300-435 Questions