Question: How is a resource defined in the context of a REST service?

  1. A resource is the actual String literal that composes a URI that is accessed on a RESTful web service.
  2. It is an abstract concept that represents a typed object, data, relationships, and a set of methods that operate on it that is accessed via a URI.
  3. A REST service has a pool of resources composed of allocations of memory that allow a request to be processed.
  4. A resource for a REST service is an explicit allocation of a thread or CPU cycles to allow a request to be processed.

Answer: The correct answer of the above question is Option B:It is an abstract concept that represents a typed object, data, relationships, and a set of methods that operate on it that is accessed via a URI.