JN0-224 practice question 8 of 15
Which two statements about the REST API are correct? (Choose two.)
Full set: 66 questionsA core architectural constraint of REST (Representational State Transfer) is that the application is stateless. This means the server does not store any client-related session information between requests. Each request from a client must contain all the information needed to be understood and processed independently. However, the REST API typically operates over HTTP, which in turn uses TCP as its transport protocol. TCP is a connection-oriented, stateful protocol. To ensure reliable data delivery, the server (the Juniper device) must maintain state information for each TCP session, such as sequence numbers and window sizes. Therefore, while the REST application is stateless, the underlying TCP session is stateful and this state is maintained by the server.
C. While the client also maintains TCP session state, option A is more relevant in the context of a Juniper exam, which focuses on the behavior of the server (the Juniper device). The pair (A, B) provides a complete server-side perspective.
D. This statement is incorrect as it directly contradicts the fundamental principle of statelessness in the REST architectural style.
1. Juniper Networks Official Documentation: The Junos OS REST API Guide explicitly defines the API's nature.
"The Junos OS REST API is a stateless RESTful API that uses HTTP as the transport protocol."
Source: Juniper Networks, Junos OS REST API Guide, "Junos OS REST API Overview" section.
2. Academic Source (Origin of REST): Roy Fielding's dissertation defines the constraints of the REST architecture.
"...each request from client to server must contain all of the information necessary to understand the request, and cannot take advantage of any stored context on the server. Session state is therefore kept entirely on the client."
Source: Fielding, R. T. (2000). Architectural Styles and the Design of Network-based Software Architectures. University of California, Irvine, Chapter 5, Section 5.2.1.2 "Stateless".
3. Protocol Standard (TCP): The official RFC for TCP defines its stateful operation.
"To provide reliability, TCP must recover from data that is damaged, lost, duplicated, or delivered out of order... This is achieved by assigning a sequence number to each octet transmitted, and requiring a positive acknowledgment (ACK) from the receiving TCP. ... This state information, including sequence numbers, window sizes, and security level, is referred to as a connection."
Source: Postel, J. (1981). RFC 793: Transmission Control Protocol. IETF, Section 1.5 "Operation".
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?
