ExamGecko
Question list
Search
Search

Question 4 - JN0-223 discussion

Report
Export

A REST API client uses which two HTTP methods to execute RPC requests on the server? (Choose two.)

A.
POST
Answers
A.
POST
B.
HEAD
Answers
B.
HEAD
C.
GET
Answers
C.
GET
D.
CONNECT
Answers
D.
CONNECT
Suggested answer: A, C

Explanation:

REST APIs use HTTP methods to perform different operations on resources. In the context of RPC (Remote Procedure Call) requests:

GET: This method is used to retrieve data from the server. In a REST API, it is commonly used to fetch information about resources, such as the current configuration or operational state.

POST: This method is used to send data to the server to create or update a resource. In the context of RPC, POST is often used to execute a procedure on the server that may result in the modification of a resource or triggering of an action.

Options B (HEAD) and D (CONNECT) are not typically used for executing RPC requests:

HEAD is similar to GET but only retrieves the headers, not the body of the response.

CONNECT is used to establish a tunnel to the server, primarily for SSL-encrypted communication, and is not commonly associated with RESTful RPC operations.

Supporting

Reference:

Juniper Networks REST API Documentation: The documentation provides detailed information about the use of HTTP methods in Juniper's RESTful services.

'RESTful Web Services' by Leonard Richardson and Sam Ruby: This book explains the principles of REST and how different HTTP methods, particularly GET and POST, are used to interact with RESTful APIs.

asked 18/09/2024
e m
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first