CS FundamentalsHardProduct-company MCQ pattern

Assertion (A): In a RESTful API, every request from the client must carry all the information needed to process it, such as an auth token. Reason (R): REST requires the server to store each client's session state in memory between requests.

  1. A. Both A and R are true and R is the correct explanation of A
  2. B. Both A and R are true but R is not the correct explanation of A
  3. C. A is true but R is false
  4. D. A is false but R is true

Correct answer: C. A is true but R is false

A states the REST statelessness constraint correctly. R is false and in fact the opposite: the server does not keep client session state between requests, which is why each request carries its own context and why stateless servers scale horizontally.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic