Skip to main content

1Z0-863 Real Exam Questions

Java Enterprise Edition 5 Web Services Developer Certified Professional Upgrade

96 questions available · Page 1 of 10

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

A developer must create a program to parse a medium-sized XML file looking for an instance of a specific element. Once the developer has found the element, the value must be updated and saved to disk.

Which two XML parsing APIs should be used in this situation? (Choose two.)

  1. A

    SAX

  2. B

    DOM

  3. C

    StAX

  4. D

    JAXM

  5. E

    SAAJ

Show answer and explanation

Correct answers: B, C

Question 2 Single choice

Which statement is true about JAX-WS dynamic invocation?

  1. A

    Dynamic invocation clients use RPC typed interfaces to invoke the Web service.

  2. B

    Dynamic invocation lets clients access a Web service without a WSDL.

  3. C

    Dynamic invocation clients are bound at design-time to a single Web service.

  4. D

    Dynamic invocation requires the client to statically configure the Web service proxy.

  5. E

    The dynamic proxies provide dynamic invocation in JAX-WS.

Show answer and explanation

Correct answer: B

Question 3 Multiple choice

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

  1. A

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

  2. B

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

  3. C

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

  4. D

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

  5. E

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

  6. F

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

Show answer and explanation

Correct answers: D, F

Question 4 Single choice

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?

  1. A

    Dispatch is a high-level API that helps hide the complexity of XML.

  2. B

    REST services can be consumed with the Dispatch API and XML/HTTP bindings.

  3. C

    The Dispatch interface supports the use JAXP to bind data.

  4. D

    The Dispatch interface is represented internally as a SOAP message.

Show answer and explanation

Correct answer: B

Question 5 Single choice

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?

7

  1. A

    web.xml

  2. B

    server.xml

  3. C

    ejb-jar.xml

  4. D

    service-config.xml

Show answer and explanation

Correct answer: A

Question 6 Multiple choice

Which two statements are true about the interoperability of Web services developed using the Java EE 5 platform? (Choose two.)

  1. A

    Interoperability is improved by restricting access only to Java clients.

  2. B

    EJB-based endpoints are more difficult for .NET clients to access.

  3. C

    Only servlet-based endpoints are used when exposing services to non-Java clients.

  4. D

    Exposure is limited to simple arrays of concrete types as the signature of Web service methods.

  5. E

    The service must be published in both the .NET and Java UDDIs.

  6. F

    Testing for WS-I Profile conformance improves interoperability.

Show answer and explanation

Correct answers: D, F

Question 7 Multiple choice

Which two statements are true about the role of XML schemas in Web services? (Choose two.)

  1. A

    DTDs provide stricter data typing than XML schemas.

  2. B

    XML schemas can be used to validate the organization of XML documents.

  3. C

    XML schemas contain a vocabulary, content model and data types.

  4. D

    DTDs are easier to map to Java than XML schemas, and so remain more popular.

  5. E

    The W3C recommends that XML schemas be referred to as XSD.

    6

  6. F

    The W3C has designated that XML schemas be referred to as WXS.

Show answer and explanation

Correct answers: B, C

Question 8 Multiple choice

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

  1. A

    X.509 and XKMS

  2. B

    XACML and XKMS

  3. C

    SSL and mutual authentication

  4. D

    XML Encryption and XML Digital Signature

  5. E

    Private network and XML Signature

Show answer and explanation

Correct answers: C, D

Question 9 Multiple choice

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

  1. A

    Dispatch is generic and can be instantiated for use with XML or SOAP.

  2. B

    The Web service can be either SOAP or REST-based.

  3. C

    The Dispatch instance must be created in Service.Mode.PAYLOAD mode in order to use SOAP.

  4. D

    Instantiating Dispatch Service.Mode.MESSAGE mode allows you to work directly with the
    XML message.

  5. E

    It is unnecessary to use JAXB with the Dispatch API.

Show answer and explanation

Correct answers: A, B

Question 10 Single choice

A developer is given a WSDL for an existing Web service.

What is the correct sequence of steps that must be taken to use that Web service?

  1. A

    parse the WSDL using JAXP, connect to the service using RMI, and then parse the XML using SAX

  2. B

    use a utility (such as wsimport) to read the WSDL and generate a service endpoint interface

  3. C

    register the WSDL with wsgen, bind to the stubs, and then call methods on the interface

  4. D

    receive the service using RMI, parse the XML using JAXP, create Java objects using JAXR, and then return those Java objects

Show answer and explanation

Correct answer: B