nerdexam
CiscoCisco

350-901 · Question #33

350-901 Question #33: Real Exam Question with Answer & Explanation

This question tests your ability to construct a proper HTTP PUT request using the Cisco Meraki Dashboard API to update an SSID configuration, requiring correct placement of URL variables, API key, and Content-Type header values.

Understanding and Using APIs

Question

Drag and drop the code onto the snippet to update a SSID in Meraki using the Dashboard API. Not all options are used.```python base_url = "https://api.meraki.com/api/v0" network_id = "N 1234567890" requests.put( + "/networks/" + + "/ssids/0", headers = { "X-Cisco-Meraki-API-Key": , "Content-Type": }, data = json.dumps({ "number": 0, "name": "ssid", "enabled": True, "authMode": "psk", "psk": , "wpa": "wpa", "wpaEncryptionMode": "WPA2 only" }) }) ```

Explanation

This question tests your ability to construct a proper HTTP PUT request using the Cisco Meraki Dashboard API to update an SSID configuration, requiring correct placement of URL variables, API key, and Content-Type header values.

Approach. The correct approach is to fill the blanks as follows: the first blank after 'requests.put(' takes 'base_url' (the base URL variable), the second blank after '/networks/' takes 'network_id' (the network ID variable), the API key blank takes 'api_key' (a variable holding the Meraki API key string), and the Content-Type blank takes 'application/json'. The full URL is constructed by concatenating base_url + '/networks/' + network_id + '/ssids/0', the X-Cisco-Meraki-API-Key header authenticates the request, and Content-Type: application/json tells the API the body is JSON-encoded data sent via json.dumps().

Concept tested. Cisco Meraki Dashboard REST API usage - specifically how to authenticate with an API key header, construct a network resource URL using base URL and network ID variables, set correct Content-Type for JSON payloads, and use HTTP PUT with a JSON body to update wireless SSID settings (name, PSK, auth mode, WPA encryption).

Reference. Cisco Meraki Dashboard API documentation - PUT /networks/{networkId}/ssids/{number}; Meraki API v0 base URL: https://api.meraki.com/api/v0

Topics

#Meraki API#Python requests#REST API#Network configuration automation

Community Discussion

No community discussion yet for this question.

Full 350-901 PracticeBrowse All 350-901 Questions