Free Oracle 1Z0-860 Exam Questions (page: 13)

methodshavetransaction attribute NOT SUPPORTTED.
Answer(s): B
QUESTION: 33
A developer writes an interceptor class called Foolnterceptor containing the following
Aroundlnvoke method:
11. @Aroundlnvoke
12. public Object intercept(lnvocationContext ctx) {
13. return "intercepted"; 14.}
Foolnterceptor is applied to a business method in a stateless session bean:
11. @lnterceptors(Foolnterceptor.class)
12. public String testzero(int i) {
13. return (i == 0) ? "zero""not zero";
14. }
Which describes the result when a client invokes the testzero method with a value of 1?

A. The intercept method is NEVER invoked.
B. The clientreceivesareturnvalueof "zero".
C. The client receivesa returnvalue of "not zero".
D. The client receivesareturn value of "intercepted".
Answer(s): D
QUESTION: 34
A developer implements a session bean which acts as a session facade for an application. This
means that clients will only see this session bean's interface which offers the application
interface.
There are three distinct roles known at development time"user", "admin", and "guest". The
majority of the methods wil be used by role "user". Al methods must have role permissions
active and roles may be added or changed in the future.
Which two scenarios are correct? (Choose two.)

A. The developer annotates the bean class with @PermitAII and annotates the methods used
by role "guest" or "admin" individually.
B. The developer annotates the bean class with @DenyAII and annotates the methods used by
role "user", "guest", or "admin" individually.
C. The developer defines individual method permissions for the methods used by roles "user",
"guest", and "admin" in the deployment descriptor.
D. The developer annotates the bean class with @RolesAl owed("user") and annotates the
methods used by role "guest" or "admin" individually.
E. Thedeveloper defines a method permission with method name "*" and role "user" and adds
individual method permissions for the methods used by roles "guest" and "admin" in the
deployment descriptor.
Answer(s): D, E
QUESTION: 35


14

Viewing page 13 of 108



Post your Comments and Discuss Oracle 1Z0-860 exam prep with other Community members:

1Z0-860 Exam Discussions & Posts