1Z0-897 | 10 Tips For Rebirth 1Z0-897 exam dumps


Q1. A developer is creating a web service endpoint using a stateless session EJB. 

What must be the value for <ejb-link> for the above service in the webservices.xml ? (Choose one) 

A. CounterEJB 

B. Counter 

C. CounterService 

D. CounterPort 

Answer:

Q2. Choose the code fragment that corresponds to a resource delegating processing of a request to a subresource correctly, when processing the URL "/parent/child" (Choose one): 

A. @Path("/parent") class Parent { 

@Path("/child") 

Child getChild() { return new Child(); } 

class Child { 

@GET String getName() { return "name"; } 

B. @Path("/parent") 

class Parent { 

@GET @Path("/child") 

Child getChild() { return new Child(); } 

class Child { 

@GET String getName() { return "name"; } 

C. @Path("/parent") 

class Parent { 

@Path("/child") 

Child getChild() { return new Child(); } 

@Path("/child") 

class Child { 

@GET String getName() { return "name"; } 

D. @Path("/parent") 

class Parent { 

@Path("/child") 

Child getChild() { return new Child(); } 

class Child { 

String getName() { return "name"; } 

Answer:

Q3. Which two statements are true about WSIT client development and using the WSIT configuration file? (Choose two.) 

A. Client configuration files do NOT contain information security features, such as authentication. 

B. The file contains the URL for the WSDL. 

C. To maintain interoperability, the configuration file must not name packages. 

D. A WSIT client uses the file as a WSDL proxy is available from any WSIT compliant service. 

E. The wsimport tool uses the file to access the WSDL and build stubs to access a service. 

Answer: BE 

Q4. An engineer is creating a WSDL 1.1 document, and is having difficulty with the wsdl:messages section. 

Which two statements are true about wsdl:messages in a WSDL 1.1 document? (Choose two.) 

A. Both type and element attributes can be used on the same wsdl:part. 

B. Both type and element attributes can be used on the same wsdl:binding. 

C. The type and element attributes cannot be used on the same wsdl:part. 

D. The type and element attributes cannot be used on the same wsdl:binding. 

E. Document-style messaging allows the type attribute. 

F. Document-style messaging allows the element attribute. 

Answer: CF 

Q5. Given this class: Choose the statement that best describes the potential to write a client implemented using JAX-WS to interact with the JAX-RS (restful) web service defined by this class (Choose one): 

A. It is impossible, since JAX-WS requires that the underlying interaction be SOAP-based, and JAX-RS does not support SOAP. 

B. It is impossible, since JAX-RS does not support the same extension mechanism via JAX-WS Handlers that JAX-WS supports. 

C. It is possible, since the JAX-WS API can be used to create a client that uses a simple raw XML protocol to interact with a service at a given URL. 

D. It is possible, since a JAX-WS proxy Port type can be generated to use a simple raw XML protocol to interact with a service at a specific fixed URL. 

Answer:

Q6. What is an accurate description of the handling of application exceptions thrown by a JAX-WS service endpoint? 

A. Application exceptions can be mapped to faults in WSDL. 

B. Application exceptions are NOT handled by JAX-WS SEI clients. 

C. Application exceptions are always propagated to JAX-WS clients as RemoteExceptions. 

D. Application exceptions are always propagated to JAX-WS SEI clients as WebServiceExceptions. 

E. Application exceptions are always propagated to JAX-WS SEI clients as SOAPFaultExceptions. 

Answer:

Q7. Which two statements are true about the interoperability of Web services developed using the Java EE 6 platform? (Choose two.) 

A. Interoperability is improved by restricting access only to Java clients. 

B. EJB-based endpoints are more difficult for .NET clients to access. 

C. Only servlet-based endpoints are used when exposing services to non-Java clients. 

D. The signature of Web service methods is limited to parameters and return types that are concrete types and simple arrays of concrete types. 

E. The service must be published in both the .NET and Java UDDIs. 

F. Testing for WS-I Profile conformance improves interoperability. 

Answer: DF 

Q8. A Java EE application contains business logic composed of EJB beans. All current clients are Java applications accessing the business logic using RMI. Some clients are remote (running in different JVMs) and some are local (running in the same JVM). Which of the following two occur if EJB components are exposed as Web services? (Choose two.) 

A. New client applications can be built using the published WSDL to access existing business logic 

B. Current remote clients must switch from RMI to web service access. 

C. New remote clients can access business logic using RMI or web service access 

D. New local clients must access business logic using only RMI 

E. New clients must only be written in java to access business logic 

Answer: AC 

Q9. Given the JAX-RS root resource class fragment: Choose the statement that best describes the configuration that would be required to support the access control constraint shown: 

A. No further configuration is required - the JavaEE runtime will pick up the security constraint and configure the web container to match. 

B. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, so the proper information can be propagated to the EJB container. 

C. The developer will have to turn on authentication in the web container configuration file, so that all incoming requests are authenticated in order to be processed. 

D. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, and then map web-tier roles to ejb-tier roles, since the JAX-RS and EJB runtimes cannot use the same set of roles. 

Answer:

Q10. A purchase order Web service is designed to be synchronous, request-response, and HTTP-based. The existing service processes the request immediately. Because of new business requirements, the service can take up to ten days to perform a credit check before processing the order. Which two design changes should be made? (Choose two.) 

A. The client needs to use dynamic proxies instead of stubs. 

B. The client needs to develop and deploy a Web service to accept callbacks. 

C. The service only needs to change the WSDL from rpc-literal to document-literal. 

D. The client and the service need to establish a mechanism to correlate the messages. 

E. Given delays of up to ten days, a polling strategy is more efficient than callback. 

Answer: BD