1Z0-897 Exam Details

  • Exam Code
    :1Z0-897
  • Exam Name
    :Java EE 6 Web Services Developer Certified Expert
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :120 Q&As
  • Last Updated
    :Dec 13, 2021

Oracle 1Z0-897 Online Questions & Answers

  • Question 1:

    Given the class:

    Choose the URL path that would result in a call to getToken()? (Choose one)

    A. /id/value
    B. /resource/id
    C. /resource/id/name
    D. /resource/id/value/token

  • Question 2:

    Given the resource class fragment:

    Choose the code fragment below that would secure access only to the Resource update() method (Choose one):

    A. /rest GET POST
    B. /rest POST
    C. /rest/id POST GET
    D. D. /id POST

  • Question 3:

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

    A. Send arrays of nulls to ensure .NET and Java clients receive the same data.
    B. Define data types early in the integration cycle.
    C. Use complex data types to reduce the number of items exchanged.
    D. Test interoperability at every stage of development.
    E. Insert conformance headers in all SOAP messages.
    F. Keep data types simple for speed and stability.

  • Question 4:

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

    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.

  • Question 5:

    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.

  • Question 6:

    Given the JAX-RS root resource class fragment:

    Choose the statement that best describes the configuration that would be required to support the access control constraint shown:

    A. No further configuration is required - the JavaEE runtime will pick up the security constraint and configure the web container to match.
    B. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, so the proper information can be propagated to the EJB container.
    C. The developer will have to turn on authentication in the web container configuration file, so that all incoming requests are authenticated in order to be processed.
    D. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, and then map web-tier roles to ejb-tier roles, since the JAX- RS and EJB runtimes cannot use the same set of roles.

  • Question 7:

    Which of the following is NOT a correct way of configuring handlers on a Web Service client ? (Choose one)

    A. Specify the handlers in jaxws-catalog.xml and make it available in the classpath of the client
    B. Create a handlerchain as list of handlers and call setHandlerChain() with that list on the Binding object.
    C. Programmatically configure the handlers by setting a custom HandlerResolver on the service instance and create proxies from that service.
    D. Specify handlers in handler chain configuration XML file and add @HandlerChain referencing handler configuration file to the Web Service references for clients running in JavaEE Container.

  • Question 8:

    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.

  • Question 9:

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

    A. @WebService public class MyService { @WebServiceContext WebServiceContext ctxt; public String echo(String str) { ... }
    B. @WebService public class MyService { WebServiceContext ctxt; public String echo(String str) { ctxt = jndi.lookup("java:com/env/WebServiceContext"); }
    C. @WebService public class MyService { @Inject WebServiceContext ctxt; public String echo(String str) { ... }
    D. @WebService public class MyService { @Resource WebServiceContext ctxt; public String echo(String str) { ... }

  • Question 10:

    Which security technologies are not included in WS-Security?

    A. encryption
    B. handshake for credential exchange and session establishment
    C. security tokens
    D. digital signatures

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-897 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.