200-301 Question 461
Single answerA network engineer is tasked with configuring a network using an automation tool to deploy consistent configurations across devices. Which programming language would most commonly be used in conjunction with REST APIs for network automation in this scenario?
- A
Python
- B
C++
- C
Ruby
- D
Assembly
Show answer and explanation
Correct answer: A
Explanation
Python is the most commonly used language for network automation due to its ease of use, readability, and compatibility with tools like REST APIs. It offers libraries such as 'requests' for API interaction and 'Netmiko' for device configuration, making it a preferred choice for tasks like deploying consistent configurations across multiple devices.
- A. Correct.
Python is widely used in network automation due to its simplicity, extensive library support, and compatibility with REST APIs.
- B. Incorrect.
C++ is a powerful language but is not commonly used for network automation tasks because it lacks the simplicity and libraries offered by Python.
- C. Incorrect.
Ruby is also a high-level programming language, but it is less commonly used in the context of network automation compared to Python.
- D. Incorrect.
Assembly is a low-level language and unsuitable for high-level tasks like network automation.