Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 35

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

    Correct Answer: A, E

    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.

Discussion
Tolo01Options: AE

A and E

zakupowerOptions: AE

These are correct