exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 41 discussion

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

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
ASP.NET membership is designed to enable you to easily use a number of different membership providers for your ASP.NET applications.
There are two primary reasons for creating a custom membership provider.
✑ You need to store membership information in a data source that is not supported by the membership providers included withthe .NET Framework, such as a
FoxPro database, an Oracle database, or other data sources.
✑ You need to manage membership information using a database schema that is different from the database schema used by the providers that ship with the
.NET Framework.
To implement a membership provider, you create a class that inherits the MembershipProvider abstract class from the System.Web.Security namespace.
Incorrect:

Not C: 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.
References:
https://msdn.microsoft.com/en-us/library/f1kyba5e.aspx

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
rortegax2
4 years, 5 months ago
It should say third party database "engine"
upvoted 1 times
...
zimzimzimma
4 years, 12 months ago
MembershipProvider is base class for all databases, SqlMembershipProvider is derived from that
upvoted 3 times
...
soni
5 years, 5 months ago
Why Not A?
upvoted 1 times
Dhaval
5 years, 4 months ago
Because you don't the Database for Third Party. It could be Oracle, PostgresSql, etc..
upvoted 9 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 ...