1Z0-899 Exam Questions
197 real 1Z0-899 exam questions with expert-verified answers and explanations. Page 3 of 4.
- Question #101
Which is true about the web container request processing model?
- Question #102
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true? (Choose two.)
- Question #103
For which three events can web application event listeners be registered? (Choose three.)
- Question #104
A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal? (Choose two.)
- Question #105
Your web site has many user-customizable features, for example font and color preferences on web pages. Your IT department has already built a subsystem for user preferences using...
- Question #106
Which interface must a session attribute implement if it needs to be notified when a web container persists a session?
- Question #107
Which interface must a class implement so that instances of the class are notified after any object is added to a session?
- Question #108
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which su...
- Question #109
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 attrib...
- Question #110
A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use...
- Question #111
Which statement is true about web container session management?
- Question #112
What is the purpose of session management?
- Question #113
Which two are required elements for the <web-resource-collection> element of a web application deployment descriptor? (Choose two.)
- Question #114
Given the two security constraints in a deployment descriptor: If the two security constraints have the same url-pattern and http-method, which two, inserted independently at line...
- Question #115
Given the security constraint in a DD: And given that "MANAGER" is a valid role-name, which four are true for this security constraint? (Choose four.)
- Question #116
Which element of a web application deployment descriptor <security-constraint> element is required?
- Question #117
Which ensures that a JSP response is of type "text/plain"?
- Question #118
You are writing a JSP that includes scriptlet code to declare a List variable and initializes that variable to an ArrayList object.Which two JSP code snippets can you use to import...
- Question #119
Every page of your web site must include a common set of navigation menus at the top of the page. This menu is static HTML and changes frequently, so you have decided to use JSP's...
- Question #120
You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately, after extensive load testing, you have discovered several race conditions...
- Question #121
Which two are valid and equivalent? (Choose two.)
- Question #122
To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Documen...
- Question #123
Given tutorial.jsp: Which, when added to the web application deployment descriptor, ensures that line 5 is included verbatim in the JSP output?
- Question #124
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. W...
- Question #125
You have built a collection of custom tags for your web application. The TLD file is located in the file: /WEB-INF/myTags.xml. You refer to these tags in your JSPs using the symbol...
- Question #126
You have a new IT manager that has mandated that all JSPs must be refactored to include no scritplet code. The IT manager has asked you to enforce this. Which deployment descriptor...
- Question #127
Which EL expression evaluates to the request URI?
- Question #128
the output "one, two and three"? (Choose two.)
- Question #129
A web application allows the HTML title banner to be set using a servlet context initialization parameter called titleStr.Which two properly set the title in this scenario? (Choose...
- Question #130
You have created a web application that you license to real estate brokers. The webapp is highly customizable including the email address of the broker, which is placed on the foot...
- Question #131
You are creating an error page that provides a user-friendly screen whenever a server exception occurs. You want to hide the stack trace, but you do want to provide the exception's...
- Question #132
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three.)
- Question #133
Which three EL expressions, inserted at line 16, are valid and evaluate to "d"? (Choose three.)
- Question #134
Given a web application in which requests must have an HTTP header SEQUENCE that always contains two values, which EL expression will return the second value for the SEQUENCE heade...
- Question #135
Which two successfully translate and result in a value of true? (Choose two.) 6. <% int[] nums = {42, 420, 4200}; 7. request.setAttribute("foo", nums); %>
- Question #136
What is the result?
- Question #137
You are building a dating web site. The client's date of birth is collected along with lots of other information. The Person class has a derived method, getAge():int, which returns...
- Question #138
A developer wants to use EL to invoke a function using ${my:bloof("foof")}. Which is always true?
- Question #139
Which is a valid TLD element for a function named my using myMethod?
- Question #140
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.)
- Question #141
You are building a dating web site. The client's date of birth is collected along with lots of other information. You have created an EL function with the signature: calcAge(java.u...
- Question #142
You have built your own light-weight templating mechanism. Your servlets, which handle each request, dispatch the request to one of a small set of template JSP pages. Each template...
- Question #143
Your web application views all have the same header, which includes the <title> tag in the <head> element of the rendered HTML. You have decided to remove this redundant HTML code...
- Question #144
Which JSTL code snippet produces the output "big number" when X is greater than 42, but outputs "small number" in all other cases?
- Question #145
Assume the scoped attribute priority does NOT yet exist.Which two create and set a new request- scoped attribute priority to the value "medium"? (Choose two.)
- Question #146
Which two are true about the JSTL core iteration custom tags? (Choose two.)
- Question #147
Which JSTL code snippet can be used to perform URL rewriting?
- Question #148
Which two JSTL URL-related tags perform URL rewriting? (Choose two.)
- Question #149
Which JSTL code snippet can be used to import content from another web resource?
- Question #150
Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (Choose two.)