300-435 · Question #133
300-435 Question #133: Real Exam Question with Answer & Explanation
This question tests your ability to construct a Python function using the Cisco Meraki Dashboard API to configure network alert settings so that all organization admins receive an email whenever a network setting is changed.
Question
Drag and drop the code snippets from the bottom onto the boxes in the code to configure the set_alerts function to send an email to all admins if a setting is modified by using the Cisco Meraki API. Not all options are used.
Explanation
This question tests your ability to construct a Python function using the Cisco Meraki Dashboard API to configure network alert settings so that all organization admins receive an email whenever a network setting is changed.
Approach. The correct approach requires: (1) authenticating via the Meraki SDK or HTTP requests using the 'X-Cisco-Meraki-API-Key' header, (2) calling GET /organizations/{organizationId}/admins to retrieve all admin email addresses, (3) calling PUT /networks/{networkId}/alerts/settings with a payload that includes an alert of type 'settingsChanged' with 'allAdmins: True' (or explicit email list) inside the 'alertDestinations' object, and (4) ensuring 'enabled: True' is set on the alert entry. The Meraki SDK equivalent is dashboard.networks.updateNetworkAlertsSettings() with the same structure passed as keyword arguments.
Concept tested. Cisco Meraki Dashboard API - configuring network alert settings programmatically, specifically: API authentication headers, the alerts/settings PUT endpoint, the alertDestinations schema (allAdmins flag vs. explicit email list), alert type identifiers ('settingsChanged'), and the relationship between the organizations/admins endpoint and alert recipient configuration.
Reference. Cisco Meraki Dashboard API Reference - PUT /networks/{networkId}/alerts/settings; Cisco DevNet Learning Labs: Meraki API Alerts
Topics
Community Discussion
No community discussion yet for this question.