nerdexam
Cisco

350-401 · Question #1205

Refer to the exhibit. An engineer attempts to use RESTCONF to configure GigabitEthernet2 on a remote router with IP address 192.168.159.10, but the configuration fails. Which configuration is required

The correct answer is B. response = requests.patch(. The correct answer is B because RESTCONF uses the PATCH method to modify an existing resource (update a partial configuration), and the code is attempting to configure an interface that already exists on the router. Using requests.patch() is the appropriate HTTP method for this o

Submitted by olafpl· Mar 6, 2026Network Automation and Programmability – Using RESTCONF to configure network devices via Python scripting with correct HTTP methods and data structures

Question

Refer to the exhibit. An engineer attempts to use RESTCONF to configure GigabitEthernet2 on a remote router with IP address 192.168.159.10, but the configuration fails. Which configuration is required to complete the action? A. B. C. D.

Exhibits

350-401 question #1205 exhibit 1
350-401 question #1205 exhibit 2

Options

How the community answered

(39 responses)
  • A
    23% (9)
  • B
    64% (25)
  • C
    8% (3)
  • D
    5% (2)

Explanation

The correct answer is B because RESTCONF uses the PATCH method to modify an existing resource (update a partial configuration), and the code is attempting to configure an interface that already exists on the router. Using requests.patch() is the appropriate HTTP method for this operation, as GET retrieves data, POST creates new resources, and PUT replaces entire resources. The failure is due to using the wrong HTTP method (likely GET or POST was used instead of PATCH).

Topics

#RESTCONF#Python API#Network Programmability#Cisco IOS-XE YANG

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice