JN0-224 practice question 12 of 15
A REST API client uses which two HTTP methods to execute RPC requests on the server? (Choose two.)
Full set: 66 questionsThe Junos OS REST API allows a client to execute Remote Procedure Calls (RPCs) on a server (a Juniper device) using two primary HTTP methods. The client can send an HTTP POST request to the /rpc resource URI, including the RPC command and any parameters in the request body. Alternatively, the client can send an HTTP GET request where the RPC is specified directly in the URL, and any necessary arguments are passed as query parameters. Both methods are valid for invoking RPCs.
B. HEAD: The HEAD method is used to retrieve the headers of a resource without the message body. It is not used to execute an action or an RPC.
D. CONNECT: The CONNECT method is used to establish a network tunnel, typically for proxying HTTPS traffic, and is not used for executing RPCs.
1. Juniper Networks TechLibrary, Junos OS REST API Guide. In the section "Executing RPCs Using the REST API," the documentation explicitly states: "To execute an RPC, the client application sends an HTTP POST or GET request to the RPC resource URI on the target device." It provides distinct examples for both methods.
Source: Juniper Networks, "Junos OS REST API Guide," section on "Executing RPCs Using the REST API."
2. Juniper Networks TechLibrary, REST API Overview. This guide reinforces the concept, explaining that RPCs can be executed via the REST API. The examples provided for RPC execution consistently use either GET or POST methods.
Source: Juniper Networks, "REST API Overview," section on "RPC Execution."
Keep practicing
Take the free JN0-224 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other JN0-224 practice questions
- Question 1You want to use a Python package or module. In this scenario, which statement would accom…
- Question 2Which two data structures are used in JSON? (Choose two.)
- Question 3You are asked to use the REST API to retrieve interface configuration information from yo…
- Question 4Which two statements are valid regarding Junos automation? (Choose two.)
- Question 5Which data construct is used to guarantee that element names and data values remain uniqu…
- Question 6Which statement is correct about DevOps?
