Valid 350-401 Dumps shared by ExamDiscuss.com for Helping Passing 350-401 Exam! ExamDiscuss.com now offer the newest 350-401 exam dumps, the ExamDiscuss.com 350-401 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 350-401 dumps with Test Engine here:
Refer to the exhibit. How should the script be completed so that each device configuration is saved into a JSON-formatted file under the device name?
Correct Answer: C
The script should be completed with the code that opens a file in write mode for each device and writes the configuration into it in JSON format. Option C is correct because it uses a context manager to open a file named after the hostname variable with a .json extension. It then writes the device variable, which presumably contains the device configuration, into this file using json.dump(), ensuring the data is in JSON format. References: * Implementing and Operating Cisco Service Provider Network Core Technologies (SPCOR) course material * Python documentation on file handling and the json module * Cisco learning resources on network automation and scripting