Which two options are REST principles? (Choose two.)
Which two options are REST principles? (Choose two.)
REST principles emphasize a stateless architecture where each request from client to server must contain all necessary information for the server to process the request context independently, without relying on prior interactions. This ensures scalability and simplicity in interactions (Option A). Additionally, RESTful applications use HTTP headers and status codes to convey required information about the status of requests and any errors, which is essential for a standardized and uniform interface between clients and servers (Option B).
The two options that are REST principles are: A. RESTful applications use a stateless architecture. This means that the server does not keep any client state between requests. Each request from the client to the server must contain all the information needed to understand and process the request. B. RESTful application use HTTP headers and status codes as a contract with the clients. HTTP headers and status codes are used to communicate the status of the request, any errors that occurred, and metadata about the returned resource. This is part of the uniform interface constraint of REST. Options C, D, and E are not principles of REST. RESTful applications can use caching (option C is incorrect), do not keep track of client state (option D is incorrect), and favor loose coupling between clients and servers (option E is incorrect).