Courseiva

200-901 Practice Question: A developer is using the Cisco NX-API on a Cisco Nexus switch to retrieve the running…

A developer is using the Cisco NX-API on a Cisco Nexus switch to retrieve the running configuration. The developer sends an HTTP POST request to the NX-API endpoint with the JSON payload: {"ins_api": {"version": "1.0", "type": "cli_show", "chassis": "1", "input": "show running-config", "output_format": "json"}}. The switch returns an error indicating that the command is not supported. What is the most likely reason?

⚠ Common exam trap

The trap here is assuming that any show command can return JSON output, when in fact some commands only produce ASCII and require a different type.

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 'show running-config' command requires the 'cli_show_ascii' type instead of 'cli_show'.

The NX-API uses different types for commands: 'cli_show' for structured JSON output and 'cli_show_ascii' for ASCII text output. The 'show running-config' command does not support JSON output, so it must be requested with 'cli_show_ascii'. The error occurs because the developer used 'cli_show' with a command that lacks JSON support. Changing the type to 'cli_show_ascii' resolves the issue.

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 'show running-config' command requires the 'cli_show_ascii' type instead of 'cli_show'.

    Why this is correct

    The NX-API distinguishes between commands that return structured JSON output and those that return ASCII text. The 'show running-config' command does not have a JSON schema, so it must be requested with type 'cli_show_ascii'. Using 'cli_show' expects structured output and fails for this command. Thus, the developer must change the type.

  • ✗

    The NX-API requires the 'input' field to be a list of commands, not a single string.

    Why it's wrong here

    The 'input' field can be a single command string or a list. The error is not about the format of 'input'; it is about the command type. 'show running-config' is a valid command but must be requested with 'cli_show_ascii' to return ASCII output. Thus, this is not the reason for the error.

  • ✗

    The 'output_format' should be set to 'ascii' instead of 'json'.

    Why it's wrong here

    'output_format' does not decide whether a command is supported; the 'type' field does. 'cli_show' asks the switch for structured output, which 'show running-config' does not provide, so the error remains regardless of the output format. Changing the type to 'cli_show_ascii' tells NX-API to return the command's plain text, which is how the running configuration is retrieved through the JSON-RPC style interface.

  • ✗

    The 'chassis' field must be omitted for commands that are not chassis-specific.

    Why it's wrong here

    The 'chassis' field identifies the chassis in multi-chassis systems; for a standalone Nexus switch, '1' is valid and the field can be omitted. It has nothing to do with whether a command supports structured output, so removing it would not fix the error. The error comes from requesting structured output with 'cli_show' for a command that only produces text, which 'cli_show_ascii' solves.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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

You might also like

Similar 200-901 questions

Written and reviewed by Johnson Ajibi, MSc IT Security

Security Systems Architect · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

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.