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

certleader.com

Q1. Which two statements are true about elements in a WSDL document? (Choose two.) 

A. Operation is an abstract set of port types supported by one or more endpoints. 

B. Service is an abstract set of operations supported by one or more endpoints. 

C. Message is an abstract description of an action supported by the service. 

D. Operation is an abstract description of an action supported by the service. 

E. Binding is a single endpoint defined as a combination of an operation and a network address. 

F. Message is an abstract, typed definition of the data being communicated. 

Answer: DF 

Q2. Which two statements are true about the I-Stack and annotations technologies? (Choose two.) 

A. With 64-bit Java, JAXB compatible parameters are preferred for performance. 

B. @WebMethod is required for private methods, but public methods are exposed in any service automatically. 

C. Declaring business methods final is a good way to protect the integrity of the implementation class. 

D. Method parameters and return types must be compatible with the JAXB 2.0. 

E. JAX-WS uses annotations to invoke Web service requests at runtime. 

Answer: DE 

Q3. What are three best practices that can be implemented when generating WS-I Basic Profile compliant Web services? (Choose three.) 

A. Send arrays of nulls to ensure .NET and Java clients receive the same data. 

B. Define data types early in the integration cycle. 

C. Use complex data types to reduce the number of items exchanged. 

D. Test interoperability at every stage of development. 

E. Insert conformance headers in all SOAP messages. 

F. Keep data types simple for speed and stability. 

Answer: BDF 

Q4. Which of the following can be used on the SEI's method parameter so that the corresponding generated schema type is wsiap:swaref ? (Choose one) 

A. @XMLSchemaType 

B. @SwaRef 

C. @XmlMimeType 

D. @XMLAttachmentRef 

Answer:

Q5. If you are developing a Web Service starting from WSDL 1.1, how would you declare in wsdl that the Web Service requires the use of Addressing in a standard and interoperable way. 

A. Declare a policy as 

<wsp:Policy> 

<wsam:Addressing wsp:Optional="true"> 

<wsp:Policy/> 

</wsam:Addressing> 

</wsp:Policy> 

and attach it the corresponding wsdl:portType so that it applies to all the wsdl:operations in its 

scope. 

B. Declare a policy as 

<wsp:Policy> 

<wsam:Addressing wsp:Optional="true"> 

<wsp:Policy/> 

</wsam:Addressing> 

</wsp:Policy> 

and attach it the corresponding wsdl:binding so that it applies to all the wsdl:operations in its 

scope. 

C. Declare a policy as 

<wsp:Policy> 

<wsam:Addressing> 

<wsp:Policy/> 

</wsam:Addressing> 

</wsp:Policy> 

and attach it the corresponding wsdl:binding so that it applies to all the wsdl:operations in its 

scope. 

D. Declare a policy as 

<wsp:Policy> 

<wsam:Addressing> 

<wsp:Policy/> 

</wsam:Addressing> 

</wsp:Policy> 

and attach it the corresponding wsdl:service so that it applies to all the wsdl:ports in the service scope. 

Answer:

Q6. Given that StockQuoteService is a Service class and StockQuoteProvider is a corresponding SEI for a web service. Which of the following options enable MTOM feature for proxy for the StockQuoteProvider SEI ? (Choose one) 

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

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

C. proxy = new StockQuoteService(new MTOMFeature()).getStockQuoteProvider() 

D. proxy = new StockQuoteService().getStockQuoteProvider(new RespectBindingFeature()) 

Answer:

Q7. 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 that services in the proposed Service Oriented Architecture should honor? (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 

Q8. An automobile manufacturer publishes a Web service for use by their suppliers. The manufacturer has stringent security requirements that require suppliers to verify their identity. Data integrity and confidentiality must be maintained between the client and the server. Which two meet all of these requirements? (Choose two.) 

A. X.509 and XKMS 

B. XACML and XKMS 

C. SSL and mutual authentication 

D. XML Encryption and XML Digital Signature 

E. Private network and XML Signature 

Answer: CD 

Q9. What are two valid facts about WS-I? (Choose two.) 

A. The I-Stack is a great development tool. 

B. The WS-I promotes and supports generic protocols for the interoperable exchange of messages. 

C. The WS-I governs languages and protocols such as SOAP, WSDL, and UDDI. 

D. The WS-I specifies specific rules that address either weaknesses in component specifications or issues of how to combine the collected technology. 

E. The WS-I has been a guiding force in creating StAX. 

Answer: BD 

Q10. A client sends a required SOAP header in a SOAP message. The server-side process determines that information in the header is invalid and generates a SOAP fault. What is the appropriate fault code for this type of SOAP fault? (Choose one) 

A. Client 

B. Server 

C. MustUnderstand 

D. VersionMismatch 

E. HeaderError 

F. InvalidHeader 

Answer: