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 tasked with creating a Communication Foundation (WCF) service that makes use
of the Item class. You are informed that the Item class should be updated in such a way that it
satisfies storage prerequisites.
You start by marking the Item class with the DataContract attribute.
Which of the following actions should you take NEXT?
A.
You should consider making sure that the public members of the Item class is marked with the
EnumMember attribute.
B.
You should consider making sure that the private members of the Item class is marked with the
DataMember attribute.
C.
You should consider making sure that the private members of the Item class is marked with the
EnumMember attribute.
D.
You should consider making sure that the public members of the Item class is marked with the
DataMember attribute.