Free Cisco 300-435 Actual Exam Questions - Question 4 Discussion
using
the Python library Requests?
Maybe C here too. PUT is generally used for replacing resources fully, which fits “replace device configuration” better than POST or PATCH. DELETE obviously won’t replace anything.
Probably C, put() is the standard for full replacement in RESTful APIs.
D imo, patch() is usually for partial updates, so it’s less likely here since the question says “replace.” That leaves put() as the better fit for full replacement.
Probably B here, since post() is often used to create or replace resources when the API endpoint supports it. If the question doesn’t specify full overwrite, post might be valid too.
C imo, since put() is meant for full replacement, not just update.
D. patch() is usually for partial updates, not full replacement. Since the question says "replace," put() (option C) fits better for a complete overwrite, so D can be ruled out here.
Maybe C, since put() commonly updates or replaces resources in REST APIs.