Courseiva
easyMultiple ChoiceObjective-mapped

200-901 Practice Question: Refer to the exhibit

Exhibit

ip http server
ip http secure-server
ip http authentication local

Refer to the exhibit. A developer is trying to access the REST API on a Cisco IOS XE device but receives a 401 Unauthorized error. What is the most likely cause?

⚠ Common exam trap

Cisco often tests the distinction between a 401 Unauthorized error (authentication failure) and a 403 Forbidden error (authorization failure), or between connectivity issues (e.g., HTTP server not enabled) and authentication issues, leading candidates to confuse missing credentials with missing server configuration.

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

Authentication requires local credentials, but none were provided

A 401 Unauthorized error specifically indicates that authentication is required but was either missing or invalid. For Cisco IOS XE REST API access, the device requires local credentials (username and password) to be provided in the request, typically via HTTP Basic Authentication. Without these credentials, the server rejects the request with a 401 status.

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 device does not support REST API

    Why it's wrong here

    The exhibit shows HTTP server configuration, implying REST API support is available.

  • Authentication requires local credentials, but none were provided

    Why this is correct

    With 'ip http authentication local', the device requires valid local username/password, which if missing results in 401.

  • HTTPS is not configured

    Why it's wrong here

    The command 'ip http secure-server' indicates HTTPS is configured.

  • HTTP server is not enabled

    Why it's wrong here

    The command 'ip http server' shows HTTP is enabled.

About these practice questions

Courseiva writes every 200-901 question from scratch — 989 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 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.