Oracle
1Z0-897 · Question #38
A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ?…
The correct answer is A. Using method-permission element in ejb-jar.xml D. By specifying security annotations like @RolesAllowed in the EJB class. See the full explanation below for the reasoning.
Question
A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ? (Choose two)
Options
- AUsing method-permission element in ejb-jar.xml
- BUsing .htaccess file in the application's ear
- CUsing <security-role> element in web.xml
- DBy specifying security annotations like @RolesAllowed in the EJB class
How the community answered
(32 responses)- A84% (27)
- B6% (2)
- C9% (3)
Community Discussion
No community discussion yet for this question.