1Z0-899 Exam Questions
197 real 1Z0-899 exam questions with expert-verified answers and explanations. Page 2 of 4.
- Question #51
Given the annotation for MyServlet: @WebServlet{"/abc") @ServletSecurity (value=@HttpConstraint) public class Myservlet extends Httpservlet { Which two are true? (Choose two)
- Question #52
Which of the following annotations relate to security in a servlet? (i) @WebSecurity (ii) @RolesAllowed (iii) @WebConstraint (iv) @HttpConstraint (v) @Servletsecurity
- Question #53
Which element of a web application deployment descriptor <web-resource-collection> element is used to specify a HTTP method to which the corresponding <security-constraint> will no...
- Question #54
Which two statements are true about the security-related tags in a valid Java EE deployment descriptor? (Choose two)
- Question #55
A cookie may be set to be an HttpOnly cookie. Setting a cookie to be HttpOnly results in (Choose two)
- Question #56
A popular Ajax framework and its companion widget library contain several hundreds of files of different types (.js, .ess, .html). Your company has mandated that all its web applic...
- Question #57
Which two actions protect a resource file from direct HTTP access within a web application? (Choose two)
- Question #58
A developer is designing a multi-tier web application and discovers a need to log each incoming client request. Which two patterns, taken independently, provide a solution for this...
- Question #59
Which three are true about the HttpServletRequestWrapper class? (Choose three.)
- Question #60
Which two are valid values for the <transport-guarantee> element inside a <securityconstraint> element of a web application deployment descriptor? (Choose two.)
- Question #61
Given a web application in which the request parameter productID contains a product identifier. Which two EL expressions evaluate the value of the productID? (Choose two.)
- Question #62
Given the function invocation expression ${my:reverse("42")}, and that the function reverse is mapped into a Java method called reverse, which two are valid signatures for the Java...
- Question #63
For an HttpServletResponse response, which two create a custom header? (Choose two.)
- Question #64
For a given ServletResponse response, which two retrieve an object for writing text data? (Choose two.)
- Question #65
Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
- Question #66
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-ent...
- Question #67
You are creating a servlet that generates stock market graphs. You want to provide the web browser with precise information about the amount of data being sent in the response stre...
- Question #68
Which two prevent a servlet from handling requests? (Choose two.)
- Question #69
Given an HttpSession session, a ServletRequest request, and a ServletContext context, which retrieves a URL to /WEB-INF/myconfig.xml within a web application?
- Question #70
You are creating a content management system (CMS) with a web application front-end. The JSP that displays a given document in the CMS has the following general structure: The cita...
- Question #71
Assume the tag handler for a st:simple tag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?
- Question #72
Under what two circumstances is the setJspBody method NOT called in a tag class that implements the SimpleTag interface? (Choose two.)
- Question #73
Click the Exhibit button. As a maintenance feature, you have created this servlet to allow you to upload and remove files on your web server. Unfortunately, while testing this serv...
- Question #74
You are building a web application that will be used throughout the European Union; therefore, it has significant internationalization requirements. You have been tasked to create...
- Question #75
A developer is designing a web application that must verify for each request: The originating request is from a trusted network. The client has a valid session. The client has been...
- Question #76
A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of rem...
- Question #77
A developer is designing the presentation tier for a web application that relies on a complex session bean. The session bean is still being developed and the APIs for it are NOT fi...
- Question #78
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the...
- Question #79
A developer is designing the presentation tier for a web application which requires a centralized request handling to complete common processing required by each request. Which des...
- Question #80
A developer is designing a web application that must support multiple interfaces, including: an XML web service for B2B HTML for web-based clients WML for wireless customers .Which...
- Question #81
A developer has created a web application that includes a servlet for each use case in the application. These servlets have become rather difficult to maintain because the request...
- Question #82
A developer has created a special servlet that is responsible for generating XML content that is sent to a data warehousing subsystem. This subsystem uses HTTP to request these lar...
- Question #83
Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate...
- Question #84
Which two are characteristics of the Intercepting Filter pattern? (Choose two.)
- Question #85
Which two are characteristics of the Front Controller pattern? (Choose two.)
- Question #86
Which two are characteristics of the Service Locator pattern? (Choose two.)
- Question #87
Which two are characteristics of the Transfer Object design pattern? (Choose two.)
- Question #88
A developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, t...
- Question #89
A developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, b...
- Question #90
The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. While reviewing the application, a developer realizes that in multiple places within...
- Question #91
In an n-tier application, which two invocations are typically remote, not local? (Choose two.)
- Question #92
You are designing an n-tier Java EE application. You have already decided that some of your JSPs will need to get data from a Customer entity bean. You are trying to decide whether...
- Question #93
Which defines the welcome files in a web application deployment descriptor?
- Question #94
Which three web application deployment descriptor elements allow web components to gain references to resources or EJB components? (Choose three.)
- Question #95
Which three are true about servlet filters? (Choose three.)
- Question #96
A web component accesses a local EJB session bean with a component interface of com.example.Account with a home interface of com.example.AccountHome and a JNDI reference of ejb/Acc...
- Question #97
Within the web application deployment descriptor, which defines a valid JNDI environment entry?
- Question #98
You have built a web application with tight security. Several directories of your webapp are used for internal purposes and you have overridden the default servlet to send an HTTP...
- Question #99
You have created a servlet that generates weather maps. The data for these maps is calculated by a remote host. The IP address of this host is usually stable, but occasionally does...
- Question #100
Given the web application deployment descriptor elements: Which element, inserted at line 27, causes the ParamAdder filter to be applied when MyServlet is invoked by another servle...