You are developing an ASP.NET MVC application that uses forms authentication against a third‐party
database.
You need to authenticate the users.
Which code segment should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
Class ProviderBase
The provider model is intended to encapsulate all or part of the functionality of multiple ASP.NET
features, such as membership, profiles, and protected configuration.
Answer should be D Membershipprovider
https://msdn.microsoft.com/en-us/library/f1kyba5e.aspx
Agree: https://www.codeproject.com/Articles/165159/Custom-Membership-Providers
D
I think D because this:
To implement a membership provider, you create a class that inherits the MembershipProvider abstract class from the System.Web.Security namespace. The MembershipProvider abstract class inherits the ProviderBase abstract class from the System.Configuration.Provider namespace, so you must implement the required members of the ProviderBase class as well.
https://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider(v=vs.110).aspx#Anchor_6
d