InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Define Messaging in terms of RESTful web services. |
|
Answer» The technique of SENDING a message from the REST client to the REST server in the form of an HTTP request and the server responding BACK with the RESPONSE as HTTP Response is called Messaging. The messages contained constitute the DATA and the METADATA about the message. |
|
| 2. |
Can you tell the disadvantages of RESTful web services? |
|
Answer» The disadvantages are:
|
|
| 3. |
What are the HTTP Methods? |
|
Answer» HTTP METHODS are also KNOWN as HTTP Verbs. They form a major PORTION of uniform interface restriction followed by the REST that SPECIFIES what action has to be followed to get the requested resource. Below are some examples of HTTP Methods:
The POST, GET, PUT, DELETE corresponds to the create, read, update, delete operations which are most commonly called CRUD Operations. GET, HEAD, OPTIONS are safe and idempotent methods WHEREAS PUT and DELETE methods are only idempotent. POST and PATCH methods are neither safe nor idempotent. |
|
| 4. |
What are HTTP Status codes? |
|
Answer» These are the standard codes that refer to the predefined status of the task at the server. Following are the status codes formats available:
Most commonly used status codes are:
|
|
| 5. |
What do you understand by JAX-RS? |
|
Answer» As the name itself stands (JAX-RS= JAVA API for RESTful Web SERVICES) is a Java-based specification defined by JEE for the implementation of RESTful services. The JAX-RS library makes usage of annotations from Java 5 onwards to simplify the process of web services development. The LATEST version is 3.0 which was released in JUNE 2020. This specification also PROVIDES necessary support to create REST clients. |
|
| 6. |
What is the concept of statelessness in REST? |
|
Answer» The REST architecture is designed in such a way that the client STATE is not maintained on the server. This is KNOWN as statelessness. The context is provided by the client to the server USING which the server processes the client’s request. The SESSION on the server is identified by the session IDENTIFIER sent by the client. |
|
| 7. |
What are the features of RESTful Web Services? |
|
Answer» Every RESTful web service has the following features:
|
|
| 8. |
What is URI? |
|
Answer» Uniform Resource Identifier is the full form of URI which is used for identifying each resource of the REST architecture. URI is of the format: <PROTOCOL>://<service-name>/<ResourceType>/<ResourceID>There are 2 TYPES of URI:
|
|
| 9. |
What is a REST Resource? |
|
Answer» Every content in the REST architecture is considered a RESOURCE. The resource is analogous to the object in the object-oriented programming world. They can either be represented as text files, HTML pages, images, or any other dynamic data. |
|
| 10. |
What do you understand by RESTful Web Services? |
|
Answer» RESTful web services are services that follow REST architecture. REST STANDS for Representational State Transfer and uses HTTP protocol (web protocol) for IMPLEMENTATION. These services are lightweight, provide maintainability, scalability, support communication among multiple APPLICATIONS that are developed using different programming languages. They provide means of accessing resources present at server required for the client via the web browser by means of REQUEST headers, request body, response body, status CODES, etc. |
|