Implementing Cisco Enterprise Network Core Technologies (350-401 ENCOR) Exam Materials-Question 428 Discussion
Comment Image Comment Image Comment Image

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)

  • A. Insert after the for loop:
    with open(f"Hostname.json", "w") as OutFile:
    OutFile.write(Response)
  • B. Append to the body of the for loop:
    with open(f"Hostname.json", "w") as OutFile:
    OutFile.write(Response.text)
  • C. Insert after the for loop:
    with open(f"Hostname.json", "w") as OutFile:
    OutFile.write(json.dumps(Response.text))
  • D. Insert immediately before the for loop:
    with open(f"Hostname.json", "w") as OutFile:
    OutFile.write(json.load(Devices))
Correct Answer: B

Brave-Dump Clients Votes

B 66.67%
C 33.33%

Comments



Anonymous User 2026-08-07 00:55:19

Selected Answers: C


C because json.dump() makes the file JSON format
  • Brave-Dumps.com Admin 2026-08-07 05:29:49
    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 2026-08-07 05:30:00

Selected Answers: B


B is the correct here


CITN 2026-08-15 00:37:51

Selected Answers: B


B is the correct answer