Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
The method level security annotation @PreAuthorize is mainly used for access control in Spring applications. It allows access to a method based on user identity and roles, making options A and E correct. Specifically, @PreAuthorize can specify conditions such as user roles (e.g., @PreAuthorize('hasRole('ROLE_ADMIN')')) and user identity checks to determine who can invoke a method.
A and E
These are correct