JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2021) — Question 7
You are using the curl tool to include multiple RPCs in a REST API request.
Which HTTP method must be used for this request?
Answer options
- A. GET
- B. PUT
- C. POST
- D. HEAD
Correct answer: A, C
Explanation
The correct methods for including multiple RPCs in a REST API request are GET and POST. GET is typically used for retrieving data, while POST is used for sending data to the server. PUT is used for updating resources and HEAD is for retrieving headers only, making them unsuitable for this scenario.