200-901 Question 143
Single answerYou are part of a development team tasked with testing a new network automation script before deploying it in a production environment. The script involves configuring multiple devices across a simulated network. Which tool or approach is most suitable to validate the script in a safe and controlled manner?
- A
Use a physical lab with real network devices to test the script.
- B
Deploy the script directly in the production environment to test its behavior.
- C
Use a network simulation tool, such as Cisco Modeling Labs, to emulate the network and test the script.
- D
Rely on peer code review to validate the script without testing it on any network.
Show answer and explanation
Correct answer: C
Explanation
Network simulation tools like Cisco Modeling Labs allow developers to create a virtual network to emulate real-world conditions. This approach ensures safe and effective validation of network automation scripts without impacting production environments or requiring physical hardware.
- A. Incorrect.
While testing in a physical lab is an option, it can be costly, time-consuming, and lacks the flexibility and scalability of network simulation tools.
- B. Incorrect.
Deploying the script directly in the production environment is risky, as it may disrupt operations and lead to unintended consequences.
- C. Correct.
Using a network simulation tool, such as Cisco Modeling Labs, is the best choice as it provides a safe, scalable, and cost-effective environment to emulate the network and validate the script's functionality.
- D. Incorrect.
Peer code review is useful for identifying logical errors in the code but cannot replace actual testing on a simulated or real network environment.