Está en la página 1de 84

Oracle 1z0-862: Practice Exam

QUESTION NO: 1
Which two statements are true about XML schemas and WSDL 1.1? (Choose two.)
A. http://schemas.xmlsoap.org/wsdl/ is the WSDL namespace for SOAP binding.
B. xsi is used as a prefix to represent the schema namespace as defined by XSD
C. XSD schemas are used as a formal definition of WSDL grammar.
D. xsd is used as a prefix to represent the schema namespace as defined by XSD
E. http://schemas.xmlsoap.org/wsdl/http/ is the WSDL namespace for SOAP binding.
Answer: C,D

QUESTION NO: 2
A company's new investment management Java application and a legacy stock trader
application need to communicate, but they use different JMS implementations. A
developer decides to implement a JMS bridge to solve the problem.Which two
advantages does this pattern provide? (Choose two.)
A. It converts the interface of a class into another interface that clients expect.
B. It decouples an abstraction from its implementation so that the two can vary
independently.
C. It dynamically attaches additional responsibilities to an object.
D. It optimizes network traffic.
E. It is vendor independent.
Answer: B,E

QUESTION NO: 3
Which situation requires the client to use the Dispatch interface to access the Web
service?
A. The client and the server are on different platforms.
B. The client has access to the portable artifacts, but not to the WSDL.
C. The client has access to the WSDL, but not to the portable artifacts.
D. The client will access a REST-based service.
Answer: D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


QUESTION NO: 4
What are two features of a WSDL 1.1 document? (Choose two.)
A. Service defines a collection of related endpoints.
B. Service describes the message's payload using XML.
C. Service assigns an Internet address to a specific binding.
D. Porttype declares complex data types and elements used elsewhere.
E. Porttype elements are used to group a set of abstract operations.
F. Porttype defines a concrete protocol and data format specification.
Answer: A,E

QUESTION NO: 5
Which three can an EJB-based endpoint use? (Choose three.)
A. HTTP sessions
B. Java EE 5 declarative security
C. Java EE 5 programmatic security
D. client-demarcated transactions
E. container-managed transactions
Answer: B,C,E

QUESTION NO: 6
What are two communication modes supported by JAX-WS? (Choose two.)
A. Synchronous RPC
B. Dynamic Service Binding
C. Dynamic Proxy
D. Endpoint Invocation
E. Dispatch
Answer: C,E

QUESTION NO: 7
A company is refactoring an existing website to use Web services clients. The application
retrieves lists of parts and displays them to the users in a browser window. Previously,
the data was stored as files on the web server and, in order to access the files, the user
"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


would simply click on a hyperlink. Now the data must be dynamically generated via a
service that another developer has created. They want the easiest way to refactor their
website to use Web services.Which three technologies should they use? (Choose three.)
A. SOAP
B. REST
C. Javascript
D. XML
E. JSON
F. Java
Answer: B,C,E

QUESTION NO: 8
A JAXR client has established connection with a UDDI registry and needs to get a
service binding from the registry.What is required to accomplish this task?
A. find the appropriate concept and then find the service binding associated with that
concept
B. find the appropriate authentication token and then find the service binding
associated with that authentication token
C. find the appropriate organization, get the tModel associated with that organization, and
then find the service binding associated with the tModel
D. find the appropriate organization, find the services associated with that organization,
and then find the service binding associated with the service
Answer: D

QUESTION NO: 9
What are three benefits of using SSL to connect to a Web service without mutual
authentication?(Choose three.)
A. The server is assured of the client's identity if the client issues the certificate.
B. The client is assured of the server's identity.
C. Message integrity is preserved between the client and the server.
D. The communication between the client and the server is still logged.
E. The communication between the client and the server is encrypted.
F. Using SSL over HTTP incurs less overhead than HTTPS.

"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


Answer: B,C,E
Explanation:

QUESTION NO: 10
A developer is creating a servlet-based endpoint for a new payroll application.What are
three requirements for the service? (Choose three.)
A. It needs to be packaged as a WAR file.
B. It needs to be packaged as a JAR file.
C. It requires a META-INF folder.
D. It requires a WEB-INF folder.
E. webservices.xml is required.
F. web.xml is required.
Answer: A,D,F

QUESTION NO: 11
A developer is creating an XML schema that is Basic Profile compliant, and has elements
that require long integer values.
Given the code:
<Schema targetNamespace="http://sun.cert/types"
xmlns:ns0="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://sun.cert/xsdTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<complexType name="Foo">
<sequence>
<!-- insert code here -->
</sequence>
</complexType>
</schema>
Assuming that no other namespace declarations exist, which two elements use the long

"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


type that is defined in the http://www.w3.org/2001/XMLSchema namespace? (Choose
two.)
A. <element name="length" type="long"/>
B. <element name="length type="xsi:long"/>
C. <element name="length" type="xsd:long"/>
D. <element name="length" type="ns0:long"/>
E. <element name="length" type="integer"/>
F. <element name="length" type="xsd:integer"/>
Answer: A,D

QUESTION NO: 12
A developer needs to define an array of long integers in their Basic Profile compliant
Web service and is given the following code fragment for analysis:
<Schema targetNamespace="http://sun.cert/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas/xmlsoap.org/wsdl">
<!-- insert code here -->
</schema>
Assume all XML fragments are well-formed.According to the WS-I Basic Profile 1.1,
which type definition can be used to define an array of longs?
A. <xsd:complexType name="longArray">
<xsd:array>
<xsd:element name="item" type="xsd:long"/>
</xsd:array>
</xsd:complexType>
B. <xsd:complexType name="longArray">
<xsd:sequence>
<element name="item" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
C. <xsd:complexType name="longArray">
<xsd:array>
<xsd:element name="item" type="xsd:long" minOccurs="0" maxOccurs="unbounded"/>
</xsd:array>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


</xsd:complexType>
D. <xsd:complexType name="longArray">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="5" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
E. <xsd:complexType name="longArray">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="5" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
Answer: D

QUESTION NO: 13
A developer is creating an XML schema using the xsd:all operator.Given the code:
<types>
<schema targetNamespace="http://sun.cert/types" xmlns:tns="http://sun.cert/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Person">
<xsd:all>
<!-- insert code here -->
</xsd:all>
</xsd:complexType>
</schema>
</types>
Which two element definitions, when inserted into the given schema fragment, result in a
correct schema type definition? (Choose two.)
A. <xsd:element name="first" type="xsd:string"/>
B. <xsd:element name="items" type="xsd:long" maxOccurs="5"/>
C. <xsd:element name="last" type="xsd:string" minOccurs="1" maxOccurs="1"/>
D. <xsd:element name="first" type="xsd:string" minOccurs="0" maxOccurs="5"/>
E. <xsd:element name="last" type="xsd:string" minOccurs="1" maxOccurs="5"/>
F. <xsd:element name="ssn" type="xsd:string" minOccurs="1"
maxOccurs="unlimited"/>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


Answer: A,C

QUESTION NO: 14
A developer must create a new stock monitoring application using SOAP.
Given the code:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://sun.cert/">
<s:Header>
<ns1:transaction>
<user>root</user>
<transid>9b3e64e326537b4e8c0ff19e953f9673</transid>
</ns1:transaction>
</s:Header>
<s:Body>
<m:StockQuote xmlns:m="http://sun.cert/bar/">
<Quote>
<ns1:symbol>SUNW</ns1:symbol>
<ns1:companyname name="Sun"/>
</Quote>
</s:Body>
</s:Envelope>
Which statement is true about this SOAP message?
A. It is NOT well-formed.
B. It contains a mandatory header block.
C. It is WS-I Basic Profile 1.1 compliant.
D. It does NOT contain the correct namespace declarations.
E. The transid should be blowfish encrypted.
F. http://sun.cert/bar/ is not a valid stock quote service.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


Answer: A

QUESTION NO: 15
A team of developers is describing a set of endpoints in their new SOA application.
Given the WSDL extract:
<service name="InventoryServices">
<port name="PurchaseOrder" binding="tns:POBinding">
<soap:address location="http://192.168.0.2:8080/inventory"/>
</port>
<port name="Invoice" binding="tns:InvoiceBinding">
<soap:address location="http://192.168.0.2:8080/inventory"/>
</port>
</service>
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.
E. The extract is WS-I Basic Profile 1.1 conformant because both port element names are
different.
F. The extract is WS-I Basic Profile 1.1 conformant because the port, binding,
and service element combinations are unique.
Answer: B

QUESTION NO: 16
Which two statements are true about XML schemas that conform to WS-I Basic Profile
1.1? (Choose two.)

"Pass Any Exam. Any Time." - 100% Pass Guarantee

Oracle 1z0-862: Practice Exam


A. A description may use any construct from XML Schema.
B. A description may use any construct of XML Schema, except for arrays.
C. A description must use XML Schema recommendations as the basis of userdefined
datatypes and structures.
D. A description may use any construct of XML Schema, except for defining userdefined
datatypes and structures.
E. RESTful XML schemas may also draw from the XML-Rest Schema.
Answer: A,C

QUESTION NO: 17
A developer is defining a SOAP binding in the WSDL for their new service.Which XML
fragment is WSDL 1.1 compliant?
A. <soap:binding transport=Http://www.w3.org/2001/XMLSchema?style="document"/>
B. <soap:binding transport=Http://schemas.xmlsoap.org/wsdl/soap/?style="document"/>
C. <soap:binding transport=Http://schemas.xmlsoap.org/soap/http?style="document"/>
D. <soap:binding transport=Http://schemas.xmlsoap.org/soap?style="rpc"/>
Answer: C

QUESTION NO: 18
Which fragment is Basic Profile 1.1 compliant?
A. <port name="testWS"> <operation name="runit">
<input message="tns:runit"/>
<output message="tns:runitResponse"/>
</operation>
</port>
<binding name="testWSPortBinding" type="tns:testWS">
...
<operation name="runit">
<soap:operation soapAction="tns:runit"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

10

Oracle 1z0-862: Practice Exam


B. <portType name="testWS">
<operation name="runit">
<input message="tns:runit"/>
<output message="tns:runitResponse"/>
</operation>
<operation name="saveit">
<input message="tns:saveit"/>
<output message="tns:saveitResponse"/>
</operation>
</portType>
<binding name="testWSPortBinding" type="tns:testWS">
...
<operation name="runit">
<soap:operation soapAction="tns:runit"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
C. <port name="testWS">
<operation name="runit">
<input message="tns:runit"/>
<output message="tns:runitResponse"/>
</operation>
</port>
<binding name="testWSPortBinding" type="tns:testWS">
...
<operation name="runit">
<soap:operation soapAction="runit"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
D. <portType name="testWS">
<operation name="runit">
<input message="tns:runit"/>
<output message="tns:runitResponse"/>
</operation>
</portType>
<binding name="testWSPortBinding" type="tns:testWS">
"Pass Any Exam. Any Time." - 100% Pass Guarantee

11

Oracle 1z0-862: Practice Exam


...
<operation name="runit">
<soap:operation soapAction="runit"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
Answer: D

QUESTION NO: 19
For a company's new software, the developers are constructing abstract definitions of the
data being communicated by their document style Web service.
Given the targetNamespace:
xmlns:xsda="http://sun.com/sample.xsd"
Which is a valid wsdl:message containing a wsdl:part?
A. <message name="GetInput">
<part name="body" attribute="tns:InputRequest"/>
</message>
B. <message name="GetInput">
<part name="body" element="tns:InputRequest"/>
</message>
C. <message name="GetInput">
<part name="body" attribute="xsda:InputRequest"/>
</message>
D. <message name="GetInput">
<part name="body" element="xsda:InputRequest"/>
</message>
E. <message name="GetInput">
<part name="body" element="xsd:string"/>
</message>
F. <message name="GetInput">
<part name="body" element="InputRequest"/>
</message>
Answer: D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

12

Oracle 1z0-862: Practice Exam


QUESTION NO: 20
According to the XML-to-Java mappings used by JAX-WS, which three elements
or attribute declarations are mapped to a Java primitive wrapper class (for example,
java.lang.Short)? (Choose three.)
A. <xsd:element name="age" type="xsd:short" minOccurs="0"/>
B. <xsd:element name="age" type="xsd:short" nillable="true"/>
C. <xsd:element name="age" type="xsd:short" nillable="false"/>
D. <xsd:attribute name="required" type="xsd:boolean" use="optional"/>
E. <xsd:attribute name="required" type="xsd:boolean" use="required"/>
F. <xsd:attribute name="required" type="xsd:boolean" nillable= false/>
Answer: A,B,D

QUESTION NO: 21
Which two statements are true about the role of XML schemas in Web services? (Choose
two.)
A. DTDs provide stricter data typing than XML schemas.
B. XML schemas can be used to validate the organization of XML documents.
C. XML schemas contain a vocabulary, content model and data types.
D. DTDs are easier to map to Java than XML schemas, and so remain more popular.
E. The W3C recommends that XML schemas be referred to as XSD.
F. The W3C has designated that XML schemas be referred to as WXS.
Answer: B,C

