You want to allow one set of roles to POST to a resource and another set of roles to GET it.
Which two configuration options should you use? (Choose two.)
B,D
Given the code fragment:
Assuming this bean is used only in the code fragment above, how long will the injected Bean
instance be available?
D
Which is a valid description of REST?
D
Explanation:
Reference:
https://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
Given:
Which annotation do you use on line 1 to ensure that clients immediately time out when attempting
to concurrently invoke callMethod () while another client is already accessing the bean?
D
Explanation:
Reference:
http://tomee.apache.org/examples-trunk/access-timeout/
Which statement is true about the relationship between HTTP and WebSockets?
D
A Java EE application that uses an EJB container must communicate with a legacy system developed
using non-Java technologies.
Which two Java EE technologies can be used in the integration tier of the application? (Choose two.)
A,B
Which code snippet indicates that the page you are designing is capable of handling errors?
C
Which two elements CANNOT be injected by using an @Inject annotation? (Choose two.)
B,D
Explanation:
Reference:
https://docs.oracle.com/javaee/6/api/javax/inject/Inject.html
Given the following code:
What should you do at line 1 to enable this servlet receive request data without blocking?
D
Identify two valid WebSocket message types for which you can register handlers. (Choose two.)
B,C
Explanation:
Reference:
https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html
You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor
Facelet page, the Widget class, and a simple WidgetEditor backing bean, which contains a reference
to the current Widget instance.
Given the code fragment from the Widget class:
Given the code fragment from the Facelet page:
The page displays Conversion Error when a user fills out all the form fields and clicks the Save button.
Which step do you perform to fix this problem?
D
You created two filters for your web application by using the @WebFilter annotation, one for
authorization and the other for narrowing results by the provided search criteria. The authorization
filter must be invoked first.
How can you specify this?
A
Which of these can be a JPA entity?
A
Which two features are provided by the JSTL Core library for a JSP? (Choose two.)
A,D
Explanation:
Reference:
https://www.journaldev.com/2090/jstl-tutorial-jstl-tags-example
How can a servlet indicate to the browser that cookie data should be sent over a secure connection?
A
Explanation:
Reference:
https://docs.oracle.com/javaee/6/api/?javax/servlet/http/Cookie.html