View all questions & answers for the Implementing Cisco Enterprise Network Core Technologies (350-401 ENCOR) Exam Materials exam
Implementing Cisco Enterprise Network Core Technologies (350-401 ENCOR) Exam Materials - Question #427 Discussion
Community Explanations & Comments (4)
Anonymous User
2 months ago
Selected: C
C because json.dump() makes the file JSON format
Brave-Dumps.com Admin
2 months ago
C is not correct because Response.text is already JSON-formatted. Using json.dumps(Response.text) encodes the JSON again as a string, and placing the code after the loop saves only the last device. The intended answer is B.
Brave-Dumps.com Admin
2 months ago
Selected: B
B is the correct here
CITN
2 months ago
Selected: B
B is the correct answer
Anonymous User
1 week ago
Selected: B
B is correct
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? (Choose one answer)
with open(f"Hostname.json", "w") as OutFile:
OutFile.write(Response)
with open(f"Hostname.json", "w") as OutFile:
OutFile.write(Response.text)
with open(f"Hostname.json", "w") as OutFile:
OutFile.write(json.dumps(Response.text))
with open(f"Hostname.json", "w") as OutFile:
OutFile.write(json.load(Devices))
Brave-Dump Community Votes