nerdexam
CiscoCisco

350-401 · Question #765

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

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

Submitted by satoshi_tk· Mar 6, 2026Software Development and Design / Network Programmability - writing Python scripts to interact with REST APIs and persist configuration data to local files using JSON formatting (e.g., Cisco DevNet or CCNP Enterprise certification objectives)

Question

Which Python code snippet must be added to the script to store the changed interface configuration to a local JSON-formatted file? A. B. C. D.

Options

  • AOutFile = open("ifaces.json", "w") OutFile.write(Response.text) OutFile.close()
  • BOutFile = open("ifaces.json", "w") OutFile.write(UpdatedConfig) OutFile.close()
  • COutFile = open("ifaces.json", "w") json.dump(UpdatedConfig,OutFile) OutFile.close()
  • DOutFile = open("ifaces.json", "w") OutFile.write(Response.json()) OutFile.close()

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 file I/O#JSON handling#REST API scripting#Network automation
Full 350-401 PracticeBrowse All 350-401 Questions