JN0-223 practice question 4 of 15

Which two statements about the REST API are correct? (Choose two.)

Full set: 66 questions
Answer options
A: The TCP session state is maintained by the server.
B: The REST API application is stateless. Correct answer
C: The TCP session state is maintained by the client Correct answer
D: The REST API application is stateful.
Correct Answer:
B. The REST API application is stateless.; C. The TCP session state is maintained by the client
Explanation

A fundamental architectural constraint of REST (Representational State Transfer) is statelessness. This means the server does not maintain any client session state between requests. Each request from a client must contain all the information necessary for the server to understand and process it, making the application itself stateless. Because the server does not store session information, the responsibility for maintaining the state of a session (e.g., authentication tokens, user context) is delegated to the client. The client must include this state information with every subsequent request to the server.

Why Incorrect

A. The server is explicitly designed to be stateless in a REST architecture and does not maintain application session state.
D. This statement is incorrect as it directly contradicts the core "stateless" principle of the REST architectural style.

References

1. Juniper Networks Official Documentation: In the Junos OS REST API Guide

it is stated

"The Junos OS REST API is a stateless RESTful API. The server does not store any information about the client’s state. Each request from a client must contain all of the information necessary to service the request."

Source: Junos OS REST API Guide

"Junos OS REST API Overview" section.

2. Academic Publication (Primary Source): The concept of REST was defined by Roy T. Fielding in his doctoral dissertation. He specifies the stateless constraint.

Source: Fielding

R. T. (2000). Architectural Styles and the Design of Network-based Software Architectures. University of California

Irvine. Chapter 5

Section 5.1.3 "Stateless". The text states

"...each request from client to server must contain all of the information necessary to understand the request... Session state is therefore kept entirely on the client."

DOI: https://www.ics.uci.edu/~fielding/pubs/dissertation/restarchstyle.htm#sec513

Scroll to Top