Tuesday, December 15, 2015

RESTful Services test answers of 2016.

In this post you can find Complete and recently updated Correct Question and answers of RESTful Services. All Answers updated regularly with new questions. Upwork RESTful Services test answers of 2016.



Question:* When you wish to read a collection of “Foo” via a RESTful API, which is most appropriate?

Answer: • GET /api/foos

Question:* Which of the following cannot be considered a REST design principle

Answer: • (None of these)

Question:* In the context of a web service, a RESTful API should...

Answer: • Make individual resources available at unique URIs

Question:* Which is a true statement in the basic REST design principle that uses HTTP request methods to update resources?

Answer: • To create a resource on the server, use POST

Question:* Which request would best describe removing an user in a RESTful Web Service?

Answer: • DELETE /users/1

Question:* Identify the method which is not predefined in HTTP specification

Answer: • FIND

Question:* When you wish to delete an existing “Foo” via a RESTful API, which is most appropriate?

Answer: • DELETE /api/foos/123

Question:* When you wish to read a single “Foo” via a RESTful API, which is most appropriate?

Answer: • GET /api/foos/123

Question:* What happens if Restful resources are accessed by multiple clients?

Answer: • Multiple clients can safely access Restful resources concurrently

Question:* RESTful web services are designed with ____ in mind.

Answer: • Client-server communications

Question:* Which HTTP method should be used to update a resource in a RESTful Web Service?

Answer: • PUT

Question:* REST is an acronym for representational state transfer

Answer: • True

Question:* What is the advantage of including Cache control and Last-Modified (a date value) HTTP response header?

Answer: • Improves performance by reducing the requests for duplicate resources

Question:* Consider a RESTful resource available on the URI /posts. Which is the correct HTTP method used to create a new entry?

Answer: • POST

Question:* True of False? REST, being an architectural style, does not concern implementation details

Answer: • True

Question:* What are the prerequisites for an application to interact with a resource?

Answer: • Identifier of the resource and Action required

Question:* Which of the following is true of RESTful Web Service?

Answer: • Use HTTP methods explicitly

Question:* Which data formats can be transfered through RESTful Web Services?

Answer: • Any format

Question:* When you wish to update an existing “Foo” via a RESTful API, which is most appropriate?

Answer: • PUT /api/foos/123

Question:* When you wish to create a new “Foo” via a RESTful API, which is most appropriate?

Answer: • POST /api/foos

Question:* What is the key difference between RESTful web services and SOAP web services?

Answer: • REST uses HTTP protocol for producing or consuming web services while SOAP uses XML

Question:* When you wish to create a new “Foo” via a RESTful API, which is most appropriate?

Answer: • POST /api/foos/123

Question:* Identify the item which is not an intermediary for communication in REST

Answer: • Viruses

Question:* What determines the action to be executed on a RESTful request?

Answer: • HTTP Method

Question:* RESTful web services must be stateful

Answer: • False

Question:* As an idempotent method, which of the following should not happen when issuing a GET request to a RESTful Web Service?

Answer: • Update a resource entry

Question:* Which of the following best describe REST?

Answer: • an architectural style

Question:* Which is the preferred method of determining the format of the data being transfered in a RESTful request?

Answer: • HTTP Content-Type header

Question:* Which of the following best describes a RESTful service?

Answer: • Web Services with focus on system resources and transfer of state of resource over http by a wide range of clients written in different languages

Question:* How can users log into RESTful API to see protected resources only?

Answer: • Since server is stateless, client has to provide all information to make request

Question:* Statelessness is one of the formal constraint of REST Web Service, which feature is addressed due to absence of state on the server?

Answer: • Improves Web service performance as it removes the need to synchronize session data with an external application

Question:* How is REST related to SOAP?

Answer: • REST is an alternative to SOAP

Question:* True or False? RESTful responses should include links to related resources, enabling the Client to progress through states.

Answer: • True

Question:* A RESTful Web Service URI should map to __________________?

Answer: • an entity or resource

Question:* Which HTTP methods are considered "safe", meaning that the request should not produce side-effects or alter the server state?

Answer: • HEAD, GET, OPTIONS and TRACE

Question:* Suppose you're writing a REST resource for listing all coments made by an user. Which would be the most appropriate URI?

Answer: • /users/{id}/comments

Question:* Identify which is not a formal REST constraint

Answer: • Master Data

Question:* In the context of a web service, a RESTful API should...

Answer: • Use different HTTP verbs for different actions on the same resource

Question:* True or False? It is a design flaw for RESTful Web Services to reveal data gradually, linking to additional resources on the response body.

Answer: • False

Question:* Which software architecture is used for designing and developing software with "RESTful" interfaces?

Answer: • Resource Oriented Architecture

Question:* What is the mechanism that mediates communication, coordination or cooperation among components like data streams known as?

Answer: • Connector

Question:* True or False? In RESTful Web Services each URI can map to one or more resources.

Answer: • False

Question:* Who is responsible for tracking the application state on a system that communicates through a RESTful Web Service

Answer: • Client

Question:* Which of the following should not be present in RESTful Web Services URIs?

Answer: • Verbs

Question:* What is an appropriate HTTP response for issuing a GET request to /users/1/delete on a RESTful Web Service?

Answer: • 405 Method Not Allowed

Question:* Which of the following describe the correct way to let a client progress through states in a RESTful application?

Answer: • A link in the response body pointing to the next state

Question:* Which is the foundational constraint in REST that defines the separation between service, consumer and the technical contract?

Answer: • Client server

Question:* Name the service where the security measures are transport dependent

Answer: • Representational State Transfer

Question:* In the context of a web service, a RESTful API should...

Answer: • Include URIs that link to other related resources

Question:* Which of the following is one of the interface constraints for REST that allows the server functionality to evolve independently?

Answer: • HATEOAS (Hypertext As The Engine Of Application State)

Question:* Which is an optional constraint for REST?

Answer: • Code on demand

Question:* How might HATEOAS principles be applied in a RESTful web service?

Answer: • Each response should include links to the other related resources

Question:* What is the advantage of Restlet Framework?

Answer: • Restlet Application can be a client and a server at the same time.

Question:* URIs in a RESTful web service should be hierarchical

Answer: • False

Question:* RESTful web services must be served over HTTP or HTTPS

Answer: • False

Question:* When you wish to update a select few fields on an existing “Foo” via a RESTful API, which is most appropriate?

Answer: • PATCH /api/foos/123

Question:* In a RESTful web service, which HTTP verbs are idempotent?

Answer: • GET, PUT, DELETE

Question:* It is possible to implement a RESTful web service in HTTP1.1, but not in HTTP1.0

Answer: • True, because HTTP1.0 has insufficient verbs



No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers