1Z0-858 Exam Details

  • Exam Code
    :1Z0-858
  • Exam Name
    :Java Enterprise Edition 5 Web Component Developer Certified Professional
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :276 Q&As
  • Last Updated
    :Jul 12, 2026

Oracle 1Z0-858 Online Questions & Answers

  • Question 171:

    Your company has a corporate policy that prohibits storing a customer's credit card number in any corporate database. However, users have complained that they do NOT want to re-enter their credit card number for each transaction. Your management has decided to use client-side cookies to record the user's credit card number for 120 days. Furthermore, they also want to protect this information during transit from the web browser to the web container; so the cookie must only be transmitted over HTTPS. Which code snippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user's web browser?

    A. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    B. setAge(10368000);13. response.addCookie(c);
    C. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setHttps(true);12.
    D. setMaxAge(10368000);13. response.setCookie(c);
    E. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    F. setMaxAge(10368000);13. response.addCookie(c);
    G. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setHttps(true);12.
    H. setAge(10368000);13. response.addCookie(c);
    I. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    J. setAge(10368000);13. response.setCookie(c);

  • Question 172:

    What is the purpose of session management?

    A. To manage the user's login and logout activities.
    B. To store information on the client-side between HTTP requests.
    C. To store information on the server-side between HTTP requests.
    D. To tell the web container to keep the HTTP connection alive so it can make subsequent requests without the delay of making the TCP connection.

  • Question 173:

    Given an EL function foo, in namespace func, that requires a long as a parameter and returns a Map, which two are valid invocations of function foo? (Choose two.)

    A. ${func(1)}
    B. ${foo:func(4)}
    C. ${func:foo(2)}
    D. ${foo(5):func}
    E. ${func:foo("easy")}
    F. ${func:foo("3").name}

  • Question 174:

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

    You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various

    pages can render the data in different ways. This servlet takes on request parameter:

    objectID. Assume that this servlet is mapped to the URL pattern: /WEB- INF/data.

    In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML

      list from the data.

      Which JSTL code snippet will accomplish this goal?

      A. $ {item}
      B. $ {item}
      C. $ {item}
      D. $ {item}

    • Question 176:

      Which two about WAR files are true? (Choose two.)

      A. WAR files must be located in the web application library directory.
      B. WAR files must contain the web application deployment descriptor.
      C. WAR files must be created by using archive tools designed specifically for that purpose.
      D. The web container must serve the content of any META-INF directory located in a WAR file.
      E. The web container must allow access to resources in JARs in the web application library directory.

    • Question 177:

      Given an HttpServletRequest request:

      22.

      String id = request.getParameter("jsessionid");

      23.

      // insert code here

      24.

      String name = (String) session.getAttribute("name");

      Which three can be placed at line 23 to retrieve an existing HttpSession object? (Choose three.)

      A. HttpSession session = request.getSession();
      B. HttpSession session = request.getSession(id);
      C. HttpSession session = request.getSession(true);
      D. HttpSession session = request.getSession(false);
      E. HttpSession session = request.getSession("jsessionid");

    • Question 178:

      Which two JSTL URL-related tags perform URL rewriting? (Choose two.)

      A. url
      B. link
      C. param
      D. import
      E. redirect

    • Question 179:

      Place the events in the order they occur.

      Select and Place:

    • Question 180:

      Which two security mechanisms can be directed through a sub-element of the element in a web application deployment descriptor? (Choose two.)

      A. authorization
      B. data integrity
      C. confidentiality
      D. authentication

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