On This Page

This set of Cloud Computing Multiple Choice Questions & Answers (MCQs) focuses on Cloud Computing Set 16

Q1 | Publishing an application’s data as a REST service requires.
  • @requestmapping
  • @pathvariable
  • all of the mentioned
  • none of the mentioned
Q2 | Spring supports a series of mechanisms to generate a REST service payload.
  • true
  • false
Q3 | Annotation added as an input parameter to the handler method.
  • @pathvariable
  • @path
  • @pathlocale
  • none of the mentioned
Q4 | Notation for defining REST endpoints.
  • { }
  • *
  • all of the mentioned
  • none of the mentioned
Q5 | General-purpose class that allows a response to be rendered using a marshaller.
  • marshallingview
  • marshalling
  • view
  • all of the mentioned
Q6 | Marshalling is the process of transforming an in-memory representation of an object into a data format.a
  • true
  • false
Q7 | The marshaller used by MarshallingView belongs to one of a series of XML marshallers.
  • jaxb2marshaller
  • xmlbeansmarshaller
  • castormarshalle
  • all of the mentioned
Q8 | To configure Jaxb2Marshaller marshaller we require.
  • classestobebound
  • contextpath
  • all of the mentioned
  • none of the mentioned
Q9 | In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.
  • true
  • false
Q10 | Accessing a third-party REST service inside a Spring application.
  • resttemplate class
  • viewresolver
  • internalviewresolver
  • view
Q11 | REST service end point comprises an address.
  • starts with http:// and ends with ?
  • starts with http:// and ends with &
  • no certain url is specified
  • depends upon the platform used
Q12 | XML tag which represents information related to a REST service request.
  • result
  • title
  • none of the mentioned
  • all of the mentioned
Q13 | RestTemplate class method which performs an HTTP HEAD operation.
  • headforheaders(string, object…)
  • getforobject(string, class, object…)
  • postforlocation(string, object, object…)
  • postforobject(string, object, class, object…)
Q14 | A web service contract is described using :-
  • web services description language
  • web services description
  • all of the mentioned
  • none of the mentioned
Q15 | There are two approaches to developing a web service, depending on whether you define the contract first or last.
  • true
  • false
Q16 | In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-
  • xml
  • xml schema(.xsd)
  • wsdl
  • all of the mentioned
Q17 | In some cases, it’s also hard to map an object to XML (e.g., an object graph with cyclic references) because there’s actually an impedance mismatch between an object model and an XML model.
  • true
  • false
Q18 | Service exporters that can export a bean as a remote service based on the :-
  • rmi
  • hessian
  • burlap
  • all of the mentioned
Q19 | 3 WEB SERVICES
  • true
  • false
Q20 | The standard for deploying web services on the Java EE platform as of Java EE 1.4:-
  • jax-rpc
  • jax
  • rpc
  • none of the mentioned
Q21 | To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).
  • true
  • false
Q22 | If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-
  • javax.jws.webservice
  • javax.jws.webserviceprovider
  • all of the mentioned
  • none of the mentioned
Q23 | If you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.
  • true
  • false
Q24 | Spring provides a factory that can export beans annotated with:-
  • javax.jws.webservice
  • javax.jws.webserviceprovider
  • all of the mentioned
  • none of the mentioned
Q25 | Exposing a stand-alone SOAP endpoint using the:-
  • simplejaxwsserviceexporter
  • jax-ws
  • all of the mentioned
  • none of the mentioned