PrepAway - Latest Free Exam Questions & Answers

Which of the following actions should you take?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You have been instructed to write code that creates a method for the ItemController class. The
method must satisfy the prerequisites to handle exceptions related to logging.
Which of the following actions should you take?

PrepAway - Latest Free Exam Questions & Answers

A.
You should consider creating an OnResultExecuted method.

B.
You should consider creating an OnAuthorization method.

C.
You should consider creating an OnException method.

D.
You should consider creating an OnActionExecuting method.


Leave a Reply