200-901 Question 36
Single answerA network automation engineer is tasked with retrieving the details of all devices managed by a network controller. The controller provides a REST API, and the engineer needs to ensure the correct HTTP method is used to fetch the required information without modifying any data. Which HTTP method should the engineer use?
- A
GET
- B
POST
- C
PUT
- D
DELETE
Show answer and explanation
Correct answer: A
Explanation
The GET method is specifically designed for retrieving information from a server without altering its state or data. Since the task is to fetch device details without making changes, GET is the correct choice.
- A. Correct.
GET is the correct HTTP method to retrieve data without making any changes to the underlying resources. It is used for read-only operations.
- B. Incorrect.
POST is used to create new resources or submit data to the server. It is not suitable for retrieving information without modification.
- C. Incorrect.
PUT is used to update or replace existing resources on the server. It is not appropriate for simply fetching information.
- D. Incorrect.
DELETE is used to remove resources from the server and is not suitable for retrieving data.