live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

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

QUESTION NO: 1
You are developing an ASP.NET MVC application that has pages for users who browse the site with Windows Phone 7.
The pages for Windows Phone 7 include the following files:

You need to update the application so that it renders the customized files correctly to Windows Phone 7 users.
How should you update the Application_Start method? (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:

Explanation:
http://techbrij.com/1013/display-mode-mobile-tablet-tv-aspnet-mvc
QUESTION NO: 2
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are developing an ASP.NET Core MVC web application. The landing page of the application contains over 100 small JPEG images, including many images that have embedded Mobile device users report performance issues when loading the landing page. You debug the application and determine that the number of HTTP requests is causing the issue.
You need to improve the performance of the landing page.
Solution: Convert all images to JPEG with a high compression ratio.
Correct Answer: A
QUESTION NO: 3
You are developing an ASP.NET MVC application that will be deployed on a web farm.
Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable You need to encrypt the passwords that are stored in the web.config file.
Which command-line tool should you use?
Correct Answer: A
Explanation: (Only visible to Pass4Test members)
QUESTION NO: 4
You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It includes the following code. 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:
QUESTION NO: 5
You are designing an HTML5 website.
You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer: B,C,D
Explanation: (Only visible to Pass4Test members)
QUESTION NO: 6
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.)
Correct Answer: A,C
QUESTION NO: 7
You are preparing to test an ASP.NET application. The application includes the following class. Line numbers are included for reference only.

Data will be imported from another system into the current application. Before importing data, you must run unit tests to validate the data. To be considered valid, the data must meet the following requirements:
You need to create unit tests that fail if the requirements are not met.

How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area.
Correct Answer:

Explanation:
Box 1: TestClass
The [TestClass] attribute is required in the Microsoft unit testing framework for managed code for any class that contains unit test methods that you want to run in Test Explorer.
Box 2: TestMethod
Set the following attributes for the unit test:
[TestMethod]
All unit tests require the [TestMethod] attribute.
Box 3: Assert.Istrue
The value passed into the GetResults method must be greater than or equal to zero.
Box 4: TestMethod
Box 5: Assert.IsNotNull
The value passed into the GetUserInfo method must not be null.
References: https://msdn.microsoft.com/en-us/library/ms182532.aspx
QUESTION NO: 8
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an ASP.NET web application that is self-hosted using Open Web Interface for .NET (OW1N) in a Microsoft Azure Worker role.
The web application throws exceptions.
You need to resolve the exceptions.
Solution: Change the application startup code to debug the OWIN pipeline.
Does the solution meet the goal?
Correct Answer: A
Explanation: (Only visible to Pass4Test members)
QUESTION NO: 9
You are developing an ASP.NET Core MVC web application.
The web application must meet the following requirements:
Allow users to create a user name and password.
Use cookie-based authentication.
Store user credentials in a Microsoft SQL Server database.
You need to implement ASP.NET Core Identity.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
Box 1: UseSqlServer
Box 2: AddIdentity
Box 3: Configure
Box 4: ConfigureApplicationCookie
Box 5: UseAuthentication
References: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-2.1&tabs=visual-studio%2Caspnetcore2x
QUESTION NO: 10
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are developing a collaborative text editor. Multiple users may simultaneously edit the same document from within the application.
You need to ensure that users can see edits from all users as soon as they are made.
Solution: Implement the application by using ASP.NET Core. Configure the editor Controller action to return JSON data. Use XML HTTP requests for communicating editor changes.
Does the solution meet the goal?
Correct Answer: A
QUESTION NO: 11
You are developing an ASP.NET MVC application. The application has a view that displays a list of orders in a multi-select list box.
You need to enable users to select multiple orders and submit them for processing.
What should you do? (To answer, drag the appropriate words to the correct targets. Each word 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:
QUESTION NO: 12
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:

You need to select a cache solution.
Which caching solution should you choose?
Correct Answer: A
QUESTION NO: 13
You are designing a distributed application.
The application must store a small amount of information that is shared across all users and does not change frequently.
You need to configure the application to meet the requirements.
Which two server-side state management options will achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Correct Answer: C,D