Introduction - Quiz

Total: 24 questions

1. 

The difference between SOAP and REST.

  • SOAP is a messaging protocol, and REST is a style of software architecture for distributed hypermedia systems.
  • A response is transferred to the client as the body of an HTTP response message in REST. And a SOAP message is encapsulated as the body of a transport message.
  • SOAP uses HTTP as a transport protocol and REST is based on it.
  • A response in REST can be in different formats and SOAP is tied to XML.
  • SOAP works with operations and REST with resources.
2. What does acronym REST mean?
REpresentation State Transfer.
3. The central abstraction in REST.
The resource.
4. What is a resource in the RESTful sense?
It is anything that has an URI.
5. Does Resource have a state?
Yes.
6. 

What lays at the core of the RESTful approach?

It is the idea that HTTP is an API and not simply a transport protocol. And the original meanings of the HTTP verbs should be respected.

7. 

Name HTTP verbs.

GET, POST, PUT, DELETE, HEAD, OPTIONS

8. What does GET HTTP verb mean in terms of CRUD?
Read a resource.
9. What does POST HTTP verb mean in terms of CRUD?
Creation of a new resource from the request data.
10. What does PUT HTTP verb mean in terms of CRUD?
Update of a resource from the request data.
11. What does DELETE HTTP verb mean in terms of CRUD?
Delete a resource.
12. When the HTTP verb HEAD is used?
It is a variation of GET which requests only the HTTP headers that are sent to fulfill a GET request.
13. How response is transferred to the client in REST?
As the body of an HTTP response message.
14. How a response is transferred to the client in a SOAP-based service?
A SOAP message is encapsulated as the body of a transport message.
15. 

What does this HTTP verb/URI pair mean: POST exams?

Create a new exam from the request data.

16. 

What does this HTTP verb/URI pair mean: GET exams?

Read a list of all exams.

17. 

What does this HTTP verb/URI pair mean: GET exams/14?

Read info about exam with id 14.

18. 

What does this HTTP verb/URI pair mean: PUT exams?

Update the exam list with the request data.

19. 

What does this HTTP verb/URI pair mean: DELETE exams?

Delete the exam list.

20. 

What does this HTTP verb/URI pair mean: DELETE exams/14?

Delete exam with id 14.

21. Which HTTP verbs are used in requests that have an HTTP body?
POST and PUT verbs.
22. Which HTTP verbs are used in requests without body?
The GET and DELETE verbs.
23. The type of the service response in a RESTful request and response service?
It is a raw XML.
24. The type of incoming request in a RESTful request and response service?
Any type is accepted.
Page 1 of 1