Exam Code: 1Z0-897 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1Z0-897 Exam.

2016 Nov 1Z0-897 exams

Q31. When a SOAP envelope is optimized on the wire, the following can be said about the optimized infoset : (Choose one) 

A. optimized infoset contains xop:Include elements with href attribute pointing to attachment data 

B. optimized infoset contains mtom:Import with location attribute pointing to attachment data 

C. optimized infoset doesn't have any specific elements for MIME attachment. 

D. optimzed infoset's element contain cid:Content-ID as the text and Content-ID refers to the associated attachment 

Answer:


Q32. A developer wants to use WebServiceContext in the web service endpoint. Which of the following is the correct way to get WebServiceContext object ? (Choose one) 

A. @WebService 

public class MyService { 

@WebServiceContext 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

B. @WebService 

public class MyService { 

WebServiceContext ctxt; 

public String echo(String str) { ctxt = jndi.lookup("java:com/env/WebServiceContext"); } 

C. @WebService 

public class MyService { 

@Inject 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

D. @WebService 

public class MyService { 

@Resource 

WebServiceContext ctxt; 

public String echo(String str) { 

... 

Answer:


Q33. What does the <service-name-pattern> element in the following set of XML statements do: 

A. Applies the handlers specified in the <handler-chain> element to all the services with targetNamespace http://example.com/handlers. 

B. Applies the handlers specified in the <handler-chain> element to all services whose name is Hello*. 

C. Applies the handlers specified in the <handler-chain> element to all services whose names begin with Hello. 

D. Applies the handlers in the specified in the <handler-chain> element to the service whose name begins with Hello and targetNamespace is http://example.com/handlers. 

Answer:


Q34. In designing the security for your enterprise application with multiple Web services, you don't want that each of the services handle user authentication by itself. Then which of the following you can use in your design? 

A. enable secure conversation for each service 

B. a centralized Policy Decision Point (PDP) via XACML 

C. a Security Token Service (STS) 

D. use transport level security with SSL 

Answer:


Q35. Given that a developer implemented a web service using Stateless Session EJB: 

If a web service client invokes increment web service method twice consecutively, what must be the returned value after the second invocation ? (Choose one) 

A. 0 

B. 1 

C. 2 

D. 3 

E. Undefined 

Answer:


Abreast of the times 1Z0-897 practice exam:

Q36. Choose three ways to enable MTOM on a web service endpoint deployed in an EE container ? (Choose three) 

A. enabled by the container automatically 

B. by specifying @MTOM annotation on the endpoint's class 

C. by specifying <enable-mtom> in webservices.xml deployment descriptor 

D. by specifying a wsoma:MTOM policy in WSDLE. by specifying <mtom> element in sun-jaxws.xml 

Answer: BCD 


Q37. Which two statements are true about WSDL 1.1 and the Basic Profile? (Choose two.) 

A. WSDL does NOT recommend a specific system for user-defined datatypes. 

B. WSDL recommends the use of XML Schema for user-defined datatypes. 

C. WSDL mandates the use of XML Schema for user-defined datatypes. 

D. Basic Profile recommends the use of XML Schema for user-defined datatypes. 

E. Basic Profile mandates the use of XML Schema for user-defined datatypes. 

F. Basic Profile recommends the use of either XML Schema or DTD for user-defined datatypes. 

Answer: BE 


Q38. Which statement is true about StAX? 

A. StAX provides client parsing control with memory usage similar to DOM. 

B. StAX allows clients to start, pause and resume the parsing process. 

C. StAX is the only XML parsing approach supported with JAX-WS. 

D. StAX is a more efficient version of SAX, based on newer XML technology. 

Answer:


Q39. 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:


Q40. Which of the following option represents the behavior of the endpoint, when the addressing feature is enabled on the service with the use of @Addressing() annotation. 

A. The endpoint accepts only messages containing Addressing headers and rejects any messages not containing Addressing headers. 

B. The endpoint accepts any messages with or without any Addressing headers and does not validate addressing headers because "required" annotation element is not true. 

C. The endpoint accepts messages only if the messages contain wsa:Action header but does not require presence of any other addressing headers. 

D. The endpoints accepts messages with or without addressing headers. If the message contains wsa:Action header, it validates all other addressing headers in the message. 

Answer: