Proper study guides for Up to the minute Microsoft Developing ASP.NET MVC 4 Web Applications certified begins with Microsoft exam 70 486 preparation products which designed to deliver the 100% Correct 70 486 exam dumps questions by making you pass the microsoft 70 486 test at your first time. Try the free 70 486 certification demo right now.

Q51. - (Topic 4) 

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? 

A. Preload all the images when the application starts to ensure that the images are cached. 

B. Convert the images to ICO file format and stream all images on a single connection. 

C. Host all images on a Microsoft Azure web role with multiple instances. 

D. Combine all the images into a single image and use CSS to create sprites. 

Answer:

Explanation: Because browsers limit how many concurrent HTTP requests they make to a website, a web page with many small icon images can result in a longer load time. You can combine many small images into a single larger image - a CSS sprite - using the free ASP.NET Sprite and Image Optimization Library available from Microsoft. 

Reference: CSS Sprites and the ASP.NET Sprite and Image Optimization Library 

http://dotnetslackers.com/articles/aspnet/CSS-Sprites-and-the-ASP-NET-Sprite-and-Image-Optimization-Library.aspx 


Q52. - (Topic 2) 

You need to modify the application to meet the productId requirement. 

What should you do? 

A. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Assume<ArgumentException>(productId != 0); 

B. Modify the GetDealPrice method of ProductController as follows. Contract.Requires<ArgumentException>(productId > 0); 

C. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Requires<ArgumentException>(productId > 0); 

D. Modify the GetDealPrice method of ProductController as follows. Contract.Assume<ArgumentException>(productId > 0); 

Answer:

Explanation: 

The Contract.Requires(Of TException) method specifies a precondition contract for the enclosing method or property, and throws an exception if the condition for the contract fails. Syntax: 'Declaration Public Shared Sub Requires(Of TException As Exception) ( _ condition As Boolean _) Type Parameters TException The exception to throw if the condition is false. Parameters condition Type: System.Boolean The conditional expression to test. 

Reference: Contract.Requires(Of TException) Method (Boolean) 


Q53. - (Topic 4) 

You are developing an ASP.NET MVC application that will run on Azure. 

The application uses Event Tracing for Windows (ETW) for logging operations. 

You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API. 

Which data source should you use? 

A. Azure Diagnostic infrastructure logs 

B. Windows event logs 

C. performance counters 

D. .NET EventSource 

Answer:

Explanation: Azure Diagnostics 1.2 and 1.3 are Azure extensions that enable you to 

collect diagnostic telemetry data from a worker role, web role, or virtual machine running in 

Azure. 

Diagnostics 1.2 and 1.3 enable the collection of ETW and .NET EventSource events. 

Example: 

EtwProviders> 

<EtwEventSourceProviderConfiguration provider="SampleEventSourceWriter" 

scheduledTransferPeriod="PT5M"> 

<Event id="1" eventDestination="EnumsTable"/> 

<Event id="2" eventDestination="MessageTable"/> 

<Event id="3" eventDestination="SetOtherTable"/> 

<Event id="4" eventDestination="HighFreqTable"/> 

<DefaultEvents eventDestination="DefaultTable" /> 

</EtwEventSourceProviderConfiguration> 

</EtwProviders> 

Reference: Enabling Diagnostics in Azure Cloud Services and Virtual Machines 

https://azure.microsoft.com/sv-se/documentation/articles/cloud-services-dotnet-diagnostics/ 


Q54. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in Visual Studio. The application supports multiple cultures. 

To set the culture, the application must use the AcceptLanguage header field value sent by the client browser. 

You need to ensure that the application can set the culture. 

You have the following markup in the web.config file: 

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete markup? To answer, drag the appropriate markup segments 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. 

Answer: 


Q55. - (Topic 4) 

You are developing an ASP.NET MVC application that provides instant messaging capabilities to customers. 

You have the following requirements: 

Messages must be able to be sent and received simultaneously. 

Latency and unnecessary header data must be eliminated. 

The application must comply with HTML5 standards. 

You need to design the application to meet the requirements. 

What should you do? 

A. Configure polling from the browser. 

B. Implement long-running HTTP requests. 

C. Implement WebSockets protocol on the client and the server. 

D. Instantiate a MessageChannel object on the client. 

Answer:


Q56. - (Topic 4) 

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 must allow all users to access the GetBook method. 

. You must restrict access to the EditBook method to the user named LibraryAdmin. 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A,C 


Q57. - (Topic 4) 

You are developing an ASP.NET MVC application by using Visual Studio 2012. 

The application throws and handles exceptions when it runs. 

You need to examine the state of the application when exceptions are thrown. 

What should you do? 

A. From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions. 

B. From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process. 

C. From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions. 

D. From the TOOLS menu in Visual Studio 2012, click Customize. C!ic< tie Commands tab and select Debug. 

Answer:


Q58. - (Topic 4) 

You are designing a distributed application. 

The application must store a small amount of insecure global information that does not change frequently. 

You need to configure the application to meet the requirements. 

Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Application state 

B. Session state 

C. Database support 

D. Profile properties 

Answer: A,C 


Q59. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information. 

The order information should be available only to the page where the order is displayed. 

You need to store state and configure the application. 

What should you do? To answer, drag the appropriate item to the correct location. Each item 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: 


Q60. - (Topic 4) 

You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks. 

The application must be compatible with multiple browsers. A user can search the website for news articles. You must track the page number that the user is viewing in search results. 

You need to program the location for storing state information about the user's search. 

What should you do? 

A. Store search results and page index in Session. 

B. Use Application state to store search terms and page index. 

C. Use QueryString to store search terms and page index. 

D. Store search results and page index in TempData 

Answer: