For each of the following statements, select Yes if the statement is true.
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.
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult metho
HOTSPOT
You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel
files.
The current implementation of the ExcelResult class is as follows.
You need to enable users to open Excel files.
You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the
ExecuteResult method? To answer, select the appropriate option or options in the answer area.
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter cla
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.)
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?
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.
Which code segment should you use?
You are developing an ASP.NET MVC application that enables you to edit and save a student object.
The application must not retrieve student objects on an HTTP POST request.
You need to implement the controller.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all
that apply.)
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, Target 2 and Target 3 to complete markup?
DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio. The application supports multiple
cultures.
To set the culture, the application must use the AcceptLanguage header field value sent by the client
browser.
You need to ensure that the application can set the culture.
You have the following markup in the web.config file:
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete markup?
To answer, drag the appropriate markup segments 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.
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.
Which code segment should you use?
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?