300-435 exam dumps

300-435 practice question 66 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 66

Select 3

You are tasked with automating the configuration of multiple network devices across an enterprise environment. You decide to use Python and Cisco's APIs to achieve this. Which of the following steps are essential to programmatically retrieve the current configuration of a Cisco IOS XE device using RESTCONF?

  1. A

    Ensure the RESTCONF service is enabled on the Cisco IOS XE device.

  2. B

    Use an HTTP GET request with the appropriate URI to retrieve configuration data.

  3. C

    Install the Cisco-specific Python SDK to interact with RESTCONF.

  4. D

    Authenticate using HTTP basic authentication with valid credentials.

  5. E

    Enable NETCONF-YANG on the device as it is required for RESTCONF to work.

Show answer and explanation

Correct answers: A, B, D

Explanation

To retrieve the configuration of a Cisco IOS XE device using RESTCONF, the RESTCONF service must be enabled on the device, an HTTP GET request must be used with the appropriate URI, and valid credentials must be provided for authentication. While tools like SDKs can simplify the process, they are not mandatory. Additionally, RESTCONF does not depend on NETCONF being enabled, they are separate protocols with overlapping capabilities.

  • A. Correct.

    Correct. RESTCONF must be explicitly enabled on the device to expose the REST API endpoints.

  • B. Correct.

    Correct. An HTTP GET request is used to retrieve data from the RESTCONF API. The URI must be specific to the desired configuration or operational data.

  • C. Incorrect.

    Incorrect. While Python SDKs may simplify scripting, they are not mandatory for RESTCONF, which can be used with standard HTTP libraries.

  • D. Correct.

    Correct. RESTCONF requires client authentication, typically using HTTP basic authentication or tokens.

  • E. Incorrect.

    Incorrect. NETCONF-YANG and RESTCONF are separate protocols. RESTCONF does not require NETCONF to be enabled, though both can use YANG models for data structure.

Timed practice exam

Take a 300-435 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