Implementing Automation for Cisco Enterprise Solutions (ENAUTO) — Question 31

The automation engineer must replace device configuration using RESTCONF. How is this configured using the Python library Requests?

Answer options

Correct answer: C

Explanation

The correct answer is C, as the PUT method is used in RESTful APIs to replace the current representation of a resource with a new one. The other options, such as DELETE, POST, and PATCH, serve different purposes: DELETE removes a resource, POST creates a new resource, and PATCH partially updates a resource without replacing it.