Which code segment should you use?
You are developing an ASP.NET MVC application that uses forms authentication. The user database contains
a user named OrderAdmin.
You have the following requirements:
You must allow all users to access the GetOrders method.
You must restrict access to the EditOrder method to the user named OrderAdmin.
You need to implement the controller to meet the requirements.
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 ASP.NET application that allows users to download Microsoft Azure log files. You need
to improve the performance of the application.
What should you do?
Hot Area:
Which caching solution should you choose?
You are developing a new ASP.NET MVC application that will be hosted on Microsoft Azure. You need to
implement caching.
The caching solution must support the following:
The cache must be able to store out-of-process ASP.NET session state.
The cache must be able to store a variety of data types.
The cache must offer a large amount of space for cached content.
You must be able to share output cache content across web server instances.
You need to select a cache solution.
Which caching solution should you choose?
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:
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:
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 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: