hardMultiple SelectObjective-mapped
200-901 Practice Question: A network automation script using NX-API on a…
A network automation script using NX-API on a Nexus switch fails intermittently with HTTP 500 errors. Which two troubleshooting steps are most effective in diagnosing the issue? (Choose two.)
⚠ Common exam trap
Cisco often tests the misconception that HTTP 500 errors are always client-side issues (like payload size) or can be fixed by changing protocols, when in fact they require server-side debugging to diagnose internal failures.
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
✓
Enable NX-API debugging on the switch to capture detailed logs.
Enabling NX-API debugging on the switch (using the 'debug nxapi' command) captures detailed logs of API requests and responses, including HTTP 500 error details. This allows you to pinpoint the root cause, such as malformed payloads, internal server errors, or resource exhaustion. Without debugging, the generic 500 error provides no insight into the specific failure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Check the length of the JSON payload sent to the API.
Why it's wrong here
Payload size limits cause 413 errors, not 500.
- ✗
Ensure the switch is running NX-OS version 9.3(1) or later.
Why it's wrong here
Version is less likely to cause intermittent 500 errors.
- ✓
Enable NX-API debugging on the switch to capture detailed logs.
Why this is correct
Debug logs help identify the exact failure point.
- ✓
Verify that the NX-API sandbox feature is enabled and running.
Why this is correct
If NX-API is not fully enabled, it can lead to intermittent errors.
- ✗
Use HTTP instead of HTTPS for the API requests.
Why it's wrong here
Using HTTP does not fix the issue and introduces security risks.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 989-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 →
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.