Following quiz provides Multiple Choice Questions (MCQs) related to RESTful Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following depicts best practice, Completeness for resource representation in REST?
Completeness: Format should be able to represent a resource completely. For example, a resource can contain another resource. Format should be able to represent simple as well as complex structures of resources.
Q 2 - Which of the following component of HTTP request is used to indicate HTTP version?
HTTP Version − Indicate HTTP version, for example HTTP v1.1 .
Q 3 - Which of the following is correct about addressing in RESTful web services?
A - Addressing refers to locating a resource or multiple resources lying on the server.
Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person.
Q 4 - Which of the following HTTP method should be idempotent in nature?
DELETE opearations should be idempotent, means their result will always same no matter how many times these operations are invoked.
Q 5 - Which of the following is a best practice for caching in RESTful web service?
B - Never keep expiry date too high.
All of the above options are correct.
Q 6 - Which of the following is a best practice for designing a secure RESTful web service?
Both of the above options are correct.
Q 7 - Which of the following is correct about JAX-RS?
B - It also provides supports for creating clients for RESTful web services.
Both of the above options are correct.
Q 8 - Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP header?
@HeaderParam − Binds the parameter passed to method to a HTTP header.
Q 9 - REST is web standards based architecture and uses HTTP Protocol for data communication.
REST is web standards based architecture and uses HTTP Protocol for data communication.
GET opearations should be readonly.