Designing Cisco Data Center Infrastructure (DCID) — Question 190
An engineer must develop a Python tool to automate software upgrades of both data center and non-data center devices. All devices offer a RESTful API and require a JSON or XML payload. Vendor-specific libraries must be avoided. Which library must the engineer choose?
Answer options
- A. requests
- B. Nornir
- C. Netmiko
- D. ncclient
Correct answer: A
Explanation
The correct answer is A, requests, as it is a popular Python library for making HTTP requests and is suitable for interacting with RESTful APIs using JSON or XML payloads. The other options, such as Nornir, Netmiko, and ncclient, are designed for specific network automation tasks or protocols and may not be appropriate for the general purpose of RESTful API interactions.