300-435 Question 319
Select 3You have been tasked with implementing a Python script to handle Cisco Meraki Alert WebHooks. The script receives WebHook payloads from the Meraki Dashboard and processes specific alert data. Which of the following steps must be included in your Python script to correctly capture and handle the WebHook data?
- A
Set up an HTTP server to listen for incoming WebHook POST requests
- B
Parse the JSON payload from the WebHook request body
- C
Authenticate the WebHook request using an API key provided by Meraki
- D
Validate the WebHook payload structure to ensure it matches the expected schema
- E
Send an HTTP GET request to the Meraki Dashboard to fetch the WebHook payload
Show answer and explanation
Correct answers: A, B, D
Explanation
To implement a Python script for Cisco Meraki Alert WebHooks, you must set up an HTTP server to listen for incoming WebHook POST requests, parse the JSON payload to extract relevant data, and validate the payload structure to ensure it matches the expected schema. Authentication and fetching data using an HTTP GET request are not required for handling WebHooks, as the alerts are pushed directly to the configured endpoint.
- A. Correct.
Correct. An HTTP server must be set up to listen for incoming POST requests, as WebHooks are delivered via HTTP POST.
- B. Correct.
Correct. WebHook payloads are sent in JSON format, so parsing the JSON data from the request body is necessary to process the alert information.
- C. Incorrect.
Incorrect. Cisco Meraki WebHooks do not require API key authentication for the incoming alerts. WebHooks are sent from preconfigured URLs in the Meraki Dashboard.
- D. Correct.
Correct. Validating the WebHook payload structure ensures the data received matches the expected schema and prevents processing invalid or malformed data.
- E. Incorrect.
Incorrect. WebHook payloads are automatically sent by the Meraki Dashboard to the configured server. There is no need to send an HTTP GET request to fetch them.