nerdexam
Cisco

350-501 · Question #529

Refer to the exhibit. A junior engineer must update a group of scripts to use on a newly deployed subnet. However, one of the scripts is not documented or commented. What are the two effects of this…

The correct answer is A. The script configures a loopback interface. E. The script stores output in the cli.txt file. Configures a loopback interface: The script includes the following commands in config_commands: config_commands = ['int loop 0', 'ip addre 10.10.10.1 255.255.255.255', 'no sh'] This configures a loopback interface with IP address 10.10.10.1/32 and enables the interface (no…

Automation and Assurance

Question

Refer to the exhibit. A junior engineer must update a group of scripts to use on a newly deployed subnet. However, one of the scripts is not documented or commented. What are the two effects of this script? (Choose two.)

Exhibit

350-501 question #529 exhibit

Options

  • AThe script configures a loopback interface.
  • BThe script stores output with leading or trailing spaces.
  • CThe script calls a Telnet process to connect to a network device.
  • DThe script configures a physical interface.
  • EThe script stores output in the cli.txt file.

How the community answered

(61 responses)
  • A
    90% (55)
  • B
    3% (2)
  • C
    5% (3)
  • D
    2% (1)

Explanation

Configures a loopback interface: The script includes the following commands in config_commands: config_commands = ['int loop 0', 'ip addre 10.10.10.1 255.255.255.255', 'no sh'] This configures a loopback interface with IP address 10.10.10.1/32 and enables the interface (no shut). Stores output in the cli.txt file: The script writes the output of the show run command into a file named cli.txt: file = open('cli.txt', 'w') file.write(output)

Topics

#Network Automation#Scripting#Interface Configuration#File Operations

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice