Courseiva

200-901 Cisco Platforms and Development Practice Question

A developer wants to use Cisco NX-API on a Nexus switch to execute a CLI command via JSON. What must be enabled on the switch first?

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

✓

feature nxapi

The 'feature nxapi' command enables NX-API on NX-OS.

Answer analysis

Option-by-option breakdown

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

  • ✓

    feature nxapi

    Why this is correct

    NX-API is disabled by default on Nexus switches and must be activated with the command 'feature nxapi' in configuration mode. Enabling this feature starts the HTTP/HTTPS listener that accepts JSON-formatted CLI requests, satisfying the stem's prerequisite.

  • ✗

    ip http server

    Why it's wrong here

    Enabling the HTTP server alone does not activate NX-API's JSON interface; the nxapi feature must also be enabled. Plain ip http server is for legacy web access. It would be the right prerequisite when using older REST or web-based management interfaces, not NX-API CLI over JSON.

  • ✗

    netconf-yang

    Why it's wrong here

    NETCONF/YANG provides model-driven configuration over SSH, not JSON-encoded CLI execution. NX-API needs the nxapi feature enabled together with an HTTP or HTTPS server. NETCONF-YANG would be correct when the requirement is standards-based configuration using YANG data models rather than sending CLI commands.

  • ✗

    restconf

    Why it's wrong here

    RESTCONF is a separate YANG-driven HTTP API; enabling it does not activate NX-API's JSON CLI transport. NX-API requires the nxapi feature with HTTP or HTTPS enabled. RESTCONF would be the right choice when model-driven programmatic configuration via YANG paths is needed, not raw CLI execution.

About these practice questions

One of 975 original 200-901 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 200-901 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 200-901 exam.