Courseiva
AutomationeasyMultiple ChoiceObjective-mapped

350-601 Automation Practice Question

An engineer wants to automate VLAN configuration on a Cisco Nexus 9000 switch using a Python script running in the guest shell. Which library should the engineer use to send NX-OS commands via the NX-API?

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

cisco_nxapi

The cisco_nxapi library is specifically designed for Python scripts to interact with Nexus switches via NX-API. The OnEX library is not a standard library; guest shell leverages Python on-box, but the library for NX-API calls is cisco_nxapi.

Answer analysis

Option-by-option breakdown

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

  • OnEX

    Why it's wrong here

    OnEX refers to on-box executable, not a library.

  • acitoolkit

    Why it's wrong here

    acitoolkit is for ACI, not Nexus switches.

  • Cobra SDK

    Why it's wrong here

    Cobra SDK is for ACI, not Nexus switches.

  • cisco_nxapi

    Why this is correct

    Correct. cisco_nxapi is the Python library for NX-API.

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

About these practice questions

One of 984 original 350-601 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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-601 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-601 exam.