How should you secure the queries?
You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL
queries that display customer order data.
You need to prevent all SQL injection attacks against the application.
How should you secure the queries?
Which code segment should you use?
How should you complete the relevant code?
HOTSPOT
You develop an ASP.NET MVC application. The application includes a feature that allows users to reset their
passwords. The feature is enabled by a ForgotPassword controller method and a corresponding Razor view.
You need to prevent Cross-Site Request Forgery (CSRF) attacks.
How should you complete the relevant code? To answer, select the appropriate code segment from each list in
the answer area.
Hot Area:
You need to improve the performance of the application
You are developing an application that uses many small images.
When the images load, the application runs slowly.
You need to improve the performance of the application.
What should you do?
Which markup segments should you include in Target 1, T…
DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio.
The application contains an area that is defined as shown in the following graphic.
The ActionLink method must invoke the GetOrders() action in ExternalOrderController.
You need to configure the parameters of the ActionLink method.
You have the following markup.
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup? To
answer, drag the appropriate markup segment to the correct targets. Each markup segment 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.
Select and Place:
Which code segments should you include in Target 1, Tar…
HOTSPOT
You are developing an ASP.NET MVC application.
Before an action is executed, information about the action must be written to a log. After results are returned,
information about the results also must be written to the log.
You need to log the actions and results.
You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter
class? (To answer, select the appropriate option from the drop-down list in the answer area.)
Hot Area:
Hot Area:
HOTSPOT
You are developing an ASP.NET MVC application. The application includes the following code.
Line numbers are included for reference only.
You add the following markup to the system.web section of the web.config file:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
Hot Area:
How should you complete the relevant code?
DRAG DROP
You are developing an ASP.NET web application that uses health monitoring to log events to the Windows
Event Log. The application contains a custom event that is defined in the following code segment. Line
numbers are included for reference only.
You need to ensure that the event is correctly added to the Windows event log.
How should you complete the relevant code? To answer, drag the appropriate code segment to the correct
location or locations. Each code segment 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.
Select and Place:
which two locations can you download the crash dump?
You are developing an Azure worker role. You enable crash dump collection for the role.
When the role starts, an external application stops responding.
You need to download the crash dump to determine why the application stops responding.
From which two locations can you download the crash dump? Each correct answer presents a complete
solution.