1Z0-897 Exam - Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam

certleader.com

Q1. Given stock quote web service endpoint: 

and the corresponding client side artifacts for the above web service are : 

StockQuoteService is the Service class and StockQuoteProvider is the corresponding SEI. Which of the following two options enable addressing feature for proxy for the StockQuoteProvider SEI ? (Choose two) 

A. proxy = new StockQuoteService().getStockQuoteProvider() 

B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature()) 

C. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false)) 

D. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false, true)) 

Answer: AB 

Q2. Which of the following is NOT true about configuring handlers on a Web Service endpoint? (Choose one) 

A. EE container automatically processes the handlers packaged in the application and configures it on the applicable endpoint 

B. Handlers can be configured using @HandlerChain annotation on endpoints configured with @WebService 

C. Handlers can be configured using @HandlerChain annotation on endpoints configured with @WebServiceProvider 

D. Handlers can be configured for endpoints in the deployment descriptor (webservices.xml) 

Answer:

Q3. Choose the option that best describe the deployer's choices, when deploying an EJB that is also exposed as a RESTful web service using JAX-RS (Choose one): 

A. The EJB can only be deployed to a web container, since RESTful access to the EJB requires a web container to support the HTTP interaction needed. 

B. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the ejb container. 

C. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the web container. 

D. The EJB can be deployed to an EJB or web container that is visible to the JAX-RS runtime, even on an application server separate from the JAX-RS runtime, since EJBs support local or remote interactions via RMI. 

Answer:

Q4. 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 

Q5. Given stock quote web service endpoint: 

and the corresponding client side artifacts for the above web service are : 

StockQuoteService is the Service class and StockQuoteProvider is the corresponding SEI. 

Which of the following two options enable addressing feature for proxy for the StockQuoteProvider SEI ? (Choose two) 

A. proxy = new StockQuoteService().getStockQuoteProvider() 

B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature()) 

C. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false)) 

D. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false, true)) 

Answer: AB 

Q6. A developer is asked to determine which Web services approach is correct for a new project. A SOAP-based Web service must be created and deployed in an environment where many customers will use it. These customers will be responsible for developing their own clients using different frameworks, based on the published WSDL. Which approach is correct to use first in this situation? (Choose one) 

A. Java, because the WSDL generated later will be more accurate 

B. WSDL, because the service and customers can benefit from the strongly typed schema 

C. Java, because the service must be efficient to support many customers 

D. WSDL, because tools allow existing classes to be easily mapped without modification 

Answer:

Q7. A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ? (Choose two) 

A. Using method-permission element in ejb-jar.xml 

B. Using .htaccess file in the application's ear 

C. Using <security-role> element in web.xml 

D. By specifying security annotations like @RolesAllowed in the EJB class 

Answer: AD 

Q8. An engineer is studying the architecture of the JAXB implementation. What are three components in its design? (Choose three.) 

A. Schema compiler. 

B. Built-in SAX parser 

C. Schema generator. 

D. Built-in DOM parser. 

E. Binding runtime framework. 

F. Schema interpreter. 

Answer: ACE 

Q9. Choose the JAX-RS type that is used to produce URLs to resources, given the resource class, to incorporate into resource responses (Choose one): 

A. UriBuilder 

B. UriInfo 

C. UriMapper 

D. Producer 

Answer:

Q10. Given the following web service: 

How many web methods are there in the above web service? (Choose one) 

A. 1 

B. 2 

C. 3 

D. 4 

E. 5 

Answer: