- (Exam Topic 4)
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed. You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer:
AB
Server sessions and cookies can both be configured to secure and they both persist after the users log on. Incorrect:
Not C: ViewData\'s life only lasts during current http request.
Not D: TempData is a bucket where you can dump data that is only needed for the following request. That is, anything you put into TempData is discarded after the next request completes.
- (Exam Topic 4)
You are developing an ASP.NET MVC application that processes payments for an online retailer The retailer provides a .NET assembly that contains a class named Retail EventSource That derives from the EventSource class.
The RetailEventSource class has a method named SuspiciousTransaction that returns True when the order originates from a system that differs significantly from the system that usually performs orders. The RetailEventSource class also has a field named PaymentProcessed that stores the event identifier for a payment-processed event.
Events must be written only when the event source is in a state where writing events is valid You need to create a derived type that contains the method to raise a PaymentProcessed event
Solution:
Does this meet the goal?
Correct Answer:
A
You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer:
BC
- (Exam Topic 4)
DRAG DROP
You are developing an ASP.NET MVC application that takes customer orders. Orders are restricted to customers with IP addresses based in the United States. You need to implement a custom route handler.
How should you implement the route handler? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Solution:
References:
http://msdn.microsoft.com/en-us/library/system.web.routing.iroutehandler.gethttphandler.aspx
Does this meet the goal?
Correct Answer:
A
The GetDealPrice method must be called by using Ajax.
You need to get the price of a product by using the GetDealPrice method of the ProductController. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer:
CD