QUESTION NO: 22
Which two statements are true about the WSDL 1.1 part element? (Choose two.)
A. Global schema complexTypes must be referenced by the type attribute.
B. Global schema complexTypes must be referenced by the complexType attribute.
C. Global schema elements must be referenced by the type attribute.
D. Global schema simple types must be referenced by the element attribute.
E. Global schema elements must be referenced by the element attribute.
Answer: A,E

QUESTION NO: 23
"Pass Any Exam. Any Time." - 100% Pass Guarantee

13

Oracle 1z0-862: Practice Exam


Which EAR file can a Java EE 5 compatible application server refuse to accept for
deployment?
A. no application.xml one EJB module with Java EE 5 version of ejb-jar.xml one EJB
module with Java EE 1.4 version of ejb-jar.xml one web module with Java EE 1.4
version of ejb-jar.xml
B. Java EE 5 version of application.xml one EJB module with Java EE 5 version of ejbjar.
xml one EJB module with Java EE 1.4 version of ejb-jar.xml one web module with
Java EE 1.4 version of web.xml
C. J2EE 1.3 version of application.xml one EJB module with Java EE 5 version of ejbjar.
xml one EJB module with Java EE 1.4 version of ejb-jar.xml one web module with
Java EE 1.4 version of ejb-jar.xml
D. J2EE 1.4 version of application.xml one EJB module with Java EE 5 version of ejbjar.
xml one EJB module with Java EE 1.3 version of ejb-jar.xml one web module with
Java EE 1.3 version of ejb-jar.xml
Answer: A

QUESTION NO: 24
Which two statements are true about XSD under WSDL 1.1? (Choose two.)
A. The element form must be used.
B. The attribute form must be used.
C. The XSD type system can be used to define type even if the actual format is not XML.
D. xsd:abstractType must be used for generic type descriptions.
E. xsd:anyType must be used for generic type descriptions.
F. xsd:object must be used for generic type descriptions.
Answer: C,E

QUESTION NO: 25
A developer must describe a message that contains multiple parts using non-primitive
data types. Which two code fragments produce equivalent composite message structure
definitions? (Choose two.)
A. <types>
<schema .... >
<complexType name="FOO" type="tns:FOOType"/>
<element name="FOOType">
...
"Pass Any Exam. Any Time." - 100% Pass Guarantee

14

Oracle 1z0-862: Practice Exam


</element >
<complexType name="BAR" type="tns:BARType"/>
<element name="BARType">
...
</element >
</schema>
</types>
<message name="FOO">
<part name="FOO" complexType="tns:FOO"/>
<part name="BAR" complexType="tns:BAR"/>
</message>
B. <types>
<schema .... >
<element name="FOO" type="tns:FOOType"/>
<complexType name="FOOType">
...
</complexType>
<element name="BAR" type="tns:BARType"/>
<complexType name="BARType">
...
</complexType>
</schema>
</types>
<message name="FOO">
<part name="FOO" element="tns:FOO"/>
<part name="BAR" element="tns:BAR"/>
</message>
C. <types>
<schema .... >
...
<complexType name="Composite">
<choice>
<element name="FOO" minOccurs="1" maxOccurs="1" type="tns:FOOType"/>
<element name="BAR" minOccurs="0" maxOccurs="unbounded"
type="tns:BARType"/>
</choice>
</complexType>
</schema>
</types>
<message name="FOO">
<part name="composite" type="Composite"/>
</message>
D. <types>
<schema .... >
...
<complexType name="Composite">
<choice>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

15

Oracle 1z0-862: Practice Exam


<element name="FOO" minOccurs="1" maxOccurs="1" type="tns:FOOType"/>
<element name="BAR" minOccurs="0" maxOccurs="unbounded"
type="tns:BARType"/>
</choice>
</complexType>
</schema>
</types>
<message name="FOO">
<part name="composite" type="tns:Composite"/>
</message>
Answer: B,D

QUESTION NO: 26
Which two statements are true about the ports in a Web service in WSDL 1.1? (Choose
two.)
A. None of the ports communicate with each other.
B. The output of one port can be the input of another.
C. Several ports can share a port type.
D. Ports and port types are interchangeable.
E. There can be only one port of a particular port type.
Answer: A,C
Explanation:

QUESTION NO: 27
Which three are standard defined MIME binding types according to WSDL 1.1? (Choose
three.)
A. mime encoded
B. multipart/related
C. soap related
D. text/xml
E. uddi encoded
F. application/x-www-form-urlencoded
Answer: B,D,F

QUESTION NO: 28
"Pass Any Exam. Any Time." - 100% Pass Guarantee

16

Oracle 1z0-862: Practice Exam


The WSIT project implements a number of WS-* specifications to aid developers in
creating secure and interoperable services.What are two parts of the WS-specifications?
(Choose two.)
A. WS-ReliableMessaging
B. WS-Bootstrapping
C. WS-Eventing
D. WS-Policy
E. WS-WSITrust
Answer: A,D

QUESTION NO: 29
A developer is analyzing an existing Web service with performance problems. The
analysis reveals the service employs SOAP over HTTP. When the size of the encoded
binary files grew with changing business requirements, the service slowed.What are two
effective solutions for this problem? (Choose two.)
A. Separating the XML and binary content with WS-Filtering implemented in WSIT will
improve efficiency.
B. XML documents larger than 1 KB with binary encoding should be optimized.
C. WS-Addressing can ease congestion by routing messages over other protocols.
D. For existing services, the most effective solution is to increase the available
bandwidth.
E. MTOM can reduce both processing and bandwidth required by SOAP with
attachments.
Answer: B,E

QUESTION NO: 30
Given:
1. try { // Call Web service Operation
2. org.me.calculator.client.CalculatorWS port =
3. service.getCalculatorWSPort();
4. // TODO initialize WS operation arguments here

"Pass Any Exam. Any Time." - 100% Pass Guarantee

17

Oracle 1z0-862: Practice Exam


5. int i = 3;
6. int j = 4;
7. // TODO process result here
8. int result = port.add(i, j);
9. out.println("<p>Result: " + result);
10.
11. } catch (Exception ex) {
12. out.println("<p>Exception: " + ex);
13. }
Assume Reliable Messaging is used and the code is correct except for what is missing at
line 10.Which code fragment must be placed at line 10?
A. Close the port object with ((Closeable)port).close(); after testing result is positive.
B. Close the port with port.close();
C. Closing the port object is optional, but port.close(); will work.
D. Close the port object with ((Closeable)port).close();
Answer: D

QUESTION NO: 31
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: B,E

QUESTION NO: 32

"Pass Any Exam. Any Time." - 100% Pass Guarantee

18

Oracle 1z0-862: Practice Exam


Which two statements are true about Java clients that use a security token service (STS)
supported by the security features of WSIT? (Choose two.)
A. The client only requires a keystore.
B. STS requires a default user name configuration.
C. Using an STS-issued token requires a keystore and a truststore.
D. HTTPS must be configured.
E. An authorized client receives a token digitally signed by the STS.
Answer: C,E

QUESTION NO: 33
Which two code fragments are valid XML schema anonymous complex type definitions?
(Choose two.)
A. <xsd:sequence name="foo">
<xsd:complexType>
<xsd:element name="bar1"/>
<xsd:element name="bar2"/>
</xsd:complexType>
</xsd:sequence>
B. <xsd:complexType name="foo">
<xsd:sequence>
<xsd:element name="bar1"/>
<xsd:element name="bar2"/>
</xsd:sequence>
</xsd:complexType>
C. <xsd:element name="foo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="bar1"/>
<xsd:element name="bar2"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
D. <xsd:element name="foo">
<xsd:sequence>
<xsd:complexType>
<xsd:element name="bar1"/>
<xsd:element name="bar2"/>
</xsd:complexType>
</xsd:sequence>
</xsd:element>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

19

Oracle 1z0-862: Practice Exam


Answer: B,C

QUESTION NO: 34
Which Java type can be used to represent arbitrary XML data in a JAX-WS service
endpoint interface?
A. javax.xml.soap.SOAPNode
B. javax.xml.soap.SOAPPart
C. javax.xml.soap.SOAPElement
D. javax.xml.soap.SOAPException
E. javax.xml.soap.SOAPMessage
F. javax.xml.soap.Node
Answer: C

QUESTION NO: 35
A document-style service defines a document passed to the Web service using
xsd:anyType in the WSDL file that describes the service. How should the document be
typed in Java?
A. use javax.xml.soap.Element
B. use javax.xml.soap.Node
C. use javax.xml.soap.SOAPHeader
D. use javax.xml.soap.SOAPElement
E. use javax.xml.soap.SOAPFault
F. use javax.xml.soap.SOAPBodyElement
Answer: D

QUESTION NO: 36
A developer is creating a SOAP logger that retrieves and catalogs the contents of header
elements containing transaction information.Given the SOAP header element containing
the transaction data:
<t:Transaction SOAP-ENV:mustUnderstand="1"
xmlns:t="http://sun.com/orders">64eDXVNR9834</t:Transaction>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

20

Oracle 1z0-862: Practice Exam


Which two code fragments retrieve this element from the headers included in the SOAP
message without removing it? (Choose two.)
A. examineHeaderElements("t:Transaction")
B. extractHeaderElements("http://sun.com/orders")
C. examineHeaderElements("http://sun.com/orders")
D. extractHeaderElements(SOAPConstants.URI_SOAP_ACTOR_NEXT)
E. extractMustUnderstandHeaderElements("http://sun.com/orders")
F. examineMustUnderstandHeaderElements("http://sun.com/orders")
Answer: C,F

QUESTION NO: 37
Given:
1. public boolean handleRequest(MessageContext context){
2. try{
3. SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
4. SOAPMessage message = soapCntxt.getMessage();
5. message.writeTo(logStream);
6. }catch(javax.xml.soap.SOAPException se){
7. throw new javax.xml.ws.WebServiceException (se);
8. }
9. }
The handlRequest method (lines 1-9) is implemented by a JAX-WS handler. The
logStream is a reference to some type of java.io.OutputStream.Which two statements are
true? (Choose two.)
A. If the handler is associated with a JAX-WS generated stub, it will write outgoing
SOAP messages to the logStream object.
B. If the handler is associated with a JAX-WS generated stub, it will write incoming
SOAP messages to the logStream object.
C. If the handler is associated with a JAX-WS service endpoint, it will write outgoing
SOAP messages to the logStream object.
D. If the handler is associated with a JAX-WS service endpoint, it will write incoming
SOAP messages to the logStream object.

"Pass Any Exam. Any Time." - 100% Pass Guarantee

21

Oracle 1z0-862: Practice Exam


E. It will write all incoming and outgoing SOAP messages to the logStream object.
F. logStreams are NOT Web service friendly.
Answer: A,D

QUESTION NO: 38
Given:
1. public boolean handleRequest(MessageContext context){
2. try{
3. SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
4. SOAPMessage message = soapCntxt.getMessage();
5. message.writeTo(logStream);
6. }catch(javax.xml.soap.SOAPException se){
7. throw new javax.xml.ws.WebServiceException (se);
8. }
9. }
The handleRequest method (lines 1-9) is implemented by a JAX-WS handler used for
logging. The method encounters an error and throws a WebServiceException.Which
statement is true?
A. If the method is implemented by a client-side handler, it will cause a SOAP fault to be
generated.
B. If the method is implemented by a server-side handler, it will cause a SOAP fault to be
generated.
C. If the method is implemented by a client-side handler, the message will continue to be
processed by the handler chain.
D. If the method is implemented by a server-side handler, the message will continue to be
processed by the handler chain.
E. SOAP Faults must be manually added.
Answer: B

QUESTION NO: 39
Given:
"Pass Any Exam. Any Time." - 100% Pass Guarantee

22

Oracle 1z0-862: Practice Exam


