Courseiva
mediumMultiple SelectObjective-mapped

CCNP Practice Question: Which two statements about using Python for…

Which two statements about using Python for network automation are true? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The netmiko library is commonly used to automate SSH connections to Cisco devices.

Correct answers: A and C. A is correct because the netmiko library simplifies SSH connections to network devices and is widely used for sending commands. C is correct because the requests library can be used to interact with REST APIs on devices like Cisco DNA Center or IOS-XE. B is incorrect because paramiko is a low-level SSH library, not a high-level one; netmiko is built on paramiko but adds higher-level abstractions. D is incorrect because the telnetlib library is for Telnet, which is insecure and rarely used in modern automation. E is incorrect because the scapy library is for packet manipulation and network scanning, not for sending configuration commands.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The netmiko library is commonly used to automate SSH connections to Cisco devices.

    Why this is correct

    Correct because netmiko is a popular Python library that simplifies SSH connections to network devices and supports sending commands and retrieving output.

  • The paramiko library provides a high-level API for network automation tasks.

    Why it's wrong here

    Incorrect because paramiko is a low-level SSH implementation; high-level APIs are provided by libraries like netmiko built on top of paramiko.

  • The requests library can be used to send HTTP requests to REST APIs on network devices.

    Why this is correct

    Correct because requests is a standard Python library for making HTTP calls, and it is used to interact with REST APIs on devices like Cisco IOS-XE or DNA Center.

  • The telnetlib library is recommended for secure network automation.

    Why it's wrong here

    Incorrect because telnetlib implements Telnet, which is unencrypted and insecure; SSH is recommended for secure automation.

  • The scapy library is used to send configuration commands to network devices.

    Why it's wrong here

    Incorrect because scapy is used for packet crafting and network scanning, not for sending configuration commands to devices.

About these practice questions

This 350-401 question is part of Courseiva's 1,175-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.