exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 153 discussion

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

You are developing an ASP.NET Core MVC web application.
The application includes a C# type named InsuranceID that represents an insurance policy identifier for a customer. Each instance of InsuranceID is five alphanumeric characters followed by a dash and then four numbers (for example, ab12x-2323).
You need to ensure that Controller actions can accept values of type InsuranceID.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Implement the IBinderTypeProviderMetadata interface.
  • B. Implement the IModeIBinder interface.
  • C. Use a TypeConverter object.
  • D. Implement the IBindingSourceMetadata interface.
  • E. Implement the ITypeComp interface.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Navdeep
Highly Voted 5 years, 8 months ago
B & C https://www.codeproject.com/Tips/806415/Model-Binding-using-IModelBinder-and-DefaultModelB
upvoted 19 times
...
Aghie
Highly Voted 5 years, 10 months ago
based from this post's explanation: https://docs.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding?view=aspnetcore-2.2 I think the other one is IModelBinder
upvoted 12 times
...
Gods_Kenny
Most Recent 5 years, 4 months ago
BC are correct
upvoted 4 times
...
Dhaval
5 years, 5 months ago
B and C is correct.
upvoted 6 times
...
Nunu95
5 years, 5 months ago
B and C is correct.
upvoted 6 times
...
Radek
6 years ago
Question was "What are two possible ways to achieve this goal?" But only C is shown as correct answer. What is the second ?
upvoted 8 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 ...