exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 4 question 2 discussion

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

You are creating a new authentication system that uses an HTTP header value.
The existing authentication system must continue to operate normally.
You need to implement the custom authentication.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

  • A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
  • B. Create an HttpHandler to check fora valid HTTP header value in the ProcessRequest method.
  • C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
  • D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.
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
zimzimzimma
4 years, 11 months ago
https://stackoverflow.com/questions/19673484/processrequest-vs-authenticaterequest C and D are correct.
upvoted 3 times
...
this_is_sparta
5 years, 4 months ago
"A" would not work, because "ExecuteResult" is too late. "D" would break the existing authentication. But "B" and "C" should work i guess. So my answer is "B" and "C".
upvoted 2 times
founderDev
5 years, 4 months ago
I agree the same. Correct answer is c and d. B is uncorrect. Because Authentication and authorization in ASP.NET life cycle are in events handled by HTTP Module. HTTPHandler are meant to handle filetype or request endpoint not for authorization.
upvoted 9 times
lifetocode
5 years, 1 month ago
this_is_sparta said that B and C. You are saying i agree with him righ tanswers are C and D. I couldn't understand which two answers are correct
upvoted 5 times
...
...
...
Darshu
5 years, 4 months ago
why B @ basha?
upvoted 1 times
...
basha
5 years, 4 months ago
it should be B and C
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 ...