nerdexam
Oracle

1Z0-860 · Question #54

Given: 10. ©Stateless 11. @RunAs("X") 12. public class SecureBeanOl implements SecureOl { 13. @EJB Secure02 secure02; 23. @RolesAllowed("A") 24. public void methodA0 { 25. secureO2.methodB0; 26.}…

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #54. The question stem and answer options stay visible for context.

Question

Given: 10. ©Stateless 11. @RunAs("X") 12. public class SecureBeanOl implements SecureOl { 13. @EJB Secure02 secure02; 23. @RolesAllowed("A") 24. public void methodA0 { 25. secureO2.methodB0; 26.} 10. ©Stateless 11. public void SecureBean02 implements Secure02{ 23. @RolesAllowed("A") 24. public void methodB0 { A user who is only in role A invokes SecureOl. methodA. Assuming NO other security-related metadata, what is the expected result?

Options

  • AAn exception is thrown at Line 25.
  • BAn exception is thrown at Line 13.
  • CMethodA cannot be invoked by this user.
  • DThe code executes without raising an exception.

Unlock 1Z0-860 to see the answer

You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-860 Practice