<message name="sayFOO">
<part name="parameters" element="tns:sayFOO"/>
</message>
<message name="sayFOOResponse">
<part name="parameters" element="tns:sayFOOResponse"/>
</message>
<message name="UDException">
<part name="fault" element="tns:UDException"/>
</message>
<portType name="UserDefinedExceptionWS">
<operation name="sayFOO">
<input message="tns:sayFOO"/>
<output message="tns:sayFOOResponse"/>
<fault name="UDException" message="tns:UDException"/>
</operation>
</portType>
Which endpoint method declaration is generated by this service?
A. public String sayFOO(String name){
B. public String sayFOO(String name) throws SOAPFaultException{
C. public String sayFOO(String name) throws RemoteException, UDException{
D. public String sayFOO(String name) throws UDException{
Answer: D

QUESTION NO: 40
A client sends a required SOAP header as 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?
A. Client
B. Server
"Pass Any Exam. Any Time." - 100% Pass Guarantee

23

Oracle 1z0-862: Practice Exam


C. MustUnderstand
D. VersionMismatch
E. HeaderError
F. InvalidHeader
Answer: A
Explanation:

QUESTION NO: 41
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 clients.
C. Application exceptions are always propagated to JAX-WS clients as
RemoteExceptions.
D. Application exceptions are always propagated to JAX-WS clients as
WebServiceExceptions.
E. Application exceptions are always propagated to JAX-WS clients as
SOAPFaultExceptions.
Answer: A

QUESTION NO: 42
A company uses Web services to exchange mortgage and credit data as well as digital
versions of associated documents. The data is confidential and it is common for the
service and client to exchange applications, credit results, reports and more in a
request/response format. Recently, the company has become concerned about the
substantial cost of processing and message encryption with a PKI approach. What can be
done to cut costs?
A. use MTOM to optimize the messages and provide data confidentiality via XML
Digital Signature
B. because of the weak adoption of WS-SecureConversation on Java platforms, consider
using Kerberos
C. use HTTPS as it is both economical and adequate
D. use WS-SecureConversation and MTOM to reduce the processing overhead

"Pass Any Exam. Any Time." - 100% Pass Guarantee

24

Oracle 1z0-862: Practice Exam


Answer: D

QUESTION NO: 43
Which statement is true about using WCF to access a Web service created with WSIT?
A. The client and service relationship can be established by adding a service reference in
Visual Studio.
B. Visual Studio uses a wizard that creates a WSIT configuration file that accesses Java
and .Net services.
C. Discovery of features and policies is only supported for Java clients.
D. WCF accesses Java-based WSIT services only via C#.
Answer: A

QUESTION NO: 44
A Java developer is testing the performance of the interoperability features of the
company's WSIT Web services for customers who use .Net 3.0. To make sure everything
is functioning correctly, the developer obtains a copy of Visual Studio and creates a WCF
client for the company's Web services.What are two important factors that the developer
must consider? (Choose two.)
A. ASP.Net clients are NOT supported.
B. Similar to Java, a class file implements the client functionality.
C. The only way to create a WCF client for a WSIT service is to buy Visual Studio.
D. Svcutil.exe creates a C# proxy for the services.
E. .Net 3.0 does NOT support discovery of WSIT service features via the WSDL.
Answer: B,D

QUESTION NO: 45
Which two statements are true about building and running a WCF client for
WSIT Web services?(Choose two.)
A. .Net can create distributable console applications that are clients for WSIT services.
B. Visual Studio requires the use of menus and wizards to build the client.
C. .Net 3.0 targets four different platforms for clients that can be selected at runtime.
D. WCF clients for WSIT are not compatible with Visual Studio's integrated debugger.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

25

Oracle 1z0-862: Practice Exam


E. .Net 3.0 supports command-line builds when source files are available.
Answer: A,E

QUESTION NO: 46
Given the Java fragment and schema:
1. //-- Java code fragment
2. public class PurchaseOrder{
3. public javax.xml.datatype.XMLGregorianCalendar orderDate;
4. }
5. //-- Schema fragment
6. <xs:complexType name="purchaseOrder">
7. <xs:sequence>
8. <xs:element name="orderDate" type="xs:anySimpleType"
9. minOccurs="0"/>
10. </xs:sequence>
11. </xs:complexType>
Which two statements are true about .Net and WCF interoperability for this data?
(Choose two.)
A. The GregorianCalendar maps to an equivalent date type in both Java and .Net.
B. .Net will generate code with the calendar as a string that functions as well as a date.
C. .Net will generate code with the calendar as a string that is not type equivalent.
D. Use of the @XmlSchemaType annotation causes .Net to properly map to a date.
E. Casting in the case of WSIT services is an effective approach for the WCF client.
Answer: C,D

QUESTION NO: 47
Given the Java fragment and schema:
1. //-- Java code fragment

"Pass Any Exam. Any Time." - 100% Pass Guarantee

26

Oracle 1z0-862: Practice Exam


2. public enum USState {MA, NH}
3. //-- Schema fragment
4. <xs:simpleType name=xsState?
5. <xs:restriction base=xs:string?
6. <xs:enumeration value=NH?/>
7. <xs:enumeration value=MA?/>
8. </xs:restriction>
9. </xs:simpleType>
10. // .NET auto generated code from schema
11. public enum usState { NH, MA }
Which statement is true about .Net and WCF interoperability for this data?
A. Based on the fragment, enumerations map well between Java and .Net.
B. The subtle differences in the variable names make it clear these enumerations are NOT
interoperable.
C. The XML schema reveals the type on the enumeration is lost across the platforms.
D. This exchange would be interoperable if the annotation @XmlEnum was applied to
the Java method.
Answer: A

QUESTION NO: 48
A company is designing a new application to track the materials used by their
construction firm on a large industrial construction project. They want their suppliers to
be able to see what materials the company needs for a competitive bid process.As the
architect for the Service Oriented Architecture, why would a developer use UDDI?
A. It defines the Web services as a resource.
B. It defines a stateful behavior for the participating Web services.
C. It provides a location where services can be dynamically discovered.
D. It defines a stateless behavior for the participating Web services.
E. It decouples the Web service from its implementation.
Answer: C

"Pass Any Exam. Any Time." - 100% Pass Guarantee

27

Oracle 1z0-862: Practice Exam


QUESTION NO: 49
A company is building a customer relationship management system that is to be
deployed on a customer's network, and they want software functions to be reused and
combined in different modules in the system. The Director of Technology has
determined that the new system should utilize both Web services and a Service
Oriented Architecture (SOA).Which two statements about Web services in an SOA are
correct? (Choose two.)
A. A Web service must be discovered from a UDDI registry in an SOA.
B. SOA and Web services both use the HTTP protocol at the transport layer.
C. A Web service must publish itself to a UDDI registry to become part of an SOA.
D. SOA is a way to design a system and Web services are a possible implementation.
E. SOA is used for stateless invocations, and Web services for stateful invocations.
F. SOA emphasizes the concept of service encapsulation and Web services fulfill a
service contract.
Answer: D,F

QUESTION NO: 50
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: A,C,F

"Pass Any Exam. Any Time." - 100% Pass Guarantee

28

Oracle 1z0-862: Practice Exam


QUESTION NO: 51
A developer is building a real-time stock market monitoring application. Due to the
volume of stock information pulled from the financial markets and the delays
encountered when receiving data back from the servers, the developer decides to
implement the asynchronous interaction pattern.Which three are implementations of this
pattern? (Choose three.)
A. client-side push
B. client-side pull
C. server-side push
D. server-side pull
E. JMS-based
F. JAXB-based
Answer: B,C,E

QUESTION NO: 52
A developer has been implementing a Java application that reads in pharmaceutical
information via Web service calls, scans through the data, and presents warnings
about possible drug interactions. Performance has been slow, due to the large payloads
returned from the Web services.Which two statements are true about implementing the
Web Service Cache pattern? (Choose two.)
A. Caching must occur on the server.
B. Caching can occur on the client.
C. It will improve performance of updates.
D. It encapsulates a request as an object.
E. It will improve performance for non-volatile data.
Answer: B,E

QUESTION NO: 53
Click the Exhibit button.
***MISSING EXHIBIT***

"Pass Any Exam. Any Time." - 100% Pass Guarantee

29

Oracle 1z0-862: Practice Exam


<SOAP-ENV:Envelope xmlns:SOAPENV="
http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
Invalid Message
</faultstring>
<faultactor>http://flashnsizzle.com/order</faultactor>
<detail>
<PO:order xmlns:PO="http://flashnsizzle.com/orders/">
Incomplete order
</PO:order>
<PO:confirmation xmlns:PO="http://flashnsizzle.com/confirm">
Invalid address
</PO:confirmation>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
A developer is implementing a Java client for a Web service. Occasionally the
Web service call fails unexpectedly, so the developer wants to print out the error
messages being returned from the call.Which two code fragments retrieve the faultcode,
faultstring, and faultactor from the message? (Choose two.)
A. try {
...
"Pass Any Exam. Any Time." - 100% Pass Guarantee

30

Oracle 1z0-862: Practice Exam


// business logic to access a Web service method
...
} catch (SOAPFaultException sfe) {
SOAPFault fault = sfe.getFault();
System.out.println("An error occurred:");
System.out.println("actor:"+fault.getFaultActor());
System.out.println("code:"+fault.getFaultCode());
System.out.println("message:"+fault.getFaultString());
} catch (Exception ex) {
ex.printStackTrace();
}
B. try {
...
// business logic to access a Web service method
...
} catch (SOAPFaultException sfe) {
SOAPFault fault = sfe.getFault();
FaultElement code = fault.getElementsByTagName("faultcode");
FaultElement string = fault.getElementsByTagName("faultstring");
FaultElement actor = fault.getElementsByTagName("faultactor");
System.out.println("An error occurred:"); System.out.println("actor:"+actor.getValue());
System.out.println("code:"+code.getValue());
System.out.println("message:"+actor.getValue());
} catch (Exception ex) {
ex.printStackTrace();
}
C. try {
...
// business logic to access a Web service method
...
} catch (SOAPFaultException sfe) {
SOAPFault fault = sfe.getFault();
NodeList code = fault.getElementsByTagName("faultcode");
NodeList string = fault.getElementsByTagName("faultstring");
NodeList actor = fault.getElementsByTagName("faultactor");
System.out.println("An error occurred:");
System.out.println("actor:"+ actor.item(0).getNodeValue());
System.out.println("code:"+ code.item(0).getNodeValue());
System.out.println("message:"+ string.item(0).getNodeValue());
} catch (Exception ex) {
ex.printStackTrace();
}
D. try {
...
// business logic to access a Web service method
...
} catch (SOAPFaultException sfe) {
"Pass Any Exam. Any Time." - 100% Pass Guarantee

31

Oracle 1z0-862: Practice Exam


SOAPFault fault = sfe.getFault();
Node code = fault.getElementsByTagName("faultcode");
Node string = fault.getElementsByTagName("faultstring");
Node actor = fault.getElementsByTagName("faultactor");
System.out.println("An error occurred:");
System.out.println("actor:"+actor.getNodeValue());
System.out.println("code:"+code.getNodeValue());
System.out.println("message:"+ string.getNodeValue());
} catch (Exception ex) {
ex.printStackTrace();
}
E. try {
...
// business logic to access a Web service method
...
} catch (SOAPFaultException sfe) {
SOAPFault fault = sfe.getFault();
System.out.println("An error occurred:");
System.out.println("actor:"+fault.getSOAPFaultActor());
System.out.println("code:"+fault.getSOAPFaultCode());
System.out.println("message:"+fault.getSOAPFaultString());
} catch (Exception ex) {
ex.printStackTrace();
}
Answer: A,C

QUESTION NO: 54
A student developer has created a new library of math functions to share with friends in a
linear algebra class. The developer is having difficulty getting people to come over to the
dorm to see the new code library, so he decides to deploy it as a Web service so that
everyone can enjoy the features via the Internet. One of the functions has this WSDL
definition:
<portType name="MyMathLib">
<operation name="incCtr">
<input message="tns:incCtr"/>
</operation>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

32

Oracle 1z0-862: Practice Exam


</portType>
Which two statements are true about this Web service? (Choose two.)
A. This is an asynchronous receive.
B. This is an asynchronous send.
C. The client must use SOAPFaultException to display any errors.
D. It must send a SOAP fault back to the sender.
E. It must NOT send a SOAP fault back to the sender.
Answer: B,E

QUESTION NO: 55
A company is building a Java EE 5 purchase order processing system. This system will
integrate with an external invoicing system as part of the purchase order approval
process. A developer created a new client application to access the invoicing system
using request-response, but a new service call is receiving errors every time it invokes the
necessary Web service.Which statement is true about the Body element of the SOAP
reply message?
A. It must NOT contain any fault elements.
B. It will contain a fault element for each error.
C. It will contain exactly one fault element.
D. It must contain zero or one fault element.
E. It must contain an array of fault elements.
Answer: D

QUESTION NO: 56
Which two statements are true about a UDDI registry? (Choose two.)
A. All services are interoperable.
B. Applications can perform case sensitive searches in the registry server.
C. Users must be authenticated.
D. It requires SOAP over HTTP.
E. UDDI tightly couples the Web service to the client so that the service can be used.
Answer: B,D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

33

Oracle 1z0-862: Practice Exam


QUESTION NO: 57
A Java EE 5 application contains business logic composed of EJB3 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
two occur if EJB components are exposed as Web services? (Choose two.)
A. New applications can use published interfaces to access existing applications.
B. Current local clients must access the Web services in the application as an URL.
C. WSDL documents define common types for all clients.
D. Current remote clients must switch from RMI to Web service access.
E. Delivery of messages is guaranteed for local clients.
Answer: A,C

QUESTION NO: 58
Which two statements are true about the Web services? (Choose two.)
A. SOAP messages are compressed during transport.
B. You must implement session tracking via HTTP cookies.
C. The WSDL defines services as collections of network endpoints.
D. All data shared between Java and non-Java components must be in XML format.
E. Data interchange is standardized in XML.
F. Stateful Web services must be implemented in a heterogeneous environment.
Answer: C,E

QUESTION NO: 59
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

"Pass Any Exam. Any Time." - 100% Pass Guarantee

34

Oracle 1z0-862: Practice Exam


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: A,C

QUESTION NO: 60
A Web service needs to validate the credit rating for a loan. The service requires a
social security number, full name, and date of birth as input and returns one of many
possible documents.Which statement is true?
A. The developer must use an EJB-based endpoint.
B. The developer must use a procedure-style Web service.
C. The developer must use a document-style Web service.
D. The developer can use a procedure-style or document-style Web service.
Answer: D

QUESTION NO: 61
A developer is writing a Web service method that needs to accept multiple types of
requests. Based on the request's content, the service performs time-consuming steps, such
as verifying the user's account, checking credit ratings, and building a list of offers.Which
two approaches are appropriate to use in this situation? (Choose two.)
A. a synchronous, document-style approach
B. a synchronous, procedure-style approach
C. an asynchronous, document-style approach
D. an asynchronous, procedure-style approach
E. HTTP and HTTPS
F. SMTP or other asynchronous protocol
Answer: C,F
Explanation:

QUESTION NO: 62
Based on separation of concerns, which two are correctly implemented in the interaction
"Pass Any Exam. Any Time." - 100% Pass Guarantee

35

Oracle 1z0-862: Practice Exam


layer of a Web service? (Choose two.)
A. validation of XML documents
B. saving document contents in a database table
C. application of the business logic to the XML document
D. translation of incoming XML documents to their internal XML representations
E. a new message for exceptions that are encountered in the processing layer
Answer: A,D

QUESTION NO: 63
A developer has a requirement to expose a Web service interface to an existing
order processing system. The order processing system is quite old and the company has
doubts about its compatibility with newer technologies.What is the appropriate design?
A. only a new interaction layer
B. only a new processing layer
C. a new interaction layer and a new processing layer
D. a new interaction layer and a facade processing layer that uses the existing order
processing system
E. a new processing layer and a facade interaction layer that uses the existing order
processing system
Answer: D

QUESTION NO: 64
A Web service needs to encrypt certain SOAP headers when responding.Which statement
about this encryption?
A. The Web service interaction layer is the appropriate place for such encryption.
B. The Web service processing layer is the appropriate place for such encryption.
C. Either the Web service interaction or processing layer is appropriate for such
encryption.
D. Neither the Web service interaction nor processing layer is appropriate for such
encryption.
E. Protocol-based encryption like HTTPS should be used to meet the requirements
without code changes.
Answer: A

"Pass Any Exam. Any Time." - 100% Pass Guarantee

36

Oracle 1z0-862: Practice Exam


QUESTION NO: 65
Enterprise A invokes a Web service provided by enterprise B with some parameters, and
receives a response. A developer is making this interaction asynchronous so that A does
not have to wait for B to finish processing.Which two actions must be taken to fulfill this
requirement? (Choose two.)
A. establish a Web service endpoint for enterprise A to receive the response
B. partition the endpoint implementation in to interaction and processing layers so
responses can be received independently
C. convert all Web service methods to use XML documents as parameters and return
values
D. embed a correlation identifier in the request so that enterprise B can associate the
response with it
E. read messages from a queue populated by enterprise B at peak hours when response
times are too slow
Answer: A,D
Explanation:

QUESTION NO: 66
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 need to 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: B,D

QUESTION NO: 67

"Pass Any Exam. Any Time." - 100% Pass Guarantee

37

Oracle 1z0-862: Practice Exam


Which two provide a reason for converting an existing synchronous Web service
interaction to an asynchronous Web service interaction? (Choose two.)
A. when a system needs to improve its availability
B. when a human approval step has been added to a business process
C. when a human approval step has been replaced by an in-house automated system
D. when an external Web service endpoint used in the business process is having
availability problems
Answer: B,D

QUESTION NO: 68
A developer created a Web service client that sends requests to the company's inventory
service. The quality assurance team reports a problem during testing. The client does not
work in some cases and the QA team reports that the client is sending malformed SOAP
messages. The software is returned to the developer for resolution.What is the result?
A. One or more class cast exceptions are returned in a SOAP message.
B. A SOAP fault that surfaces as a HTTPException because SOAP is serializable.
C. A SOAP fault surfaces as a SOAPFaultException.
D. A generic exception results because Java details are not to be mingled with SOAP.
Answer: C

QUESTION NO: 69
A Web service is developed using the Java EE 5 API and deployed in a Java EE 5
application.Which two statements are true? (Choose two.)
A. The Web service has no knowledge of the client's programming model.
B. An EJB in another application server can consume this service only if the
service is deployed as a stateless session bean endpoint.
C. The Web service can always determine that the client is using a Dispatch interface or
dynamic proxies to consume the service.
D. The SOAP requests generated by clients for this Web service are logically equivalent
for clients using Dispatch interface or dynamic proxies.
Answer: A,D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

38

Oracle 1z0-862: Practice Exam


QUESTION NO: 70
Which two encoding styles are acceptable according to the WS-I Basic Profile 1.1?
(Choose two.)
A. rpc-literal
B. rpc-encoded
C. document-literal
D. document-encoded
E. literal wrapped-encoded
Answer: A,C

QUESTION NO: 71
Which two statements are true about SOAP encoding? (Choose two.)
A. SOAP encoding can describe sparse arrays.
B. The soapenc:encodingStyle attribute must be specified on the soapenv:Body element.
C. SOAP-encoded messages can be used to represent graphs of objects.
D. The oapenc:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" attribute
is valid on a soapenv:Envelope in a WS-I Basic Profile 1.1 conformant SOAP
message.
Answer: A,C

QUESTION NO: 72
When working directly with SOAP, which two statements are true about the encoding of
compound values? (Choose two.)
A. Compound values cannot be encoded.
B. A compound value may NOT contain other compound values.
C. Members of a compound value are encoded as accessor elements.
D. Accessors with names that are local to their containing types have unqualified names.
Answer: C,D
Explanation:

QUESTION NO: 73
A developer is exposing a selection of legacy systems via Web services. As the project

"Pass Any Exam. Any Time." - 100% Pass Guarantee

39

Oracle 1z0-862: Practice Exam


progresses, the developer discovers that the existing systems communicate, based on a
globally shared set of enumerated types. After much research, the developer realizes the
types must be supported going forward and must be reflected in the SOAP
messages.Which statement is true about SOAP-encoding and enumerated types?
A. Enumerated types cannot be encoded with SOAP.
B. Enumerated types can be encoded, but do NOT conform to WS-I Basic Profile 1.1
standards.
C. Enumerated types can only be encoded if they are explicitly defined.
D. Using enumerated types prevents Java Web services from talking to other platforms.
Answer: C

QUESTION NO: 74
Which WSDL fragment is a valid portType element for a WSDL file defining a requestresponse
Web service?
A. <portType name="Payroll">
<operation name="fileReport">
<message name="fileReport" mode="request-response"/>
</operation>
</portType>
B. <portType name="Payroll">
<operation name="fileReport">
<document name="fileReport" mode="request-response"/>
</operation>
</portType>
C. <portType name="Payroll">
<operation name="fileReport">
<input message="fileReportRequest"/>
<output message="fileReportResponse"/>
</operation>
</portType>
D. <portType name="Payroll">
<operation name="fileReport">
<input document="fileReportRequest"/>
<output document="fileReportResponse"/>
</operation>
</portType>
E. <portType name="Payroll">
<operation name="fileReport" type=request-response?
<input message="fileReportRequest"/>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

40

Oracle 1z0-862: Practice Exam


<output message="fileReportResponse"/>
</operation>
</portType>
F. <portType name="Payroll">
<message name="fileReport">
<input operation="fileReportRequest"/>
<output operation="fileReportResponse"/>
</message>
</portType>
Answer: C

QUESTION NO: 75
A developer is reviewing requirements prior to design of a new system, based on Web
services. The requirements state the users of the company's financial systems need
extensible request/response messaging.Which two statements are true? (Choose two.)
A. HTTP is required because SOAP is not extensible without it.
B. FTP is appealing because it supports two-way communication with SOAP.
C. SOAP messages can be multicast with SMTP.
D. HTTPS is supported for financial transactions, but is not recommended for large
groups of users.
E. SOAP could be combined with XML encryption and MTOM to help meet the
requirements.
Answer: C,E

QUESTION NO: 76
A developer is designing a distributed system for order fulfillment. As the project
progresses the developer is presented with new requirements allowing vendors to
fill parts of orders and pass the remainder on to others for completion. The SOAP
messages may be received and processed by more than one vendor.Which two statements
are true? (Choose two.)
A. A header block targeted to an intermediary node must be forwarded to the next node.
B. A header block targeted to an intermediary node must not be forwarded to the next
node.
C. An intermediary in a SOAP message exchange cannot add additional headers to a
"Pass Any Exam. Any Time." - 100% Pass Guarantee

41

Oracle 1z0-862: Practice Exam


SOAP message.
D. An intermediary in a SOAP message exchange can add additional header blocks to a
SOAP message.
E. An intermediary in a SOAP message exchange can add a second header element with
additional nodes.
Answer: B,D

QUESTION NO: 77
Which statement is true about the SOAP 1.1 actor attribute?
A. It is ignored for HTTP.
B. It indicates the recipient of a header block.
C. It indicates the final recipient of the message.
D. It indicates which recipient processes the Body element.
E. SOAP 1.1 does not use the actor attribute.
Answer: B

QUESTION NO: 78
Which two statements are true about SOAP faults? (Choose two.)
A. A valid actorcode element must be returned.
B. The faultstring is a hashed value used to identify an actor.
C. The faultcode may use either standard or private codes.
D. The detail element is open content and application-specific.
E. The faultactor specifies the intermediary designated to correct SOAP errors.
Answer: C,D

QUESTION NO: 79
Which two statements are true about the SOAP extensibility model? (Choose two.)
A. It has the ability to bind SOAP to multiple protocols.
B. SOAP has evolved in to REST.
C. SOAP is compatible with most browsers.
D. WS-I 1.1 encourages SOAP-encoding because it makes services interoperable.
E. SOAP is XML and therefore extensible.
Answer: A,E

"Pass Any Exam. Any Time." - 100% Pass Guarantee

42

Oracle 1z0-862: Practice Exam

QUESTION NO: 80
Given:
1. <?xml version="1.0" encoding="UTF-8"?>
2. <soapenv:Envelope>
3. <soapenv:Body xmlns:ns2="urn:examples">
4. <ns2:name>Sun Solaris</ns2:name>
5. <ns2:price >99.99</ns2:price>
6. <ns2:description>
7. Solaris for Intel
8. </ns2:description>
9. <ns2:ID>A358185</ns2:ID>
10. </soapenv:Body>
11. </soapenv:Envelope>
Which statement is correct?
A. The message is SOAP-encoded because the encoding style is implied.
B. The message is RPC-encoded because in the absence of other specifiers, this is the
WS-I default.
C. The message is document literal with type encoding, based on the schema provided.
D. The message is document literal wrapped because there is no encoded type
information.
Answer: C

QUESTION NO: 81
According to the WS-I Basic Profile 1.0a, what is true about the SOAP 1.1 encodingStyle
attribute?
A. It can occur anywhere in a message.
B. It can only be declared on children Header elements.
C. It can be declared on any children of the Body elements of rpc-literal messages.
D. It cannot be used with elements qualified by the
"Pass Any Exam. Any Time." - 100% Pass Guarantee

43

Oracle 1z0-862: Practice Exam


http://schemas.xmlsoap.org/soap/envelope namespace.
E. WS-I Basic Profile 1.1 does NOT give any guidance because encodingStyle is a SOAP
1.1 attribute.
Answer: D

QUESTION NO: 82
Which two statements are true about creating a SOAP message with an attachment?
(Choose two.)
A. Binary attachments make SOAP incompatible with HTTP.
B. A SOAP Message package must specify Content-Type as multipart/related.
C. If one or more attachments are XML, they must be in the body of the SOAP message.
D. MIME attachments referenced inside the SOAP body must use SOAP references.
E. MIME provides a method to encode attachments in XML making them compatible
with SOAP.
Answer: B,D

QUESTION NO: 83
Given:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<!- insert envelope contents here -->
</soap:Envelope>
Which two XML fragments, when inserted into this soap:Envelope, result in a
WS-I Basic Profile 1.1 conformant SOAP message? (Choose two.)
A. <soap:Body>
<tns:Person xmlns:tns="http://sun.cert/types">
<name>Fred</name>
</tns:Person>
<age>33</age>
</soap:Body>
B. <soap:Body>
<tns:Person xmlns:tns="http://sun.cert/types">
<name>Fred</name>
<age>33</age>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

44

Oracle 1z0-862: Practice Exam


</tns:Person>
</soap:Body>
C. <soap:Body>
<tns:Person xmlns:tns="http://sun.cert/types">
<name>Fred</name>
</tns:Person>
</soap:Body>
<soap:Header>
<t:id xmlns:t="http://sun/cert/types">6</t:id>
</soap:Header>
D. <soap:Header>
<t:id xmlns:t="http://sun/cert/types">6</t:id>
</soap:Header>
<soap:Body>
<tns:Person xmlns:tns="http://sun.cert/types">
<name>Fred</name>
</tns:Person>
</soap:Body>
E. <soap:Header>
<t:id xmlns:t="http://sun/cert/types">6</t:id>
</soap:Header>
<age>33</age>
<soap:Body>
<tns:Person xmlns:tns="http://sun.cert/types">
<name>Fred</name>
</tns:Person>
</soap:Body>
Answer: B,D

QUESTION NO: 84
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: C,F

"Pass Any Exam. Any Time." - 100% Pass Guarantee

45

Oracle 1z0-862: Practice Exam

QUESTION NO: 85
Which two characteristics can be defined in a WSDL 1.1 document that is specific to
HTTP? (Choose two.)
A. The location for the port can be defined.
B. The address for the service can be defined.
C. The transport attribute of a soapbind:binding child MAY have the value
"http://schemas.xmlsoap.org/soap/http".
D. The transport attribute of a soapbind:binding child MUST have the value
"http://schemas.xmlsoap.org/soap/http".
E. The transport attribute of a soapbind:binding child MUST have the value
"http://www.w3.org/ns/wsdl/soap".
Answer: A,D

QUESTION NO: 86
According to the WS-I Basic Profile 1.1, which two statements are true about the
targetNamespace attribute for xsd:schema elements that are children of WSDL 1.1 type
element? (Choose two.)
A. Its value must be valid unless it has xsd:import, xsd:annotation, or both as its only
child elements.
B. Its value must be empty unless it has xsd:import, xsd:annotation, or both as its only
child elements.
C. It should have same the value as the namespace attribute on the wsdl:import element
in a document being imported.
D. It must have same the value as the namespace attribute on the wsdl:import element in
a document being imported.
Answer: A,D

QUESTION NO: 87
A developer is trying to incorporate an existing schema into a document.In the code
fragments, which types definition correctly uses an existing schema?
A. <types>
import namespace="http://www.sun.com/jws"
"Pass Any Exam. Any Time." - 100% Pass Guarantee

46

Oracle 1z0-862: Practice Exam


schemaLocation="http://www.sun.com/jws/my.xsd"
</types>
B. <types>
include namespace="http://www.sun.com/jws"
schemaLocation="http://www.sun.com/jws/my.xsd"
</types>
C. <types>
<xsd:schema targetNamespace="http://www.sun.com/jws">
<xsd:import namespace="http://www.sun.com/jws"
location="http://www.sun.com/jws/my.xsd" />
</xsd:schema>
</types>
D. <types>
<xsd:schema targetNamespace="http://www.sun.com/jws">
<xsd:import namespace="http://www.sun.com/jws"
schemaLocation="http://www.sun.com/jws/my.xsd" />
</xsd:schema>
</types>
E. <types>
<xsd:schema targetNamespace="http://www.sun.com/jws">
<xsd:include namespace="http://www.sun.com/jws"
schemaLocation="http://www.sun.com/jws/my.xsd" />
</xsd:schema>
</types>
F. <types>
<xsd:schema>
<xsd:include namespace="http://www.sun.com/jws"
schemaLocation="http://www.sun.com/jws/my.xsd" />
</xsd:schema>
</types>
Answer: D

QUESTION NO: 88
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: B,E
"Pass Any Exam. Any Time." - 100% Pass Guarantee

47

Oracle 1z0-862: Practice Exam

QUESTION NO: 89
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: D,F

QUESTION NO: 90
Developers are creating a WSDL to describe an invoice in a Web service.Which code
fragment correctly describes an invoice?
A. <Type name="Invoice">
<all>
<element name="id" type="string/>
<element name="name" type="string"/>
<element name="items">
<complexType>
<all>
<element name="item" type="tns:Item" minOccurs="0" maxOccurs="unbounded"/>
</all>
</complexType>
</element>
</all>
</Type>
B. <complexType name="Invoice">
<all>
<element name="id" type="string/>
<element name="name" type="string"/>
<element name="items">
<complexType>
<all>
<element name="item" type="tns:Item" minOccurs="0" maxOccurs="unbounded"/>
</all>
</complexType>
</element>
"Pass Any Exam. Any Time." - 100% Pass Guarantee

48

Oracle 1z0-862: Practice Exam


</all>
</complexType>
C. <types name="Invoice">
<all>
<element name="id" type="string/>
<element name="name" type="string"/>
<element name="items">
<complexType>
<all>
<element name="item" type="tns:Item" minOccurs="0" maxOccurs="unbounded"/>
</all>
</complexType>
</element>
</all>
</types>
D. <complexType name="Invoice">
<all>
<element name="id" type="string/>
<element name="name" type="string"/>
<element name="items">
<type>
<all>
<element name="item" type="tns:Item" minOccurs="0" maxOccurs="unbounded"/>
</all>
</type>
</element>
</all>
</complexType>
Answer: B

QUESTION NO: 91
An engineer is describing a function call that is being used in a Web service.Which code
fragment correctly describes this call?
A. <wsdl:definitions .... >
<wsdl:port .... > *
<wsdl:operation name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl:operation>
</wsdl:port >

"Pass Any Exam. Any Time." - 100% Pass Guarantee

49

Oracle 1z0-862: Practice Exam


</wsdl:definitions>
B. <wsdl:definitions .... >
<wsdl: operation.... > *
<wsdl: portType name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl: portType >
</wsdl: operation >
</wsdl:definitions>
C. <wsdl:definitions .... >
<wsdl:portType .... > *
<wsdl:operation name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl:operation>
</wsdl:portType >
</wsdl:definitions>
D. <wsdl:definitions .... >
<wsdl: operation.... > *
<wsdl:port name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl:port>
</wsdl: operation >
</wsdl:definitions>
Answer: C

QUESTION NO: 92
A team of developers is working with UDDI. They use the delete_tModel function to
remove a tModel.Which three statements are true about the delete_tModel? (Choose
three.)
A. The delete_tModel physically deletes the tModels.
B. The deleted tModels still appear in the results returned by find_tModel.
C. The deleted tModels are omitted from any results returned by find_tModel.
D. An authentication token is required.
E. An authentication token is recommended.
F. If any error occurs in processing this API call, a tModelError element will be returned
to the caller within a SOAP Fault.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

50

Oracle 1z0-862: Practice Exam


G. If any error occurs in processing this API call, a dispositionReport element will be
returned to the caller within a SOAP Fault.
Answer: C,D,G

QUESTION NO: 93
A software engineer is adding her company's Web services to a UDDI registry with
JAXR so that the company's suppliers can discover them easily.What are three functions
available to them through the Publisher API? (Choose three.)
A. find_binding
B. save_binding
C. get_service
D. delete_service
E. save_publisherAssertions
F. set_publisherAssertions
Answer: B,D,F

QUESTION NO: 94
What are two characteristics of the UDDI Inquiry API? (Choose two.)
A. It requires user authentication.
B. It can be used to query the Internet.
C. It does NOT require user authentication.
D. find_binding is used to get full bindingTemplate information suitable for making
one or more service requests.
E. It provides a mechanism to perform a case-sensitive search on services.
F. It provides a mechanism to get a list of services ordered by their creation date.
Answer: C,E

QUESTION NO: 95
Which three are valid JAX-WS clients? (Choose three.)
A. UDDI
B. Java SE 6 classes
C. SOAP
D. a WSDL presented by Ajax
E. stateful session bean
"Pass Any Exam. Any Time." - 100% Pass Guarantee

51

Oracle 1z0-862: Practice Exam


F. JSPs
Answer: B,E,F

QUESTION NO: 96
Which two statements are true about JAX-WS support for data bindings? (Choose two.)
A. Data binding is performed with only generated classes to reduce errors and hide
complexity.
B. JAXB 2.0 is preferred.
C. Inline binding declarations with XML Schema are NOT supported for JAXB 2.0.
D. SAAJ 1.3 is supported for data binding with SOAP.
E. JAX-RPC data binding is recommended for cross-platform interoperability.
Answer: B,D

QUESTION NO: 97
Which two statements are true about JAX-WS API using SOAP or REST? (Choose two.)
A. JAX-WS prefers base 64 encoding of binary attachments for SOAP and REST.
B. SOAP services require deployment descriptors and REST uses annotations.
C. XML and REST are often easier to use than SOAP for stateless services.
D. JAX-WS clients can bind both SOAP and raw XML from REST.
E. REST services must be used to generate portable artifact classes mapped to SOAP.
Answer: C,D

QUESTION NO: 98
A stateful Web service is implemented as an EJB-based endpoint.What are two ways to
maintain that state? (Choose two.)
A. by using URL re-writing
B. by adding a session cookie to the HTTP headers
C. by adding a conversation id to the SOAP headers
D. by requiring clients to send a client id parameter to all methods
Answer: C,D

QUESTION NO: 99
"Pass Any Exam. Any Time." - 100% Pass Guarantee

52

Oracle 1z0-862: Practice Exam


A developer needs to write a Web service that supports user sessions that timeout after
120 seconds.Which configuration file is correct for the developer use?
A. web.xml
B. server.xml
C. ejb-jar.xml
D. service-config.xml
Answer: A

QUESTION NO: 100


Which three can a servlet-based Web service endpoint use? (Choose three.)
A. HTTP sessions
B. Java EE 5 declarative security
C. Java EE 5 programmatic security
D. client-demarcated transactions
E. container-managed transactions
Answer: A,B,C

QUESTION NO: 101


Which three statements are true about JAX-WS Web services? (Choose three.)
A. EJB-based endpoints are always invoked one thread at a time.
B. Servlet-based endpoints are always invoked one thread at a time.
C. EJB-based endpoints can be invoked by multiple threads at the same time.
D. Servlet-based endpoints can be invoked by multiple threads at the same time.
E. Java SE 6 is suitable for development of a Web service endpoint interface.
Answer: A,D,E

QUESTION NO: 102


Which two statements are true about JAXB? (Choose two.)
A. Developers must design and code JAXB classes, based on the XML schema.
B. JAXB represents a schema in memory after parsing it with the SAX API.
C. JAXB maps Java classes to a derived schema.
D. JAXP is a lightweight version of JAXB, and is preferred for mapping classes and
XML in Java SE 6 applications.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

53

Oracle 1z0-862: Practice Exam


E. JAXB provides reading and writing to manipulate XML using Java classes.
Answer: C,E

QUESTION NO: 103


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: B

QUESTION NO: 104


A developer must design a program to parse XML orders, based on a schema the
company developed. The original documents serve no purpose after processing, but some
derived values will be inserted in the company's RDBMS before the documents are
discarded.Which technology should be used to process the orders?
A. JDBC 2.0 or higher
B. JAXB 2.0
C. JAX-WS 2.0
D. XSLT
Answer: B

QUESTION NO: 105


A developer has an existing stateless session bean that contains a remote method. The
method needs to be made available as a WS-I Basic Profile 1.1 compliant Web
service.What is the correct mapping approach?
A. RMI
B. JDBC
C. WSDL-to-Java
D. Java-to-WSDL

"Pass Any Exam. Any Time." - 100% Pass Guarantee

54

Oracle 1z0-862: Practice Exam


Answer: D

QUESTION NO: 106


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, based on the published WSDL. Which approach is correct
to use first in this situation?
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: B

QUESTION NO: 107


A developer is asked to consult on a Web services project and assist the team with a good
design approach on a new project. The team members disagree on whether to use WSDL
or Java first. Several members are skilled with XML and see a schema and WSDL as the
correct place to start. The team has also learned the deadline for this project has been
moved up and another team plans to reuse their code. Which statement is true about the
proper course of action to take in this situation?
A. Java should be used first because it is a strongly typed language and will result in a
robust WSDL.
B. WSDL should be used first because it will make the code easier to reuse for the other
team.
C. Java should be used first because it is often the fastest and easiest approach.
D. WSDL should be used first because the team knows XML Schema.
Answer: C

QUESTION NO: 108


"Pass Any Exam. Any Time." - 100% Pass Guarantee

55

Oracle 1z0-862: Practice Exam


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: D,E

QUESTION NO: 109


Given:
1. @WebService(name="LogInventory")
2. public class InventoryReader {
3. @WebMethod(operationName=check?
4. @OneWay
5. public void checkProduct(String name);
6. @WebMethod
7. public void addInventory(
8. @WebParam(name="total") int quantity)
9. throws InventoryException;
10. }
Assume the code is free of gross flaws and syntax errors.Which two statements are true?
(Choose two.)
A. Line 8 specifies that addInventory accepts either a valid total or quantity.
B. Line 1 indicates the portType is LoginInventory.
C. Line 3 shows the method is mapped to the WSDL operation called checkProduct?
D. Line 4 means that a method is not expected to return a value unless requested.
E. Line 6 implies WSDL operation and method name are the same.
Answer: B,E

"Pass Any Exam. Any Time." - 100% Pass Guarantee

56

Oracle 1z0-862: Practice Exam

QUESTION NO: 110


Which statement is true about the tool integration in JAX-WS?
A. WSIT is Sun's open source implementation of tools using the provider API.
B. Java offers a tool provider API, though the tools themselves come from third parties.
C. The API allows tool use from the command line, Ant and IDE.
D. C and C++ are most commonly used to extend the annotation library.
Answer: C

QUESTION NO: 111


What happens when you start development of a service from a WSDL file?
A. The service endpoint can be implemented after wsimport creates the portable artifacts.
B. The wsgen tool and Java source generate a client, based on the WSDL.
C. The apt can be used to generate portable artifacts, based on an annotated WSDL.
D. Providing wsgen, a WSDL deployed in a WAR will create classes specifically for the
interface.
Answer: A

QUESTION NO: 112


Which two statements are true about the apt? (Choose two.)
A. The apt compiles classes and processes annotations added with JSR 175.
B. Ant tasks are NOT suitable to launch the apt.
C. The apt is an example of an external tool and not part of JAX-WS core libraries.
D. The apt is an annotation marshalling tool and works with a supplied annotation map.
E. The tool uses the command format: java apt <source files>.
Answer: A,C
Explanation:

QUESTION NO: 113


Which two statements are true about creating a Web service with JAX-WS? (Choose
two.)

"Pass Any Exam. Any Time." - 100% Pass Guarantee

57

Oracle 1z0-862: Practice Exam


A. Stateless Web services must be created with HTTP servlet endpoints.
B. Creating the portable artifacts by hand is slow, but makes a service easier to maintain.
C. All Java-based endpoints share a common packaging model.
D. EJBs can serve as endpoints if hosted in a container with runtime and service support.
E. JAX-WS supports creating services from source and compiled code without a WSDL.
Answer: D,E

QUESTION NO: 114


What are three functions of annotations? (Choose three.)
A. Annotations play a role in compile-time and runtime processing.
B. Annotations aid deployment of Services, based on classes, but complicate the
start from WSDL approach.
C. A virtue of annotations is the reduction of hands-on deployment descriptors.
D. Custom annotations expose useful deployment information to cross platform services.
E. Increased value from reflection is a benefit of annotations.
Answer: A,C,E

QUESTION NO: 115


What happens when a Web service is created with JAX-WS?
A. The annotation @WebParams denotes an operation with parameters.
B. The service endpoint interface is most easily created implicitly with annotations.
C. Services must provide a non-WSDL interface if clients use dynamic invocation.
D. The slight reduction in productivity from using annotations is more than offset
by improved runtime performance.
Answer: B

QUESTION NO: 116


A developer new to Web services is researching how a client can connect to a service. It
is clear that some models provide better abstraction while others offer more power when
working with messages.What is the correct reason to choose the Dispatch interface?
A. Dispatch is a high-level API that helps hide the complexity of XML.
B. REST services can be consumed with the Dispatch API and XML/HTTP bindings.
C. The Dispatch interface supports the use JAXP to bind data.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

58

Oracle 1z0-862: Practice Exam


D. The Dispatch interface is represented internally as a SOAP message.
Answer: B

QUESTION NO: 117


A developer must modify an existing Web service client program. XML used by the
service must be updated and archived for use in other systems. The developer chooses the
Dispatch API. Which two statements are true about this approach? (Choose two.)
A. Dispatch is generic and can be instantiated for use with XML or SOAP.
B. The Web service can be either SOAP or REST-based.
C. The Dispatch instance must be created in Service.Mode.PAYLOAD mode in order to
use SOAP.
D. Instantiating Dispatch Service.Mode.MESSAGE mode allows you to work
directly with the XML message.
E. It is unnecessary to use JAXB with the Dispatch API.
Answer: A,B

QUESTION NO: 118


A developer needs to create a portable client for an existing SOAP-based Web service
using JAX-WS. The requirements state that the client proxy must be able to catch
service-specific exceptions. The developer requests access to the service endpoint
implementation.Which statement is true?
A. The existing service endpoint implementation is required.
B. JAX-WS proxies are dynamic so the service endpoint must be redesigned.
C. The developer should have requested the WSDL rather than the service endpoint
implementation.
D. Catching service-specific exceptions makes the system backwards compatible with
JAX-RPC.
Answer: C

QUESTION NO: 119


A developer is given a WSDL for an existing Web service.What is the correct sequence

"Pass Any Exam. Any Time." - 100% Pass Guarantee

59

Oracle 1z0-862: Practice Exam


of steps that must be taken to use that Web service?
A. parse the WSDL using JAXP, connect to the service using RMI, and then parse the
XML using SAX
B. use a utility (such as wsimport) to read the WSDL and generate a service endpoint
interface
C. register the WSDL with wsgen, bind to the stubs, and then call methods on the
interface
D. receive the service using RMI, parse the XML using JAXP, create Java objects using
JAXR, and then return those Java objects
Answer: B

QUESTION NO: 120


Which statement is true about clients for Java EE 5 Web services and JAX-WS?
A. Java SE 6 clients are only possible when additional libraries are available at compile
time.
B. Java EE 5 clients must have common runtime and communication characteristics.
C. All Java EE 5 components, including Java ME, are viable Web service clients.
D. Non-Java services must explicitly support the JAX-WS client communication models
to be interoperable.
Answer: C

QUESTION NO: 121


A team of developers is designing RESTful Web services for a new application.What are
three properties of the services? (Choose three.)
A. They can be stateful.
B. They can be stateless.
C. Components communicate by exchanging representations of the resource.
D. Components communicate by directly performing operations on the resource.
E. They require WSDL service API definitions.
F. Responses can be labeled as cacheable or non-cacheable.
Answer: B,C,F

QUESTION NO: 122


An engineer is creating a RESTful Web service client and is working with JAXB

"Pass Any Exam. Any Time." - 100% Pass Guarantee

60

Oracle 1z0-862: Practice Exam


data bound java.lang.Object requests.Which four message exchange protocols are
supported when using the javax.xml.ws.Dispatch<T> interface? (Choose four.)
A. request-response
B. response-request
C. one-way
D. mailbox model
E. asynchonous polling
F. chronological sequencing
G. callback
Answer: A,C,E,G

QUESTION NO: 123


RESTful Web services have an interface of well-known standard operations, and
all services are accessed through this interface.What are the four standard operations
available for RESTful Web services? (Choose four.)
A. GET
B. CONNECT
C. PUT
D. SUBMIT
E. POST
F. HEAD
G. DELETE
Answer: A,C,E,G

QUESTION NO: 124


What are three characteristics of JSON Web service messages? (Choose three.)
A. provide interface contracts that are easy to enforce
B. are self-describing
C. utilize a collection of name/value pairs
D. utilize ordered lists of values
E. provide built-in message security
F. allow minimum to no coding of object de-serialization
Answer: C,D,F

"Pass Any Exam. Any Time." - 100% Pass Guarantee

61

Oracle 1z0-862: Practice Exam


QUESTION NO: 125
Which two implementations of JSON Web services benefit from the inherent
structure of JSON messages? (Choose two.)
A. remote procedure calls
B. geocoding
C. Enterprise Service Bus messaging
D. map image
E. stateful session management
Answer: B,D

QUESTION NO: 126


Which two features of JSON formatted messages in Web services are responsible for its
increasing popularity? (Choose two.)
A. widely available implementations
B. built-in browser parsing support
C. well supported by Ajax toolkits
D. simple API
E. tag-based message format
Answer: C,D

QUESTION NO: 127


A team of engineers is using JAX-WS to implement both RESTful and SOAP Web
services. Which two exception classes will they use? (Choose two.)
A. javax.xml.ws.soap.SOAPException
B. javax.xml.ws.soap.SOAPFaultException
C. javax.xml.ws.soap.FaultException
D. javax.xml.ws.http.HTTPException
E. javax.xml.ws.http.HTTPFaultException
F. javax.xml.ws.http.FaultException
Answer: B,D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

62

Oracle 1z0-862: Practice Exam


QUESTION NO: 128
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: B,E

QUESTION NO: 129


A developer needs to implement stateful Web services for their new application by
maintaining a session with the client application.Which two technologies should the
developer use to implement Web services? (Choose two.)
A. EJB Endpoint
B. Servlet Endpoint
C. JSON
D. REST
E. SOAP
F. JAXP
Answer: B,E

QUESTION NO: 130


What are two benefits of utilizing JSON-based Web services when compared to a
solution that is XML-based? (Choose two.)
A. good namespace support
B. fast object de-serialization
C. plentiful selection of development tools
D. grammar defined by DTD
E. concise format
F. can be used for a wide variety of tasks
"Pass Any Exam. Any Time." - 100% Pass Guarantee

63

Oracle 1z0-862: Practice Exam


Answer: B,E
Explanation:

QUESTION NO: 131


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 two technologies will they use? (Choose two.)
A. SOAP
B. REST
C. JAXR
D. XML
E. JSON
F. JSP
Answer: A,D

QUESTION NO: 132


A company is receiving a large XML document from a vendor and they need to extract
the content of the document and update their invoicing tables with the data.What are two
reasons to utilize the SAX parser as a solution? (Choose two.)
A. It is an event-based API that is used when parsing XML documents.
B. It allows non-sequential access to the document.
C. It is an XML messaging API that is used to send and receive SOAP documents.
D. It is a set of interfaces and classes that models the structure of a SOAP document.
E. It models the structure of a parsed XML document as a tree of objects called nodes.
F. It will improve resource utilization.
Answer: A,F

QUESTION NO: 133


A company has been evaluating the capabilities of JAXP. In addition to SAX and DOM,
which two are supported by JAXP in Java EE 5? (Choose two.)

"Pass Any Exam. Any Time." - 100% Pass Guarantee

64

Oracle 1z0-862: Practice Exam


A. XSLT
B. JAXB
C. JSSE
D. JDBC
E. Xpath
F. JAXR
Answer: A,E

QUESTION NO: 134


A company is creating a new XML document for their payroll program. When a new
person is hired, a new Employee Element must be added, and child elements and text
must be added to the child elements. Which lines satisfy this requirement?
A. Element newEmp = document.createElement( "employee" );
Element newname = document.createElement( "name" );
Node nameNode = document.createNode( "John Smith");
newname.appendChild( nameNode ); newEmp.appendChild( newname );
B. Element newEmp = document.createElement( "employee" );
Element newname = document.createElement( "name" );
String nameString = document.createStringNode( " John Smith");
newname.appendChild( nameString );
newEmp.appendChild( newname );
C. Element newEmp = document.createElement( "employee" );
Element newname = document.createElement( "name" );
Text nameText = document.createTextNode( " John Smith");
newname.appendChild( nameText );
newEmp.appendChild( newname );
D. Node newEmp = document.createNode( "employee" );
Node newname = document.createNode( "name" );
String nameString = document.createStringNode( " John Smith");
newname.appendString( nameString ); newEmp.appendNode( newname );
Answer: C

QUESTION NO: 135


A developer has to process many similar, but structurally different XML documents and
has decided to use the JAXB binding compiler.Which three factors support this decision?
(Choose three.)

"Pass Any Exam. Any Time." - 100% Pass Guarantee

65

Oracle 1z0-862: Practice Exam


A. It is used only at compile time and accepts an XML schema as an input.
B. It is used at run time and accepts an XML schema as an input.
C. It builds an in-memory content tree.
D. With JAXB, only event handlers need to be written to map XML content to Java
classes.
E. It generates Java interfaces using standard XML data type mapping and
runtime-specific implementations.
F. It generates Java interfaces using standard XML data type mapping, and developers
must provide their implementations.
Answer: A,C,E

QUESTION NO: 136


Place the general steps in the JAXB data binding process in the correct order.
a . compile classes
b . generate classes
c . generate content tree
d . marshall
e . process content
f . unmarshall
g . validate
A. f,b,a,c,g,e,d
B. b,a,d,c,g,e,f
C. b,a,f,c,g,e,d
D. b,a,d,c,e,f,g
E. f,c,a,b,g,e,d
Answer: C

QUESTION NO: 137


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
"Pass Any Exam. Any Time." - 100% Pass Guarantee

66

Oracle 1z0-862: Practice Exam


D. built-in DOM parser
E. binding runtime framework
F. schema interpretor
Answer: A,C,E

QUESTION NO: 138


What are two characteristics of the SAAJ API implementation? (Choose two.)
A. It is used to parse XML schemas.
B. It is used for unmarshalling WSDL documents to Java classes.
C. It can represent XML namespaces, elements, attributes, and text nodes.
D. It offers a full feature set for arbitrary work with XML.
E. SAAJ extends the SAX API.
F. SAAJ extends the DOM API.
Answer: C,F

QUESTION NO: 139


A developer is using SAAJ to create a new SOAP message and access the header and
body.Which lines of code will accomplish this?
A. 1. //Creating a SOAP message
2. MessageFactory factory = MessageFactory.newInstance();
3. SOAPMessage request = factory.newMessage();
4. //Accessing elements of the message
5. SOAPPart soapPart = request.getSOAPPart();
6. SOAPEnvelope envelope = soapPart.getSOAPEnvelope();
7. SOAPHeader header = envelope.getSOAPHeader();
8. SOAPBody body=envelope.getSOAPBody();
B. 1. //Creating a SOAP message
2. MessageFactory factory = MessageFactory.newInstance();
3. SOAPMessage request = factory.new(Message());
4. //Accessing elements of the message
5. SOAPPart soapPart = request.getSOAPPart();
6. SOAPEnvelope envelope = soapPart.getEnvelope();
7. SOAPHeader header = envelope.getHeader();
8. SOAPBody body=envelope.getBody();
C. 1. //Creating a SOAP message
2. MessageFactory factory = MessageFactory.newInstance();
3. SOAPMessage request = factory.createMessage();

"Pass Any Exam. Any Time." - 100% Pass Guarantee

67

Oracle 1z0-862: Practice Exam


4. //Accessing elements of the message
5. SOAPPart soapPart = request.getSOAPPart();
6. SOAPEnvelope envelope = soapPart.getEnvelope();
7. SOAPHeader header = envelope.getHeader();
8. SOAPBody body=envelope.getBody();
D. 1. //Creating a SOAP message
2. MessageFactory factory = MessageFactory.newInstance();
3. SOAPMessage request = factory.createMessage();
4. //Accessing elements of the message
5. SOAPPart soapPart = request.getSOAPPart();
6. SOAPEnvelope envelope = soapPart.getSOAPEnvelope();
7. SOAPHeader header = envelope.getSOAPHeader();
8. SOAPBody body=envelope.getSOAPBody();
E. 1. //Creating a SOAP message
2. MessageFactory factory = MessageFactory.newInstance();
3. SOAPMessage request = factory.createMessage();
4. //Accessing elements of the message
5. SOAPPart soapPart = request.getPart();
6. SOAPEnvelope envelope = soapPart.getEnvelope();
7. SOAPHeader header = envelope.getHeader();
8. SOAPBody body=envelope.getBody();
Answer: C

QUESTION NO: 140


Which two code fragments are valid for adding an attachment in SAAJ? (Choose two.)
A. SOAPMessage object.AttachmentPart attachment=request.createAttachementPart();
String stringContent = Update total? attachment.setContent(stringContent,text/plain?;
attachment.setContentID(update_total?; request.addAttachmentPart(attachment);
B. SOAPMessage object.Attachment attachment=request.createAttachement(); String
stringContent = Update total? attachment.setContent(stringContent,text/plain?;
attachment.setContentID(update_total?; request.addAttachment(attachment);
C. URL url = new URL(http://eshop.com/products/tb.jpg?; DataHandler datahandler =
new DataHandler(url); AttachmentPart attachment =
request.createAttachmentPart(dataHandler); attachment.setContentID (attached_image?;
request.addAttachmentPart(attachment);
D. URL url = new URL(http://eshop.com/products/tb.jpg?;DataHandler datahandler =
new DataHandler(url); Attachment attachment = request.createAttachment(dataHandler);
attachment.setContentID (attached_image?; request.addAttachment(attachment);
E. SOAPMessage object.Attachment attachment=request.newAttachement(); String
stringContent = Update total? attachment.setContent(stringContent,text/plain?;
attachment.setContentID(update_total?; request.setAttachment(attachment);
Answer: A,C
"Pass Any Exam. Any Time." - 100% Pass Guarantee

68

Oracle 1z0-862: Practice Exam

QUESTION NO: 141


A developer intends to use JAXR to update information in a UDDI registry.Which two
statements are true about JAXR? (Choose two.)
A. It requires the use of the JAX-RPC APIs.
B. It only allows clients to perform inquiries.
C. It provides a layer of abstraction over the particular registry provider.
D. If used carelessly, the API can allow clients to delete entries in the UDDI registry that
were not created by them.
E. It works with basic level 0 and advanced level 1 features.
Answer: C,E

QUESTION NO: 142


Which two statements are true about JAXR 1.0? (Choose two.)
A. Every JAXR RegistryObject has a unique key.
B. It provides a businessEntity data structure for storing publisher assertions.
C. It provides interfaces for managing the life cycle of registry objects.
D. It provides a bindingTemplate interface that is used to determine if a service
is deployed behind a firewall.
E. Clients can load custom capability profiles via a JAXR interface to enable advanced
features.
Answer: A,C

QUESTION NO: 143


Which two statements are true about JAXR? (Choose two.)
A. It provides an alternative to JNDI for Enterprise JavaBeans components implemented
as SEI.
B. It provides the least common denominator for diverse registry specifications and
standards.
C. It defines a pluggable provider architecture that supports registry specifications and
standards.
D. It supports a union of the best features of dominant registry specifications,
rather than a common intersection of features.
E. It provides a single interface that allows Java business logic to be added to a registry at
design time.
"Pass Any Exam. Any Time." - 100% Pass Guarantee

69

Oracle 1z0-862: Practice Exam


Answer: C,D

QUESTION NO: 144


Which statement is true about the mapping of a UDDI tModel in the JAXR 1.0
specification?
A. JAXR APIs cannot be used with a UDDI registry using tModels.
B. UDDI tModels are mapped to the JAXR ServiceBinding interface.
C. UDDI tModels are mapped to JAXR ServiceBinding and JAXR Organization.
D. UDDI tModels are mapped to JAXR ClassificationScheme and JAXR Concept.
Answer: D

QUESTION NO: 145


Which two statements are true about the mapping of UDDI categoryBag and
businessEntity elements in JAXR? (Choose two.)
A. The categoryBag and businessEntity are obsolete and NOT supported in JAXR 1.0.
B. The categoryBag is mapped to JAXR ServiceBinding, and businessEntity is mapped to
a JAXR Service.
C. The categoryBag is mapped to JAXR Collection of OrganizationTypes, and
businessEntity is mapped to a JAXR RegistryObject.
D. The categoryBag is mapped to JAXR Collection of Classifications, and businessEntity
is mapped to JAXR Organization.
E. Both can be associated with the UDDI tModel, which can also be represented in the
JAXR information model.
Answer: D,E

QUESTION NO: 146


Which two statements are true about JAXR support for XML registries? (Choose two.)
A. The CapabilityProfile tells a client the capability level of a registry.
B. UDDI registries must support ebXML to be compatible with JAXR.
C. The UnsupportedCapabilityException is processed for errors from non-Java providers.
D. The JAXR API declares methods as level 0 or level 1.
E. JAXR registry clients present an XML schema that defines the infomodel for the
provider.

"Pass Any Exam. Any Time." - 100% Pass Guarantee

70

Oracle 1z0-862: Practice Exam


Answer: A,D

QUESTION NO: 147


A Java client, running behind a firewall, needs to connect to a UDDI registry that is
deployed outside the firewall. The client is using the Java EE 5 implementation of JAXR.
The client creates a set of properties that specify the proxy host and port information for
the network in which the client is running.What are the remaining steps required by the
JAXR client to connect to the UDDI registry?
A. assign the properties to a connection factory and create the connection
B. specify the URL of the UDDI registry in the properties, assign the properties to a
connection factory, and create the connection
C. specify the URL of the UDDI registry in the properties, assign the properties to a
connection factory, assign the properties to a service binding, and create the connection
D. specify the URL for the UDDI registry and the tModel in the properties, specify the
search criteria for services, assign the properties to a service binding, and create the
connection
Answer: B

QUESTION NO: 148


Given:
10. binding.setValidateURI(false);
11. binding.setAccessURI("http://www.sun.com:8080/rt/");
This JAXR client interacts with a UDDI registry using binding as the JAXR
ServiceBinding object. Which statement is true about the code?
A. It is incorrect because setValidateURI cannot accept False as a parameter.
B. It allows the JAXR client to publish an incorrect URL for a service without an error.
C. It is incorrect because the setAccessURI cannot accept a URI with a port number.
D. It allows the JAXR client to redirect requests to an error page in case of an exception.
E. It is supported as written in the basic Java SE 6 API, but not in the Java EE 5 API.
Answer: B

"Pass Any Exam. Any Time." - 100% Pass Guarantee

71

Oracle 1z0-862: Practice Exam


QUESTION NO: 149
Which two statements are true about the interaction between a JAXR 1.0 client and a
UDDI registry? (Choose two.)
A. A JAXR client can delete an organization that it published.
B. A JAXR client CANNOT delete any of the entries in a UDDI registry.
C. A JAXR client must use HTTPS for updating the information in a UDDI registry.
D. A JAXR client can query and update the information in a UDDI registry using HTTP.
E. A JAXR client can delete an organization that it published only if the protect property
is set to False.
Answer: A,C

QUESTION NO: 150


Which JAXR interface allows querying a business registry using SQL commands?
A. javax.xml.registry.Connection at level 0
B. javax.xml.registry.FederatedConnection at Level 1
C. javax.xml.registry.BusinessQueryManager at level 0
D. javax.xml.registry.DeclarativeQueryManager at level 1
E. javax.xml.registry.BusinessQueryManager at level 1
F. javax.xml.registry.DeclarativeQueryManager at level 0
Answer: D

QUESTION NO: 151


Which two statements are true about the properties used to configure a JAXR
ConnectionFactory?(Choose two.)
A. They cannot be configured by the client.
B. A JAXR provider can define a set of provider-specific properties.
C. Configuration properties must never be qualified by a package name.
D. There are a set of standard properties that all JAXR providers must support.
E. All of the properties are implementation-specific and may vary between JAXR
providers.
Answer: B,D

QUESTION NO: 152

"Pass Any Exam. Any Time." - 100% Pass Guarantee

72

Oracle 1z0-862: Practice Exam


A developer creates a new CRM software product for a company that exposes EJBs as
Web services for other modules in the application suite.Which mechanism should be used
to manage transactions in an EJB-based endpoint?
A. the Java Transaction API or a similar API
B. the built-in JAX-WS runtime support for transactions
C. the built-in SOAP over HTTP transaction manager
D. the declarative transaction elements defined in the deployment descriptor
E. the built-in session aware transaction controller
Answer: D

QUESTION NO: 153


What are three profiles that WS-I has defined related to Web services security? (Choose
three.)
A. Basic Security (BSP)
B. JAX-WS Security
C. Rights Expression Language (REL)
D. JAXR Security
E. SAML Token
F. SAAJ
Answer: A,C,E

QUESTION NO: 154


A company is undergoing a massive security audit and they are examining how
an application complies with the WS-Security specification for Web service message
security standards.What are the three key standards combined by WS-Security? (Choose
three.)
A. SOAP
B. JSSE
C. XML Encryption
D. JAX-WS
E. UDDI
F. XML Signature
Answer: A,C,F
"Pass Any Exam. Any Time." - 100% Pass Guarantee

73

Oracle 1z0-862: Practice Exam

QUESTION NO: 155


A developer creates a new utility billing software package and considers the
benefits of EJB vs. servlet-based endpoints for upcoming development work. What
are two benefits of using servlet-based endpoints? (Choose two.)
A. method-level, declarative access control
B. easier invocation of servlet-based endpoints
C. session aware processing of service requests
D. better support for concurrent service calls
E. container-based, lifecycle management of endpoint instances
F. easier implementation of servlet-based endpoints
Answer: C,F

QUESTION NO: 156


A developer plans to refactor some of the company's existing Java EE 5 business
services, moving them out of the existing monolithic application and into Web
services.What are two benefits of exposing existing Java EE 5 functionality as a Web
service? (Choose two.)
A. improved manageability
B. more finely-grained
C. enhanced security
D. loose coupling of functionality
E. self-describing
F. automatic session management
Answer: D,E

QUESTION NO: 157


Which two statements are true about the interoperability of Web services developed using
the Java EE 5 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.

"Pass Any Exam. Any Time." - 100% Pass Guarantee

74

Oracle 1z0-862: Practice Exam


C. Only servlet-based endpoints are used when exposing services to non-Java clients.
D. Exposure is limited to simple arrays of concrete types as the signature of Web service
methods.
E. The service must be published in both the .NET and Java UDDIs.
F. Testing for WS-I Profile conformance improves interoperability.
Answer: D,F

QUESTION NO: 158


for a new application, one requirement is that developers must be able to produce
and consume messages conforming to the SOAP 1.1 specification and SOAP with
attachments.Which API should be used to meet this requirement?
A. JAXB
B. StAX
C. SAAJ
D. JAXP
E. JAX-WS
F. DOM
Answer: C

QUESTION NO: 159


How does JAXB associate XML schemas to Java objects?
A. via StAX API calls
B. through data binding
C. by using registration and discovery of services
D. by creating callback methods
E. via annotations
Answer: B

QUESTION NO: 160


A company needs to process DOM documents received from its customers through an
EJB3 endpoint.Which two APIs will a developer need to invoke to process these DOM
documents? (Choose two.)

"Pass Any Exam. Any Time." - 100% Pass Guarantee

75

Oracle 1z0-862: Practice Exam


A. UDDI
B. JAXR
C. JAXP
D. JAX-WS
E. JAXB
F. StAX
Answer: C,F

QUESTION NO: 161


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: B,D

QUESTION NO: 162


A company is evaluating Java application servers in order to use one as a standard in the
organization.What are two important facts that should be considered as they examine
possible tools? (Choose two.)
A. Java EE 5 vendors MUST support the WS-I Basic Profile.
B. Java EE 5 vendors are NOT required to support the WS-I Basic Profile.
C. Applications deployed on the Java EE 5 platform must conform to the WS-I Basic
Profile.
D. Applications deployed on the Java EE 5 platform are NOT required to conform to the
WS-I Basic Profile.
E. JCAPS is included in all Java EE 5 application servers.
F. JSSE is an optional extension in all Java EE 5 application servers.
Answer: A,D

QUESTION NO: 163

"Pass Any Exam. Any Time." - 100% Pass Guarantee

76

Oracle 1z0-862: Practice Exam


A developer is evaluating WS-I Basic Profile compliance claims from various software
vendors.Which two are correct evaluation criteria to use when examining claims from
different companies? (Choose two.)
A. WS-I Basic Profile does NOT address lower-layer internet protocols, such as TCP and
IP.
B. WS-I Basic Profile ensures that .NET and Java Web services are interoperable.
C. WS-I Basic Profile guarantees interoperability between WS-I Basic Profile compliant
services.
D. WS-I Basic Profile assures that application semantics are understood by all services
interacting with each other.
E. WS-I Basic Profile addresses the most common interoperability problems, but
does NOT guarantee interoperability between compliant services.
F. WS-I disallows RPC-style Web services.
Answer: A,E

QUESTION NO: 164


Which three techniques can be used to apply XML Digital Signatures to an XML
document? (Choose three.)
A. use detached signatures, where the digital signature covers sibling elements or external
data
B. use enveloping signatures, where the digital signature element encloses the data to be
signed
C. use enveloping signatures, where the digital signature is a child element of the data to
be signed
D. use enveloped signatures, where the digital signature is a child element of the data to
be signed
E. use enveloping signatures, where the digital signature element is a child element of the
data to be signed
Answer: A,B,D

QUESTION NO: 165


Given the XML elements:
<sender fname="john" lname="smith"/>
<sender lname="smith" fname="john"/>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

77

Oracle 1z0-862: Practice Exam


Which two statements are true? (Choose two.)
A. The two elements cannot be digitally signed.
B. The two elements will always produce different XML Digital Signatures.
C. The two elements will produce identical digital signatures with canonicalization.
D. The two elements will produce different digital signatures without canonicalization.
E. XML documents must be in canonical form before they are digitally signed.
Answer: C,E

QUESTION NO: 166


Which security specification can be used to allow single sign-on across multiple Web
services?
A. SSL
B. XKMS
C. SAML
D. XACML
E. Federated PKI
Answer: C

QUESTION NO: 167


Which three security technologies are included in WS-Security? (Choose three.)
A. security pattern injection
B. encryption
C. single sign-on
D. security tokens
E. digital signatures
Answer: B,D,E

QUESTION NO: 168


Which two are defined by SAML? (Choose two.)
A. a standard that describes an access control policy language for XML documents
B. a protocol by which clients can request assertions about subjects from SAML
authorities
C. a standard for including digital signatures in SOAP messages for Web services
"Pass Any Exam. Any Time." - 100% Pass Guarantee

78

Oracle 1z0-862: Practice Exam


that require single sign-on
D. the structure of the XML documents that transport authentication and authorization
information between services
E. an API in the form of the SAML reference implementation created by OASIS
Answer: B,D

QUESTION NO: 169


A developer in a business-to-business environment is required to build a Web service
client that can be strongly authenticated by a Web service. What must the developer do to
create the client?
A. use role-based security
B. implement form-based security
C. implement basic authentication
D. provide a digital certificate that is signed by a Certificate Authority
E. use Java keygen or similar tool to sign a certificate that can be trusted by business
partners
Answer: D

QUESTION NO: 170


An organization has business logic implemented in EJB components. Current
clients use container-managed, role-based security to access the business logic
using RMI. Management has determined that the business logic must be made available
to non-RMI clients using a Web service.Which container-managed Web service security
mechanism must the development team use to allow Web service clients to use the
current security model?
A. XKMS
B. XACML
C. XML Digital Signature
D. HTTP Basic Authentication
E. annotations mapped to the JAX-WS runtime
Answer: D

"Pass Any Exam. Any Time." - 100% Pass Guarantee

79

Oracle 1z0-862: Practice Exam


QUESTION NO: 171
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: C,D

QUESTION NO: 172


What are two reasons for choosing message-level security in a Web service? (Choose
two.)
A. to support the use of SSL
B. to support multiple transport protocols
C. to selectively encrypt message content
D. to remove security information from SOAP headers
E. to support encrypted attachments
Answer: B,C

QUESTION NO: 173


An online bookstore wants to make its book catalog available as a Web service. The
bookstore needs to track users of the service. The data exchanged consists of the ISBN
number, author's name, and price. Which two security mechanisms allow the bookstore to
track users without the overhead of encryption?(Choose two.)
A. SSL
B. WS-Security
C. XML Digital Signature
D. HTTP Basic Authentication

"Pass Any Exam. Any Time." - 100% Pass Guarantee

80

Oracle 1z0-862: Practice Exam


E. JAXR with HTTPS
Answer: B,D

QUESTION NO: 174


Two companies communicate using Web services in a business transaction.Which
mechanism is designed to ensure that business data CANNOT be renounced, or a
transaction denied, by either one?
A. integrity provided by public key certificates and digital signatures
B. confidentiality provided by asymmetric or symmetric cryptography
C. identity management provided by private keys and certificate authorities
D. non-repudiation provided though public key cryptography by digital signing
Answer: D

QUESTION NO: 175


A Web service developer notes the vast array of Web services specifications has changed
since the last large project. The developer begins research for a new project. The clients
are banks and exchanges with detailed security needs. The new service must be able
to describe its security needs, help other systems determine algorithms, exchange
identities and integrate well with SOAP.Which two does the research uncover? (Choose
two.)
A. SOAP Message Security builds on a base expressed in WS-SecurityPolicy.
B. WS-Trust describes security enhancements for SOAP anonymous key exchange.
C. WS-SecurityPolicy can express what needs to be protected via a WSDL.
D. WS-SecurityPolicy is a next generation specification that can replace WS-Security in
many cases.
E. WS-SecurityPolicy can use an advanced set of reference types when implemented in
the context of JAX-WS.
Answer: A,C

QUESTION NO: 176


Which two statements are true about Web services specifications (WS-*)? (Choose two.)
"Pass Any Exam. Any Time." - 100% Pass Guarantee

81

Oracle 1z0-862: Practice Exam


A. WS-Policy is a foundation for describing any WS-* features that are discoverable.
B. WS-SecureConversation most commonly uses WS-Message with HTTPS.
C. HTTP is to HTTPS as WS-Policy is to WS-SecurityPolicy.
D. WS-Policy is to WS-* as WSDL is to standard SOAP messaging.
Answer: A,D

QUESTION NO: 177


A customer who desires to use a secure Web service sends a user name token to a
Security Token Service (STS). The STS authenticates the client and returns a digitally
signed SAML token. The customer system presents the SAML token to the service and is
accepted as an authorized user for a request.Which statement is true?
A. This is an example of the Web Services specifications for SAML 1.0.
B. This authentication is handled by WS-Trust.
C. This scenario is the base case of WS-Security.
D. This is WS-ReliableMessaging viewed from the perspective of the secure system.
E. This is a case of the WS-SecurityPolicy being attached to a WSDL.
Answer: B

QUESTION NO: 178


A developer is creating a session bean EJB endpoint for a new application.Which three
statements are true about the service? (Choose three.)
A. It needs to be packaged as a WAR file.
B. It needs to be packaged as a JAR file.
C. It needs to be packaged as a .lib file.
D. The class must not be final or abstract.
E. It must implement the javax.ejb.SessionBean or javax.ejb.EntityBean interface.
F. It can be declared an EJB via the @Stateless annotation.
Answer: B,D,F

QUESTION NO: 179


A developer is migrating all of a company's JAX-RPC services into JAX-WS.Which two
statements are true? (Choose two.)
"Pass Any Exam. Any Time." - 100% Pass Guarantee

82

Oracle 1z0-862: Practice Exam


A. JAX-WS is essentially JAX-RPC 2.0, and is backwards compatible with JAX-RPC
services.
B. Deployment descriptors from JAX-RPC can be used under JAX-WS.
C. Deployment descriptors are no longer required.
D. javax.xml.ws.Service is a server-side API.
E. javax.xml.ws.Service is a client API.
F. sun-jaxws.xml is the standard Java EE deployment descriptor.
Answer: C,E

QUESTION NO: 180


Which three statements are true about JAXP APIs? (Choose three.)
A. They are a part of Java SE 6.
B. They allow Java developers to access and process XML data without having to
know XML or XML processing.
C. They do NOT support validation of XML documents against schemas.
D. It supports the Streaming API for XML.
E. It requires the Streaming API for XML.
F. They provide developers with a vendor and parser-implementation independent API to
process XML.
Answer: A,D,F

QUESTION NO: 181


Which code fragment correctly opens an input stream for processing using StAX?
A. StAxInputFactory foo = StAxInputFactory.newInstance();
FileInputStream bar = newFileInputStream("readit/readit.xml");
StAxStreamReader reader = foo.createStAxStreamReader(bar);
B. XMLInputFactory foo = XMLInputFactory.newInstance();
FileInputStream bar = newFileInputStream("readit/readit.xml");
XMLStreamReader reader = foo.createXMLStreamReader(bar);
C. StreamInputFactory foo = StreamInputFactory.newInstance();
InputStream bar = newInputStream("readit/readit.xml");
StreamReader reader = foo.createStreamReader(bar);
D. StAxInputFactory foo = StAxInputFactory.newInstance();
InputStream bar = newInputStream("readit/readit.xml");
XMLStreamReader reader = foo.createXMLStreamReader(bar);
Answer: B

"Pass Any Exam. Any Time." - 100% Pass Guarantee

83

Oracle 1z0-862: Practice Exam


QUESTION NO: 182
Which three statements about parsers are true? (Choose three.)
A. SAX and StAX are bi-directional.
B. DOM and StAX are bi-directional.
C. StAX is a push API, whereas SAX is pull.
D. SAX is a push API, whereas StAX is pull.
E. SAX and StAX are read-only.
F. SAX and DOM can write XML documents.
G. StAX and DOM can write XML documents.
Answer: B,D,G

QUESTION NO: 183


A company is creating an XML schema that describes various training materials available
for purchase by students.Given the namespace aliases and schema that appear in the
WSDL file for a document-style Web service:
xmlns:xsd="http://schemas.xmlsoap.org/wsdl/"
xmlns:book="http://www.sun.com/books"
...
<xsd:schema targetNamespace="http://www.sun.com/books">
<xsd:element name="bookInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

"Pass Any Exam. Any Time." - 100% Pass Guarantee

84

Oracle 1z0-862: Practice Exam


Which is a valid message element for this WSDL file?
A. <message name="SubmitBookInfoMessage">
<part name="bookInfo" type="xsd:bookInfo"/>
</message>
B. <message name="SubmitBookInfoMessage">
<part name="bookInfo" type="book:bookInfo"/>
</message>
C. <message name="SubmitBookInfoMessage">
<part name="bookInfo" element="xsd:bookInfo"/>
</message>
D. <message name="SubmitBookInfoMessage">
<part name="bookInfo" element="book:bookInfo"/>
</message>
E. <message name="SubmitBookInfoMessage">
<part element="bookInfo" type="xsd:bookInfo"/>
</message>
F. <message name="SubmitBookInfoMessage">
<part element="bookInfo" type="book:bookInfo"/>
</message>
Answer: D
Explanation:

"Pass Any Exam. Any Time." - 100% Pass Guarantee

85

También podría gustarte