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 43 discussion

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

Which two statements are true regarding storing user details in Spring Security? (Choose two.)

  • A. With a custom UserDetailsService defined in the ApplicationContext, Spring Boot still creates the default user.
  • B. Passwords must be hashed and the default hashing algorithm is MD5.
  • C. User details can be stored in custom storage and retrieve them by implementing the UserDetailsService interface.
  • D. User details can be stored in a database, in LDAP, or in-memory.
  • E. The user details includes username and password but not authorities.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tolo01
Highly Voted 7 months, 2 weeks ago
Selected Answer: CD
A is incorrect because if a custom UserDetailsService is defined in the ApplicationContext, Spring Boot will not create the default user. B is incorrect because the default hashing algorithm for passwords in Spring Security is BCrypt. E is incorrect because the user details also includes authorities, which are the roles that the user has.
upvoted 5 times
...
zakupower
Most Recent 1 year ago
Selected Answer: CD
Authorities are part of a Principal. Default user is not created when you define your own UserDetailsService in memory or not...
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago