nerdexam
Oracle

1Z0-860 · Question #39

A developer creates the following session bean: 10. ©Stateless 11. @RolesAllowed("SECRET") 12. public class MyBean implements Mylnterface 13. public void methodAOJ} 14. @PermitAII 15. public void…

The correct answer is C. A user without any role will be able to access methodB but NOT methodA. D. A user in the role "SECRET" will be able to access methodA and methodB. See the full explanation below for the reasoning.

Question

A developer creates the following session bean: 10. ©Stateless 11. @RolesAllowed("SECRET") 12. public class MyBean implements Mylnterface 13. public void methodAOJ} 14. @PermitAII 15. public void methodB0 {} 16. @DenyAII 17. public void methodC0 {} 18.} No deployment descriptor is supplied. Which two statements are true? (Choose two.)

Options

  • AA user in the role "SECRET" will be able to access all of the methods.
  • BA user in the role "FOO" will be able to access methodA and methodB.
  • CA user without any role will be able to access methodB but NOT methodA.
  • DA user in the role "SECRET" will be able to access methodA and methodB.
  • EA user in the role "SYSADM" will be able to access methodA, methodB, and methodC.

How the community answered

(28 responses)
  • A
    18% (5)
  • B
    7% (2)
  • C
    71% (20)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice