exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 138 discussion

Actual exam question from Microsoft's 70-486
Question #: 138
Topic #: 1
[All 70-486 Questions]

You are developing an application that uses ASP.NET Core Identity for authorization. The application must use an existing Microsoft Azure Table Storage instance to store user information. You create a custom UserStore class.
You need to register the class as a dependency.
Which two interfaces should you implement? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. IUserSecurityStampStore
  • B. IUserLoginStore
  • C. IQueryableUserStore
  • D. IUserStore
  • E. IUserPasswordStore
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
D: Create a UserStore class that provides the methods for all data operations on the user. This class is equivalent to the UserStore class. In your UserStore class, implement IUserStore<TUser> and the optional interfaces required. You select which optional interfaces to implement based on the functionality provided in your app.
Interfaces to implement when customizing user store
✑ IuserStore
The IUserStore<TUser> interface is the only interface you must implement in the user store. It defines methods for creating, updating, deleting, and retrieving users.
✑ IuserLoginStore
The IUserLoginStore<TUser, TKey> defines the methods you must implement in your user store to enable external authentication providers. It contains methods for adding, removing and retrieving user logins, and a method for retrieving a user based on the login information.
References:
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-custom-storageQQ-providers?view=aspnetcore-2.1

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
zimzimzimma
4 years, 11 months ago
It says 'user information' without specifying what it is. That could be a lot of things besides password, like additional claims. B and D are correct.
upvoted 4 times
...
mmk1991
5 years, 3 months ago
Why B is a correct answer, and not any other? All the mentioned interfaces seem to optional. Question does not mention anything about external providers
upvoted 2 times
fagdfgsg
5 years, 2 months ago
I agree, only B is the answer.
upvoted 1 times
mr_
4 years, 11 months ago
I disagree. As mmk1991 mentioned there is nothing in the requirements about external identity providers. I am not sure but personally I would go for IUserStore and IUserPasswordStore. Refs: https://stackoverflow.com/questions/30657958/store-does-not-implement-iuserpasswordstoretuser-asp-net-identity https://weblogs.asp.net/imranbaloch/a-simple-implementation-of-microsoft-aspnet-identity
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 ...