CiscoCisco
350-401 · Question #616
350-401 Question #616: Real Exam Question with Answer & Explanation
Sign in or unlock 350-401 to reveal the answer and full explanation for question #616. The question stem and answer options stay visible for context.
Submitted by eva_at· Mar 6, 2026Network Programmability and Automation - Working with REST APIs and saving API responses using Python, typically aligned with Cisco DevNet or CCNP/CCIE Enterprise certification objectives.
Question
Which Python code snippet must be added to the script to save the returned configuration as a JSON-formatted file? A. B. C. D.
Options
- Awith open("ifaces.json", "w") as OutFile: OutFile.write(Response)
- Bwith open("ifaces.json", "w") as OutFile: OutFile.write(Response.text)
- Cwith open("ifaces.json", "w") as OutFile: JSONResponse = json.loads(Response.text) OutFile.write(JSONResponse)
- Dwith open("ifaces.json", "w") as OutFile: OutFile.write(Response.json())
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 Requests Library#REST API#JSON File Handling#Network Automation