Want to know Examcollection microsoft 70 486 Exam practice test features? Want to lear more about Microsoft Developing ASP.NET MVC 4 Web Applications certification experience? Study Precise Microsoft exam 70 486 dumps answers to Up to date 70 486 pdf questions at Examcollection. Gat a success with an absolute guarantee to pass Microsoft 70 486 dumps 2021 (Developing ASP.NET MVC 4 Web Applications) test on your first attempt.
Q41. - (Topic 4)
You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Implement HTTP caching in the ASP.NET MVC controllers.
B. Combine the content files by using ASP.NET MVC bundling.
C. Install a second IIS instance.
D. Move the content to a Windows Azure CDN.
Answer: B
Q42. - (Topic 4)
You are implementing a website redesign of an existing website that provides historical weather condition maps. The current layout resembles the following graphic.
Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-changer".
You need to modify the page so that the user can change the year without the page reloading. You also need to ensure that there is minimal change to the design of the page.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Explanation: jQuery code will bind the slider control to the div.
$(document).ready(function(){
$("#slider").slider();
});
Now, when you run this page then you will see a long slider on page with no range. As we
have not specified any range.slider control comes with various options/properties which can be set. Here are few of them.
1.
min : Minimum value allowed for the slider.
2.
max : Maximum allowed value for the slider.
3.
step : How much you want to increment when you slide. Default is 1.
4.
value : set default value of the slider.
Reference: Implement jQuery UI slider with ASP.NET
http://www.jquerybyexample.net/2010/09/implement-jquery-ui-slider-with-aspnet.html
Q43. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio 2012. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.
The application must not display AccountNumber in clear text in any URL.
You need to build the view for the GetAccounts action.
How should you build the view? (To answer, drag the appropriate code segment to the correct location or 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.)
Answer:
Q44. - (Topic 4)
You are preparing for the deployment of an ASP.NET MVC application. You need to generate a deployment manifest.
Which command-line tool should you use?
A. Mage.exe
B. Ngen.exe
C. ALexe
D. Resgen.exe
Answer: C
Explanation: Al.exe generates a file with an assembly manifest from one or more files that are either resource files or Microsoft intermediate language (MSIL) files.
Q45. - (Topic 4)
You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users.
The application must handle web server failures gracefully. The servers in the farm must share the short-term state information.
You need to persist the application state during the session.
What should you implement?
A. ASP.NET session state
B. A local database
C. A state server
D. Profile properties
Answer: C
Q46. - (Topic 4)
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
A. In Session on the server
B. In a cookie stored in the browser
C. In ViewData in the application
D. In TempData on the server
Answer: A,B
Q47. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.
The application must:
. Use Windows Identity Foundation 4.5.
. Support the Windows Azure Access Control Service.
You need to implement authentication.
How should you build the class constructor? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. 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.)
Answer:
Q48. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.
The application contains a controller named BankAccountController with two actions.
The application contains a model named BankAccount, which is defined in the following code segment.
The application must not display AccountNumber in clear text in any URL.
You need to build the view for the GetAccounts action.
You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to build the view? To answer, drag the appropriate code segment to the correct targets. 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.
Answer:
Q49. - (Topic 1)
You need to display the "miles" unit description after the distance in the GetLog view.
Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A. @log.Distance miles
B. @Htrml.DisplayFor(model => log.Distance) miles
C. @log.Distance.ToString() @Html.TextArea("miles")
D. @Html.DisplayFor(model => log.Distance.ToString() + " miles")
Answer: A,B
Q50. - (Topic 4)
You are developing an ASP.NET MVC web application that includes the following method.
You need to test the GoldMined method. Which unit test should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D