1Z0-899 | The Secret of Oracle 1Z0-899 dumps


Q11. Given a web fragment jar file, where should we put the web fragment.xml inside the jar file? 

A. WEB-INF 

B. META-INF 

C. WEB-INF/lib 

D. WEB-INF/classes 

E. META-INF/services 

Answer:

Q12.  

// class body code here 

Q13. Which two are true about the JSTL core iteration custom tags? (Choose two.) 

A. It may iterate over arrays, collections, maps, and strings. 

B. The body of the tag may contain EL code, but not scripting code. 

C. When looping over collections, a loop status object may be used in the tag body. 

D. It may iterate over map, but only the key of the mapping may be used in the tag body. 

E. When looping over integers (for example begin= ‘1’ end= ‘10’), a loop status object may not be used in the tag body. 

Answer: AC 

Q14. Which statement is true about web container session management? 

A. Access to session-scoped attributes is guaranteed to be thread-safe by the web container. 

B. To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method. 

C. If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client. 

D. The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session. 

Answer: C

Q15. Which of the following are attributes of the annotation javax.servlet.annotation.WebFiler? 

-Name -servletNames -urlPatterns -dispatcherTypes -supportAsync 

A. (iii) only 

B. (iii) and (iv) 

C. (ii), (iii) and (iv) 

D. (iii), (iv) and (v) 

E. (ii), (iii), (iv) and (v) 

Answer:

Q16. 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 <c:catch> 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. 

Answer:

Q17. View the Exhibit. 

Given the web application deployment descriptor elements: 

11. <filter> 

12. <filter-name>ParamAdder</filter-name> 

13. <filter-class>com.example.ParamAdder</filter-class> 

14. </filter> ... 

31. <filter-mapping> 

32. <filter-name>ParamAdder</filter-name> 

33. <servlet-name>Destination</servlet-name> 

34. </filter-mapping> 

... 

55. <servlet-mapping> 

56. <servlet-name>Destination</servlet-name> 

57. <url-pattern>/dest/Destination</url-pattern> 

58. </servlet-mapping> 

What is the result of a client request of the Source servlet with no query string? 

A. The output “filterAdded = null” is written to the response stream. 

B. The output “filterAdded = addedByFilter” is written to the response stream. 

C. An exception is thrown at runtime within the service method of the Source servlet. 

D. An exception is thrown at runtime within the service method of the Destination servlet. 

Answer:

Q18. Which describes a trigger that causes a call to an AsyncListener? 

A. Completion of processing 

B. Receipt of a new request from the same client 

C. Addition of a new filter to the processing stream for this request 

D. Completion of each timer interval 

Answer: B

Q19. View the Exhibit. 

Which two technologies would be suitable for use as Front Controller elements? (Choose two) 

A. JSP 

B. Servlet 

C. Filter 

D. POJO 

E. Custom Tag 

Answer: AB 

Q20.  

<role-name>Admin</role-name>