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

You plan to deploy an ASP.NET Core MVC web application to an internal server cluster that runs Kestrel on Linux. The server cluster hosts many other web applications. All applications are behind an Nginx load balancer.
You need to ensure that the application meets the following requirements:
* Secure against man-in-the-middle attacks.
* Allow Open ID Connect authentication.
* Cache responses using HTTP caching.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Correct Answer: C,D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Your company uses Microsoft Azure DevTest Labs for testing applications.
The DevTest Labs environment must provide a preconfigured base image for a virtual machine that can be used for all development efforts. The virtual machine must be able to be reproduced m various environments.
You need to provision the virtual machine.
What should you implement?
Correct Answer: D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are developing an ASP.NET Core MVC web application. The application uses a custom tool named sectarget that performs security audits of the web application's assemblies. The custom tool was built in netstandardl.l and is packaged into a NuGet package named sectarget.
You need to ensure that the custom tool is run each time the web application is boat or published and that the latest version of sectarget is used each time the tool is run.
How should you complete the markup? To answer, drag the appropriate XML segments to the correct locations. Each XML 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:
You are developing an ASP.NET MVC application that uses forms authentication against an Oracle database.
You need to authenticate the users.
Which code segment should you use?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are developing an ASP.NET MVC application that uses forms authentication. The user database contains a user named LibraryAdmin.
You have the following requirements:

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.)

Correct Answer: C,D
You need to add a method to the ProductController class to meet the exception handling requirements for logging.
Which code segment should you use?
Correct Answer: C
You need to implement the map of the runners' paths.
How should you build the video viewer? (To answer, select the appropriate options in the answer area.)

Correct Answer:
You are building an ASP.NET web application.
You must test the web application in multiple browsers at the same time.
You need to ensure that the application can use the Browser Link feature.
Which two actions should you perform? Each correct answer presents part of the solution.
Correct Answer: A,C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You need to modify the application to meet the productId requirement.
What should you do?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are developing an ASP.NET MVC 4 application that includes the following class. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Correct Answer:

Explanation:
Box 1: No
Line 7 executes fine as Name is the string Contoso.
Box 2: Yes
The assertion of Line 16 fails as the Boolean expression net|=0 evaluates to false (500-500 equals 0).
Note: An assertion verifies an assumption of truth for compared conditions. The assertion is central to the unit test. The Assert class provides many static methods for verifying suppositions of truth. If the condition being verified is not true, the assertion fails. The Assert class throws an AssertFailedException to signal a failure.
Box 3: No
The Boolean expression on line 22, balance >= 0.0f, evaluates to 0 >=0.0f (true), as balance is set to 0.0f at line 21, and because Contract.ensures is a postcondition.
Note: The Contract.Ensures method specifies a postcondition contract for the enclosing method or property.
References: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.aspx
http://stackoverflow.com/questions/7052640/how-does-contract-ensures-work
You need to ensure that the application uses RunLogRoleProvider custom role provider.
How should you modify the web.config file? (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.)
Correct Answer:
http://asp.net/


The Load method throws an exception.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Correct Answer:
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
You are designing an MVC web application.
The view must be as simple as possible for designers who do not have a technical background.
You need to combine two existing models to meet the requirement.
Which component of the MVC framework should you use?
Correct Answer: B
You are developing an ASP.NET MVC application. The application uses a SQL Server database and a SQL Server login and password. You need to ensure that the password for the SQL Server login is not stored in plain text. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Correct Answer: C,D
0
0
0
0