1Z0-899 Exam Details

  • Exam Code
    :1Z0-899
  • Exam Name
    :Java EE 6 Web Component Developer Certified Expert
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :108 Q&As
  • Last Updated
    :Dec 07, 2021

Oracle 1Z0-899 Online Questions & Answers

  • Question 31:

    You have a simple wpb application that has a single Front Controller servlet that dispatches to JSPs generate a variety of views. Several of these views require further database processing to retrieve the necessary order object using the orderID request parameter. To do this additional processing, you pass the request first to a servlet that is mapped to the URL pattern /WEB INF / retrieveOrder.do. in the deployment descriptor. This servlet takes two request parameters, the ordered and the jspID and the jspURL. It handles the database calls to retrieve and build the complex order objects and then it dispatches to the jspURL.

    Which code snippet in the Front Controller servlet dispatches the request to the order retrieval servlet?

    A. reques.setAttribute ("orderID", orderIS); request.setAttribute("jspURL", jspURL); = context.getRequestDispathcher ("/WEB INF / retrieveOrder.do"); view.forward(request, response)
    B. reques.setAttribute ("orderID", orderIS); request.setAttribute("jspURL", jspURL); Dispatcher view = request.getDispatcher (".WEB INF / retrieveOrder.do"); View.forwardRequest (request, response);
    C. String T= "/WEB INF / retrieveOrder.do?orderID = %dandjspURl = %s"; String url = String.format (T, ordered, jspURL); = context.getRequestDispatcher (url); View.forward (request, response) ;
    D. String T= "/WEB INF / retrieveOrder.do?orderID = %dandjspURl = %s"; String url = String.format (T, ordered, jspURL); = context.getRequestDispatcher (url); View.forwardRequest (request, response) ;

  • Question 32:

    Given an EL function declared with:

    Which two are true? (Choose two)

    A. The function method must have the signature: public String spin().
    B. The method must be mapped to the logical name "spin" in the web.xml file.
    C. The function method must have the signature: public String spinIt().
    D. The function method must have the signature: public static String spin().
    E. The function method must have the signature: public static String spinIt().
    F. The function class must be named Spinner, and must be in the package com.example.

  • Question 33:

    A web application wants to register a new servlet at runtime using one of the servletContext.addServlet methods.

    In the implementation of which method is it legal to perform this operation?

    A. AsyncListner.oncomplete
    B. Servlet.init
    C. ServletContextListener.contextInitialize
    D. ServletrequestListener.contextInitialize

  • Question 34:

    In a jsp-centric shopping cart application cart application to move a client's home address of Customer object into the shipping address of the order object. The address data is stored in a value object class called Address with properties for: street address, city, province, country, and postal code.

    Which two code snippets can be used to accomplish this goal?

  • Question 35:

    Given the annotation for MyServlet:

    @WebServlet{"/abc")

    @ServletSecurity (value=@HttpConstraint)

    public class Myservlet extends Httpservlet {

    Which two are true? (Choose two)

    A. No protection of user data must be performed by the transport.
    B. All user data must be encrypted by the transport.
    C. Access is to be denied independent of authentication state and identity.
    D. Only authenticated users are to be permitted.
    E. Access is to be permitted independent of authentication state and identity.

  • Question 36:

    A cookie may be set to be an HttpOnly cookie. Setting a cookie to be HttpOnly results in (Choose two)

    A. Client to not expose the cookie to client side scripting code
    B. Does not work with https protocol
    C. prevent certain types of cross-site scripting attacks
    D. There is no such thing as an HttpOnly cookie

  • Question 37:

    Which two statements are true about the security-related tags in a valid Java EE deployment descriptor? (Choose two)

    A. Every tag must have at least one tag.
    B. A tag can have many tags.
    C. A given tag can apply to only one tag.
    D. A given tag can contain from zero to many tags.
    E. It is possible to construct a valid tag such that, for a given resource user roles can access that resource.

  • Question 38:

    Which of following annotations can be used in a servlet class?

    (i)

    @javax.annotation.Resource

    (ii)

    @javax.annotation.PreDestroy

    (iii) @javax.annotation.security.RunAs

    (iv)

    @javax.annotation.security.RolesAllowed

    (v)

    @javax.servlet.annotation.WebServlet

    A. (v) only
    B. (i) and (v)
    C. (i), (ii), (iii) and (v)
    D. (i), (ii), (iv) and (v)
    E. (i), (ii), (iii), (iv) and (v)

  • Question 39:

    Which JSTL code snippet can be used to import content from another web resource?

    E. Importing cannot be done in JSTL. A standard action must be used instead.

  • Question 40:

    Given the java code snippet in contextInitialized method of a ServletContextListner:

    ServletRegistration.Dynamic sr = (ServletRegistration.Dynamic)sc.addServlet ("myServlet", myServletClass);

    sr.addMapping("/abc");

    sr.setServletSecurityElement(servletSecurityElement); sr.addMapping("/def");

    Which statement is true?

    A. "/abc" is mapped to "myservlet". The servletSecurityElementy applies to both "/abc" and "/def".
    B. Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/abc".
    C. Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/def".
    D. Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to both "/abc" and "/def".
    E. Both "/abc" and "/def" are mapped to "myservlet". The servletSecurityElementy applies to "/abc", but the behavior for "/def" is not specified.

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-899 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.