###BeginCaseStudy###
Case Study: 2
Web Application
Background
You are developing an online shopping web application.
Business Requirements
A user is not required to provide an email address. If a user enters an email address,
it must be verified to be a valid email address.
Information about the first product on the product page must fade out over time to
encourage the user to continue browsing the catalog.
Administrators must be able to edit information about existing customers.
Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
The web store application is in a load-balanced web farm. The load balancer is not
configured to use server affinity.
The web store application is an ASP.NET MVC application written in Visual Studio
2012.
Products:
The value of the productId property must always be greater than 0.
The Products page for mobile devices must display to mobile users. The Products
page for desktop devices must display to desktop users.
Storage:
The data must be stored in a serialized XML data format.
Serialized objects must be schema-independent.
Exception handling:
Exceptions originating from IIS must display a page with support contact
information.
Some page links expire, and users who access these links encounter 404 errors.
Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
The application must support image format conversions from .bmp to .jpeg for
mobile devices.
The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure
You need to ensure that new customers enter a valid email address.
Which code should you use? (Each correct answer presents part of the solution. Choose all that
apply.)

A.
Option A
B.
Option B
C.
Option C
D.
Option D
The regular expression is stored in the const EmailRegex which is used the first argument of the attribute in answer B. IMO correct answers are B & D
0
0
bd
0
0
but i am not sure that you can ComplexType for one field use.
0
0
I think the answer is A and D
Although B is valid in its use of the const value, the Regular Expression attribute does not take a DataType in as a value for ErrorMessageResourceType
1
0
A and D
[ComplexType] is just for classes
https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.complextypeattribute(v=vs.110).aspx
The user should not be the raw HTML
https://msdn.microsoft.com/en-us/library/gg480740(v=vs.118).aspx
1
0
In A what would be the emailPattern? I don’t see it anywhere. (It should be EmailRegex in my opinion.)
I agree with ComplexType is only for classes, so B is not option.
C is non-sense.
So, I think only D is correct.
0
0
p.s.
THAT 201q 70-486 dumps from Google Drive for free:
https://drive.google.com/open?id=0B-ob6L_QjGLpflNtUWtkNlk3ODJFY0pqOUhqVFEwc0lrd0QtamRxUHFLLUdWZEVDaGtlQWM
Good Luck!
0
0
BTW, part of that new 231Q 70-486 dumps FYI:
https://drive.google.com/open?id=0B-ob6L_QjGLpflNtUWtkNlk3ODJFY0pqOUhqVFEwc0lrd0QtamRxUHFLLUdWZEVDaGtlQWM
Best Regards!
0
0