Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 14 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 14
Topic #: 1
[All 2V0-72.22 Questions]

Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)

  • A. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last.
  • B. Spring Security can obtain URLs from Spring MVC controllers, the Spring Security configuration just needs a reference to the controller to be protected.
  • C. The URLs are specified in a special properties file, used by Spring Security.
  • D. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
softarts
5 months ago
A=>most specific rule first and the least specific last.
upvoted 2 times
...
saJAva
5 months, 2 weeks ago
Selected Answer: A
it is important that more specific patterns are defined higher in the list than less specific patterns
upvoted 4 times
...
james2033
9 months, 4 weeks ago
Selected Answer: D
Quote "A good practice is to define generic rules at the top and more specific rules at the bottom." at https://www.baeldung.com/spring-security-configuring-urls#1-allowing-requests-to-the-products-api
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...