DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Culture and Methodologies
  3. Career Development
  4. REST Web Service Interview Questions

REST Web Service Interview Questions

Sandeep Bhandari user avatar by
Sandeep Bhandari
·
May. 23, 11 · Interview
Like (1)
Save
Tweet
Share
81.66K Views

Join the DZone community and get the full member experience.

Join For Free

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

REST Web Protocols Web Service Interview (journalism)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Spring Boot, Quarkus, or Micronaut?
  • Front-End Troubleshooting Using OpenTelemetry
  • 5 Software Developer Competencies: How To Recognize a Good Programmer
  • Key Elements of Site Reliability Engineering (SRE)

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: