Broadcom-VMware
2V0-72.22 · Question #5
Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
The correct answer is A. Allow access to a method based on user identity. E. Allow access to a method based on roles. See the full explanation below for the reasoning.
Question
Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
Options
- AAllow access to a method based on user identity.
- BAllow access to a method based on the returned object.
- CAllow access to a method based on HTTP method.
- DAllow access to a method based on request URL.
- EAllow access to a method based on roles.
How the community answered
(50 responses)- A72% (36)
- B14% (7)
- C6% (3)
- D8% (4)
Community Discussion
No community discussion yet for this question.