nerdexam
CiscoCisco

350-401 · Question #769

350-401 Question #769: Real Exam Question with Answer & Explanation

Sign in or unlock 350-401 to reveal the answer and full explanation for question #769. The question stem and answer options stay visible for context.

Submitted by thandi_sa· Mar 6, 2026Network Automation and Programmability - specifically writing Python scripts to manipulate JSON-formatted data files, handle keyboard interrupts, and perform file I/O operations, aligning with Cisco CCNP/ENCOR or DevNet Associate exam objectives.

Question

Drag and Drop Question An engineer must create a script to append and modify device entries in a JSON-formatted file. The script must work as follows: Until interrupted from the keyboard, the script reads in the hostname of a device, its management IP address, operating system type, and CLI remote access protocol. After being interrupted, the script displays the entered entries and adds them to the JSON- formatted file, replacing existing entries whose hostname matches. The contents of the JSON-formatted file are as follows: Drag and drop the statements onto the blanks within the code to complete the script. Not all options are used. Answer:

Unlock 350-401 to see the answer

You've previewed enough free 350-401 questions. Unlock 350-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Python scripting#JSON file handling#exception handling#network automation
Full 350-401 PracticeBrowse All 350-401 Questions