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

certleader.com

Q1. A company is implementing an accounting system, where every transaction is monitored and audited. They must implement message-oriented Web services in their accounting package to integrate various modules. All errors in computation or transmission must be logged. Which technology will they use? 

A. SOAP 

B. REST 

C. JSON 

D. JSP 

Answer:

Q2. Which of the following WS-Security token profiles is not supported in Metro? 

A. X509 Token Profile 

B. Kerberos Token Profile 

C. SAML Token Profile 

D. SOAP with Attachments (SWA) profile 

E. Right Expression Language (REL) Token Profile 

Answer:

Q3. A developer is tasked with analyzing a new Web services project and must decide to use either SOAP or REST. Based on requirements, the developer determines the service must be stateful and have a documented interface and data types that clients can discover dynamically. Which two statements are true? (Choose two.) 

A. The SOAP approach consists of resources identified by unique URIs. 

B. SOAP services are self-documenting via the WSDL. 

C. Either SOAP or REST are suitable for the Web service. 

D. REST fully documents data types via the functional interface GET and POST. 

E. RESTful services are stateless by definition. 

Answer: BE 

Q4. An enterprise has a requirement to create a Web service to accept purchase orders. The order data contains some authorization information that is specific to each order (such as, who can access which parts of the order). Keeping in mind future enhancements in types of orders that the enterprise needs to accept, which two design solutions provide the most flexibility? (Choose two.) 

A. a Web service interface with one method per accepted XML document type for a purchase order 

B. a procedure-style Web service method that lists all data elements and all possible access control options 

C. a document-style Web service method that accepts all types of XML documents representing purchase orders. 

D. a Web service interface with one method for each combination of data elements and the access control options 

Answer: AC 

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

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

Q7. Which of the following can an EJB-based web service endpoint may NOT be able to use ? 

A. Servlet sessions 

B. Java EE 6 declarative security 

C. container-managed transactions 

D. dependency injection 

Answer:

Q8. A developer must create a program to parse a medium-sized XML file looking for an instance of a specific element. Once the developer has found the element, the value must be updated and saved to disk. Which two XML parsing APIs should be used in this situation? (Choose two.) 

A. DOM 

B. StAX 

C. JAXM 

D. SAAJ 

Answer: AB 

Q9. A company has contracted a developer to create their new accounting system. The system the developer will replace runs a monolithic web application using one web server and one database server. Technical requirements state the developer must write the business logic in Java, deploy to the application server and push the presentation logic onto the web servers. What are three characteristics of services in the proposed Service Oriented Architecture? (Choose three.) 

A. Services are coarse grained. 

B. Services are finely grained. 

C. Services are loosely coupled. 

D. Services are tightly coupled. 

E. Clients must be implemented in the Java technology. 

F. Services are platform agnostic, network-addressable web APIs. 

Answer: ACF 

Q10. A team of developers is describing a set of endpoints in their new SOA application. Given the WSDL extract: 

Which statement is true about this WSDL extract? 

A. The extract is WS-I Basic Profile 1.1 compliant because both port element names are different. 

B. The extract is NOT WS-I Basic Profile 1.1 compliant because both port elements point to the same location. 

C. The extract is WS-I Basic Profile 1.1 compliant because both port elements point to different binding elements. 

D. The extract is NOT WS-I Basic Profile 1.1 compliant because it contains two port elements in the same service. 

Answer: