ExamGecko
Question list
Search
Search

Question 20 - JN0-223 discussion

Report
Export

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

A.
The TCP session state is maintained by the server.
Answers
A.
The TCP session state is maintained by the server.
B.
The REST API application is stateless.
Answers
B.
The REST API application is stateless.
C.
The TCP session state is maintained by the client
Answers
C.
The TCP session state is maintained by the client
D.
The REST API application is stateful.
Answers
D.
The REST API application is stateful.
Suggested answer: B, C

Explanation:

REST (Representational State Transfer) is an architectural style for designing networked applications, and its key principles include:

Statelessness (B): Each request from the client to the server must contain all the information needed to understand and process the request. The server does not store any session state between requests, meaning each request is independent and does not rely on previous ones.

TCP Session State (C): While REST itself is stateless, the underlying TCP connection's state, such as keeping the connection alive or managing retries, is handled by the client. The server does not retain information about the TCP connection beyond the processing of the individual request.

Options A and D are incorrect because they imply that the REST API is stateful, which contradicts the stateless nature of REST.

REST API Design Principles: Describes the stateless nature of REST and the responsibility of clients in managing session state.

Web Development Documentation: Discusses how REST APIs operate, focusing on statelessness and client-server interaction.

asked 18/09/2024
Nidal Allamadani
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first