
CiscoCertified Network Professional Enterprise
Domain 6Objective 1
6.1 Interpret Basic Python Components and Scripts 350-401 Practice Questions (Page 3)
Part of the 6.0 Automation and Artificial Intelligence domain, which accounts for 15% of the 350-401 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–2 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)
22questions here
5free pages
8concepts
15%of the exam
Questions 11–15
- 11
A network engineer is debugging a Python script that uses netmiko to configure switches. The script runs without errors but does not apply the intended configuration. The engineer suspects that the script is not sending the commands correctly. Which debugging technique would be most effective to confirm this?
Select an answer first - 12
A network engineer runs a Python script that reads a configuration file. The script fails with a FileNotFoundError because the file path is incorrect. The engineer wants to add error handling to the script so that it prints a user-friendly message and exits gracefully. Which code snippet should be used?
Select an answer first - 13
Which Python library is commonly used to make HTTP requests to REST APIs?
Select an answer first - 14
Which statement correctly imports the 'math' module in Python?
Select an answer first - 15
A network engineer is writing a Python script to automate VLAN creation on multiple switches. The script reads a list of VLAN IDs from a file and uses netmiko to send commands. The engineer notices that the script only processes the first VLAN ID and then stops. Which of the following is the most likely cause?
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-401” is a trademark of its owner, used for identification only.