
CiscoCertified Network Professional Service Provider
Domain 5Objective 2
5.2 Interpret an External Script to Configure a Cisco Device Using a REST API 350-501 Practice Questions (Page 1)
Part of the Automation and Assurance domain, which accounts for 15% of the 350-501 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–1 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
7concepts
15%of the exam
Questions 1–5
- 1
Which authentication method for a Cisco device REST API involves sending a username and password in the HTTP Authorization header, encoded in Base64?
Select an answer first - 2
An engineer is reviewing a Python script that uses the requests library to interact with a Cisco IOS XE device via RESTCONF. The script includes the following code: response = requests.post('https://192.168.1.1/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet', auth=('admin', 'secret'), json={...}, headers={'Content-Type': 'application/yang-data+json'}). The script receives a 201 status code. What does this indicate?
Select an answer first - 3
A REST API request to a Cisco device returns a 404 Not Found status. What is the most likely cause?
Select an answer first - 4
An engineer is troubleshooting a RESTCONF script that is failing to delete a loopback interface on a Cisco IOS XE device. The script sends a DELETE request to /restconf/data/Cisco-IOS-XE-native:native/interface/Loopback=100. The response is 404 Not Found. What is the most likely cause?
Select an answer first - 5
A Python script uses the requests library to configure a Cisco IOS XE device via RESTCONF. The script sends a PUT request to /restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet/2 with a JSON payload that includes 'description': 'Uplink to Core'. The script checks the response status code and expects 204. However, the script receives a 201 status code. What is the most likely reason for this difference?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “350-501” is a trademark of its owner, used for identification only.