Sandeep is a ITA at Tata Consultancy Services. He also is the author of java blog. Sandeep has posted 24 posts at DZone. You can read more from them at their website. View Full User Profile

REST Web Service Interview Questions

05.22.2011
| 42131 views |
  • submit to reddit

Here I am putting 20 REST questions. Please read some tutorial on REST before taking up these questions. Simply mugging up the answers will not give you the confidence for interview.

Some questions may not be applicable to eveyone. For example if you have used anything else than CXF or RESTLET for building REST web services then the question number 15 may not hold good for you

If you are unable to get answer to any of the question, do drop a comment, I will be more than happy to get back with the answer...

1) What is a web service?

2) Can I use GET request instead of PUT to create resources?

3) What is the difference between a RESTful web service (on HTTP) and a HTTP Servlet both of which perform the same function?

4) How will you migrate from SOAP web service to RESTfull web service?

5) What is the difference between HTTP POST and PUT requests?

6) What all kind of output formats can one generate using RESTful web service?

7) What all tools have you used to write RESTful web service?

8) Can my web browser be a client to RESTful web service? If yes then how will you generate DELETE request from web browser?

9) What is meant by JAX-WS and JAX-RS?

10) How is JAXB related to RESTful web services?

11) How will you handle synchronization issues when multiple clients try to consume web service simultaneously?

12) Can you describe any one RESTful web service you have written?

13) What will you do when an error code has to be returned to the client

OR

How will you handle application error scenarios in RESTful web service

14) Is it mandatory to use HTTP protocol for performing CRUD operations by a REST based web service?

15) What are the pros and cons of using the RESTLET framework than CXF for writing RESTful web service?

16) Can one RESTful web service be a client to another RESTful web service for performing business operations? Describe with example?

17) Can you generate HTML output from a RESTful web service? How?

18) Can a RESTful web service generate output in various formats based on some parameter received from the client.

19) With a RESTful web service, whose state is getting transferred and how?

20) Who owns the specification for REST web services and how does it get updated to newer versions?

From http://extreme-java.blogspot.com/2011/05/rest-web-service-interview-questions.html

Published at DZone with permission of its author, Sandeep Bhandari.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Zqudlyba Navis replied on Mon, 2011/05/23 - 5:59am

If you claim to be doing REST without doing HATEOAS, you're not doing REST at all. The ultimate test for REST compliance at the highest level is HATEOAS.

Alessandro Santini replied on Mon, 2011/05/23 - 7:47am in response to: Zqudlyba Navis

Strongly agree.

Solomon Duskis replied on Mon, 2011/05/23 - 8:13am in response to: Zqudlyba Navis

@Zquidiyba: then no one, and I do mean no one, who's impleneting web oriented APIs is building REST services at all.  No one does HATEOAS effectively.

Rickard Oberg replied on Mon, 2011/05/23 - 9:57am in response to: Solomon Duskis

Pretty much all websites, e.g Javalobby, fulfil the HATEOAS requirement. So define "noone"....

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.