350-401 exam dumps

350-401 practice question 229 of 631

Implementing Cisco Enterprise Network Core Technologies. Professional level, Cisco. Free question with the correct answer and a full explanation.

350-401 Question 229

Single answer

You are tasked with configuring RESTCONF on a Cisco IOS XE device to enable network programmability. After enabling the RESTCONF feature, you attempt to retrieve the device's running configuration using a REST API client but receive an HTTP 401 Unauthorized error. Which step is MOST LIKELY missing from your configuration?

  1. A

    Enable the HTTP/HTTPS server on the device.

  2. B

    Create a username and password with appropriate privilege levels.

  3. C

    Enable the NETCONF feature on the device.

  4. D

    Configure a RESTCONF-specific access control list (ACL).

Show answer and explanation

Correct answer: B

Explanation

To retrieve data using RESTCONF, the device must authenticate the API client. This requires a username and password configured on the device. Without proper user credentials, the device will respond with an HTTP 401 Unauthorized error, indicating that authentication has failed.

  • A. Incorrect.

    While enabling the HTTP/HTTPS server is necessary for RESTCONF to function, it would not result in an HTTP 401 Unauthorized error if omitted. Instead, the REST API client would fail to connect altogether.

  • B. Correct.

    RESTCONF relies on basic authentication or tokens for user access. If a username and password are not configured, the device cannot authenticate the API client, resulting in an HTTP 401 Unauthorized error.

  • C. Incorrect.

    NETCONF is a separate protocol from RESTCONF. Enabling NETCONF is not required for RESTCONF functionality and does not relate to the HTTP 401 Unauthorized error.

  • D. Incorrect.

    While an ACL can be used to restrict RESTCONF access, the absence of an ACL would typically result in unrestricted access rather than an HTTP 401 Unauthorized error.

Timed practice exam

Take a 350-401 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam