exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 3 question 3 discussion

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

You need to add a method to the ProductController class to meet the exception handling requirements for logging.
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: A 🗳️
From Scenario:
* Exceptions must be logged by using the WriteLog method of the Utility class.

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
peterp
5 years, 3 months ago
The explanation is not helpful: Every solution is using the WriteLog method of the Utility class. Why is A correct?
upvoted 2 times
ozner16
5 years, 3 months ago
I think its A because other options has 'debugger' keyword, which makes no sense to this context
upvoted 5 times
...
zimzimzimma
5 years ago
Only filterContext.HttpContext.IsCustomErrorEnabled is a valid statement. The others aren't.
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 ...