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

    A web browser need NOT always perform a complete request for a particular page that it suspects might NOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partial response from the web server; this response includes information, such as the Last-Modified date but NOT the body of the page. Which HTTP method will the browser use to retrieve such a partial response?

    A. GET
    B. ASK
    C. SEND
    D. HEAD
    E. TRACE
    F. OPTIONS

  • Question 52:

    Which annotation specifies the metadata as a javax.servlet.http.HttpSessionListener?

    A. @Listener
    B. @WebListener
    C. @WebSessionListener
    D. @HttpSessionListener

  • Question 53:

    Given a jar file packaged with three web fragments with names X, Y and Z respectively.

    Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment processing orders of X, Y, Z?

    (i)

    X Y Z

    (ii)

    X Y

    (iii) Y Z

    (iv)

    X Z

    (v)

    X Y

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

  • Question 54:

    Which element of a web application deployment descriptor element is used to specify a HTTP method to which the corresponding will not apply?

  • Question 55:

    Given the fragment from Java EE deployment descriptor:

    341.

    342.

    java.lang.Throwable 343. /mainError.jsp 344.

    345.

    346.

    java.lang.ClassCastException 347. /castError.jsp

    348.

    If the web application associated with the fragment above throws a ClassCastException. Which statement is true?

    A. The deployment descriptor is invalid.
    B. The container invokes mainError.jsp
    C. The container invokes castError.jsp
    D. Neither mainError.jsp nor castError.jsp is invoked.

  • Question 56:

    You are implementing a model component. You realize that an IOException might arise if you lose connection to the database. How should you address this?

    A. Implement multipathing to provide redundant connectivity to the database, thereby avoiding that risk of connection failure.
    B. Provide an error handler page, and use the page directive in the invoking ISP to redirect to that page if the error arises.
    C. Use the JSTL tag to take control if the exception arises.
    D. Surround the problem area with a try/catch block and implement appropriate recovery or fallback behavior.

  • Question 57:

    Your web application requires the adding and deleting of many session attributes during a complex use case. A bug report has come in that indicates that an important session attribute is being deleted too soon and a NullPointerException is being thrown several interactions after the fact. You have decided to create a session event listener that will log when attributes are being deleted so you can track down when the attribute is erroneously being deleted. Which listener class will accomplish this debugging goal?

    A. Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
    B. Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
    C. Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
    D. Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

  • Question 58:

    You have built a web application that you license to small businesses. The webapp uses a context parameter, called licenseExtension, which enables certain advanced features based on your client's license package. When a client pays for a

    specific service, you provide them with a license extension key that they insert into the of the deployment descriptor. Not every client will have this context parameter so you need to create a context listener to set up a default

    value in the licenseExtension parameter.

    Which code snippet will accomplish this goal?

    A. You cannot do this because context parameters CANNOT be altered programmatically.
    B. String ext = context.getParameter(`licenseExtension'); if ( ext == null ) { context.setParameter(`licenseExtension' DEFAULT); }
    C. String ext = context.getAttribute(`licenseExtension'); if ( ext == null ) { context.setAttribute(`licenseExtension' DEFAULT); }
    D. String ext = context.getInitParameter(`licenseExtension') if ( ext == null ) { context.resetInitParameter(`licenseExtension' DEFAULT); }
    E. String ext = context.getInitParameter(`licenseExtension') if ( ext == null ) { context.setInitParameter(`licenseExtension' DEFAULT); }

  • Question 59:

    A Client wants to retrieve a representation of a resource, for example an HTML page, allowing a cached version to be returning by an intermediary such a proxy server. Which HTTP method should it use?

    A. GET
    B. PUT
    C. POST
    D. DELETE

  • Question 60:

    A method call inside your servlet has thrown an IOException resulting from a lost network connection to a necessary resource. The servlet has determined that it will be unable to operate successfully fen few minutes, but expects to be able to resume operation after that period. How should this situation handled?

    A. The servlet should re-throw the exception to the web container.
    B. The servlet should throw a servletException to the web container.
    C. The servlet should throw an unavailableException to the web container.
    D. The servlet should redirect to an error page that reports the exception message.
    E. The servlet should retry the request until the method returns successfully.

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.