300-435 exam dumps

300-435 practice question 102 of 322

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

300-435 Question 102

Single answer

You are tasked with automating the configuration of network devices in your enterprise network using RESTCONF. During the process, you want to retrieve the current running configuration of a specific interface on a Cisco device. Which RESTCONF HTTP method and URI would you use?

  1. A

    GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1

  2. B

    POST /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1

  3. C

    PUT /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1

  4. D

    DELETE /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1

Show answer and explanation

Correct answer: A

Explanation

To retrieve the current running configuration of a specific interface using RESTCONF, you use the GET HTTP method along with the appropriate URI. The URI specifies the data model (ietf-interfaces in this case) and the target resource (the specific interface). This ensures that you can query and read the configuration without making any modifications.

  • A. Correct.

    The GET method is used to retrieve data from a resource. In this case, it retrieves the running configuration of the specified interface.

  • B. Incorrect.

    The POST method is used to create a new resource. It cannot be used to retrieve data, so this option is incorrect.

  • C. Incorrect.

    The PUT method is used to update or replace an existing resource. It is not suitable for retrieving data, so this option is incorrect.

  • D. Incorrect.

    The DELETE method is used to remove a resource. It has no role in retrieving data, so this option is incorrect.

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