Microsoft Developing ASP.NET MVC 4 Web Applications - 070-486 Exam Practice Test

Question 1
You are developing an ASP.NET Core web application that uses sensitive configuration data. You plan to develop the application locally and then deploy the application to a Microsoft Azure App Services Web App for testing and production.
You must securely store sensitive configuration data and be able to share the data across multiple projects.
You need to ensure that sensitive data is stored in local configuration files.
Which technologies should you implement? To answer, drag the appropriate technologies to the correct environments. Each technology 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.
NOTE: Each correct selection is worth one point.
Correct Answer:

Reference:
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.1&tabs=windows
Question 2
You need to make the "Distance" header of the table bold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?

Correct Answer: B
Question 3
You need to implement the business requirements for managing customer data.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

Correct Answer: B,D
Question 4
You are developing an ASP.NET Core MVC web application for AdventureWorks Cycles.
You need to ensure that users can authenticate with Contoso Ltd., an OpenID Connect authentication provider.
How should you complete the code? To answer, drag the appropriate code segments to the correct 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.
NOTE: Each correct selection is worth one point.
Correct Answer:
Question 5
You need to implement the mobile device support requirements.
How should you build the ProcessRequest method? (To answer, select the appropriate options in the answer area.)
Correct Answer:
Question 6
You are developing an ASP.NET solution that consists of the following components:

You plan to use Microsoft Azure DevTest labs to create a testing environment. You create a virtual hard disk for the web front-end that includes all required components for the legacy applications.
The front-end application virtual machines must meet the following requirements:
Redeploy the virtual machines with the latest versions of build artifacts from the build system when they become available.
Isolate the virtual machines by using virtual networks.
You need to recommend an approach to deploy the virtual machines.
What should you recommend? To answer, drag the appropriate virtual machine deployment approaches in Azure DevTest to the correct targets. Each answer choice 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.
NOTE: Each correct selection is worth one point.
Correct Answer:
Question 7
You need to ensure that all customers can delete videos regardless of their browser capability.
Which code segment should you use as the body of the SendAsync method in the DeleteHandler class?

Correct Answer: B
Question 8
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.)
Correct Answer:

Explanation:
Target 1: IActionFilter
MVC3 introduced a completely new pattern to configure filters for controllers and its actions. While injection of filter attributes is still supported it is recommended using this new pattern for filter configuration because it has the advantage to support constructor injection and does not require the InjectAttribute anymore.
First of all you have to create your filter class by implementing one of the filter interfaces e.g. IActionFilter.
Target 2: public void OnActionExecuting(ActionExecutingContext filterContext) Target 3: public void OnActionExecuted(ActionExecutedContext filterContext) References: