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
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
Options
- Adata = json.dumps({ 'Cisco-IOS-XE-native:GigabitEthernet': { 'ip': { 'address': { 'interface': {
- Bresponse = requests.patch(
- Curl = 'https://192.168.159.10/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet2',
- Ddata = json.dumps({ 'Cisco-IOS-XE-native:GigabitEthernet2': {
How the community answered
(39 responses)- A23% (9)
- B64% (25)
- C8% (3)
- D5% (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
Community Discussion
No community discussion yet for this question.

