1Z0-858 Exam Questions & Answers

Exam Code: 1Z0-858

Exam Name: Java Enterprise Edition 5 Web Component Developer Certified Professional Exam

Updated: Apr 22, 2024

Q&As: 276

At Passcerty.com, we pride ourselves on the comprehensive nature of our 1Z0-858 exam dumps, designed meticulously to encompass all key topics and nuances you might encounter during the real examination. Regular updates are a cornerstone of our service, ensuring that our dedicated users always have their hands on the most recent and relevant Q&A dumps. Behind every meticulously curated question and answer lies the hard work of our seasoned team of experts, who bring years of experience and knowledge into crafting these premium materials. And while we are invested in offering top-notch content, we also believe in empowering our community. As a token of our commitment to your success, we're delighted to offer a substantial portion of our resources for free practice. We invite you to make the most of the following content, and wish you every success in your endeavors.


Download Free Oracle 1Z0-858 Demo

Experience Passcerty.com exam material in PDF version.
Simply submit your e-mail address below to get started with our PDF real exam demo of your Oracle 1Z0-858 exam.

Instant download
Latest update demo according to real exam

*Email Address

* Our demo shows only a few questions from your selected exam for evaluating purposes

Free Oracle 1Z0-858 Dumps

Practice These Free Questions and Answers to Pass the Others Oracle Certifications Exam

Questions 1

What is true about Java EE authentication mechanisms?

A. If your deployment descriptor correctly declares an authentication type of CLIENT_CERT, your users must have a certificate from an official source before they can use your application.

B. If your deployment descriptor correctly declares an authentication type of BASIC, the container automatically requests a user name and password whenever a user starts a new session.

C. If you want your web application to support the widest possible array of browsers, and you want to perform authentication, the best choice of Java EE authentication mechanisms is DIGEST.

D. To use Java EE FORM authentication, you must declare two HTML files in your deployment descriptor, and you must use a predefined action in the HTML file that handles your user's login.

Show Answer
Questions 2

A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jsp exists in the web application and contains only this JSP code:

1.

<%@ taglib prefix="x"

2.

tagdir="/WEB-INF/tags/alpha" %>

3.

The sort.jsp page is requested.

Which two are true? (Choose two.)

A. Tag files can only be accessed using a tagdir attribute.

B. The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

C. The sort.jsp page produces a translation error because a taglib directive must always have a uri attribute.

D. Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB-INF/tags.

E. The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is created and added to the web application.

F. The sort.jsp page produces a translation error because the tagdir attribute on lines 1-2 specifies a directory other than /WEB-INF/tags, which is illegal.

Show Answer
Questions 3

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);}

Show Answer
Questions 4

Which three are described in the standard web application deployment descriptor? (Choose three.)

A. session configuration

B. MIME type mappings

C. context root for the application

D. servlet instance pool configuration

E. web container default port bindings

F. ServletContext initialization parameters

Show Answer
Questions 5

Given:

3.

public class MyTagHandler extends TagSupport {

4.

public int doStartTag() {

5.

// insert code here

6.

// return an int

7.

}

8.

// more code here ...

18. }

There is a single attribute foo in the session scope.

Which three code fragments, inserted independently at line 5, return the value of the attribute? (Choose three.)

A. Object o = pageContext.getAttribute("foo");

B. Object o = pageContext.findAttribute("foo");

C. Object o = pageContext.getAttribute("foo",PageContext.SESSION_SCOPE);

D. HttpSession s = pageContext.getSession();Object o = s.getAttribute("foo");

E. HttpServletRequest r = pageContext.getRequest();Object o = r.getAttribute("foo");

Show Answer

Viewing Page 1 of 3 pages. Download PDF or Software version with 276 questions