Question: How is a resource defined in the context of a REST service?
- A resource is the actual String literal that composes a URI that is accessed on a RESTful web service.
- 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.
- A REST service has a pool of resources composed of allocations of memory that allow a request to be processed.
- 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.